Commit Graph

208 Commits

Author SHA1 Message Date
Rahul Patel
a4567a6460 AppDetails: Make install app permission check a must before requesting an install 2024-07-29 02:28:41 +05:30
Rahul Patel
44b9a1a7b2 Redo Permissions [1/2] 2024-07-29 01:11:20 +05:30
Rahul Patel
6a01825a4f Do not allow ESA & ESM prompt without Installer Permission
- This avoids OBB dir permission bakchodi!
2024-07-29 01:11:19 +05:30
Rahul Patel
2b65eeb742 Resource house keeping + color cleanup 2024-07-29 01:11:16 +05:30
Aayush Gupta
14aa476313 UpdatesFragment: Add missing "for" in check_updates button
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-07-18 13:00:04 +07:00
Aayush Gupta
8b341c088c Initial support for caching updates
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-07-17 13:45:30 +07:00
Aayush Gupta
04e2e69c54 {SplashFragment|NetworkPreference}: Updates to AuthData building
* Always generate GSF ID on device regardless of login type
* Switch to new method for building AuthData

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-07-17 13:45:30 +07:00
Aayush Gupta
1c701ec7f0 NetworkPreference: Move out and simply proxy logic
No need to check connectivity as soon as URL is set as SplashFragment will
only let you login when a valid connection is available.

Use a modern dialog and EditText to do set the URL with minimal verification.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-07-14 19:24:33 +07:00
Aayush Gupta
ab39597296 AccountFragment: Ask for confirmation before logout
Avoid user clicking the logout button accidentally

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-07-14 19:24:33 +07:00
Rahul Patel
dae20af9e8 Improve event data classes 2024-07-12 20:16:28 +05:30
Aayush Gupta
d75f70590a ExportWorker: Show notification on export status when finished
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-07-10 18:29:13 +07:00
Aayush Gupta
81d3b15ce2 Add favourites apps [2/2]
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-07-09 11:22:16 +07:00
Rahul Patel
bbedb30d46 Add favourites apps [1/2]
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-07-09 11:22:16 +07:00
Rahul Patel
37b3d2f2db DetailsFragment: Do not enqueue download if app is not supported
- This would be more relevant when we migrate to web APIs
 - Web stream are not device specific so it may list unsupported apps
2024-06-26 23:50:58 +05:30
Aayush Gupta
1fc5f3b87b FilterPreference: Drop persistant search filter setting
Filters should persist for a single search only to ensure users can view all available
apps when starting a new search

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-12 10:25:17 +05:30
Aayush Gupta
66045bceac Context: Drop leftovers of custom tab intent
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-11 12:15:33 +05:30
Aayush Gupta
df45048757 SplashFragment: Reword session_login string to request login
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-10 14:52:51 +05:30
Aayush Gupta
925cfac7c9 Add details about Aurora Store in welcome and about fragments
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-09 20:45:33 +05:30
Aayush Gupta
6bf75bb68a AccountFragment: Throw users on splashFragment on logout
We have multiple checks implemented at this point in splashFragment to ensure
proper validation and navigation. If a user logs out and hits back button, he still
gets to browse Aurora Store which is an unintended behaviour.

Instead of handling same logic twice everywhere, make AccountFragment minimal and only
handle logging out here.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-01 13:42:40 +05:30
Aayush Gupta
3fb0c45574 AboutFragment: Rearrange links to prioritise support URLs
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-01 11:24:39 +05:30
Aayush Gupta
dd5f443e1f AboutFragment: Add link to GitLab wiki
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-01 11:16:47 +05:30
Aayush Gupta
446b8213ee DispenserFragment: Show info if no dispensers are available
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-01 10:28:20 +05:30
Aayush Gupta
453f6f24c2 Initial support for third-party dispensers
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-01 09:46:20 +05:30
Aayush Gupta
45e92d3efe UpdateWorker: Drop non-required foregroundInfo method
We are not an expedited nor in foreground, no need to have foregroundInfo method
with an ongoing notification.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-05-31 15:59:18 +05:30
Aayush Gupta
fc6c5b0307 CleanCacheWorker: Don't allow configuring cache duration
6 hours is ample time to do anything a user would like to do

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-05-31 15:59:18 +05:30
Aayush Gupta
196f9d00c5 InstallerFragment: Relocate to settings instead of onboarding
* This makes onboarding minimal and only required screens are shown
* SessionInstaller is the recommended choice, user who needs a different can configure in settings
* Instead of showing minimal list, show installer fragment that contains more information
* Also show all installers like before

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-05-08 15:44:15 +05:30
Aayush Gupta
6cba36f2e3 Drop unused preferences and variables
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-05-08 14:51:10 +05:30
Aayush Gupta
933b7b6886 DeviceOwnerReceiver: Add minimal support for device owner API
SessionInstaller can commit silent installs if the app is device owner. Implemented on
request of users.

This still needs user to set the app as device owner manually using ADB (only possible
if the device has no accounts setup yet).

Co-authored-by: Syuugo <pub@s1204.me>
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-05-07 13:21:23 +05:30
Aayush Gupta
0fd597b3c8 strings: Reword download preference summary for APK deletion
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-05-02 20:12:39 +05:30
Aayush Gupta
68733e1ec1 DownloadPreference: Add a worker to regularly clear downloads cache
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-05-02 20:12:39 +05:30
Aayush Gupta
c3963519e0 MainActivity: Move navigation drawer items into dialogfragment
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-04-16 10:37:38 +05:30
Aayush Gupta
b85b2afd35 AboutFragment: Format app version name and code properly
Appending version code to name confuses users regarding version they are using.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-04-04 13:51:38 +05:30
Aayush Gupta
8962260f0b WelcomeFragment: Localize welcome screen strings
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-04-04 11:12:58 +05:30
Aayush Gupta
0543b8ff9c ManualDownloadSheet: Localize manual download hint
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-04-04 10:33:09 +05:30
Aayush Gupta
5612263e04 data: installer: Localize installer information
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-04-03 21:23:00 +05:30
Aayush Gupta
4dbe4c78a2 AppLinksFragment: Wrap app link activity start in try-catch block
Android warns that it may not exist on all devices and samsung devices
seems to prove that true.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-04-01 15:17:38 +05:30
Aayush Gupta
eff596be13 strings: Refer Exodus Privacy properly
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-04-01 12:09:49 +05:30
Aayush Gupta
e6e00fd844 strings: Update onboarding permission description for storage
We now only need storage manager for downloading OBB files

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-03-19 11:13:26 +05:30
Aayush Gupta
d4f4b4bca5 OnboardingFragment: Drop theme and accent fragments
Still available in the settings

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-03-14 11:46:44 +05:30
Aayush Gupta
29ce733611 UpdatesFragment: Move Update All button to FAB
* Also link BlacklistFragment in in it's place as requested by users

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-03-04 14:50:15 +05:30
Aayush Gupta
caf6dd18c1 Cleanup and retire non-working download options
* External storage download uses external files directory and not the SD card
  to downloads while the description states otherwise. This is in-accurate and
  thus dropped (See #985).

* Custom download path is broken which was implemented as a workaround for the
  above (See #1003).

* Move downloads storage to internal files directory which is sandboxed and only
  accessible to us.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-03-04 12:55:39 +05:30
Aayush Gupta
2f5d39106a UpdateWorker: Merge self-updates logic for non-fdroid builds
Treat Aurora Store as a normal app for non-fdroid builds and check
for its updates based on auto-update preference.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-03-02 13:26:54 +05:30
Aayush Gupta
361707f0cc SelfUpdateWorker: Make update check interval configurable
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-02-24 06:39:10 +05:30
Aayush Gupta
89fdf1186f AppDetailsFragment: Show menu action to create app shortcut if supported
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-02-23 12:25:48 +05:30
Aayush Gupta
d387406f3d preferences_updates: Rename extended updates to incompatible updates
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-02-12 15:03:41 +05:30
Aayush Gupta
ff6b7154c7 menu_download_main: Rename completed to finished
Finished implies completed, canceled and failed which is the new behaviour.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-02-12 13:11:31 +05:30
Aayush Gupta
4297bac4fe AppMenuSheet: Use ACTION_CREATE_DOCUMENT to export APK
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-02-01 12:00:37 +01:00
Aayush Gupta
8c7377efd6 AppDetailsFragment: Link exodus analysis submission page
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-01-08 21:01:25 +05:30
Aayush Gupta
59309783b1 UpdatesPreference: Setup auto-updates
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-12-27 21:15:00 +05:30
Aayush Gupta
711c26af42 strings: Drop unused string & translation
New downloads logic can show speed and parts like before too

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-12-14 18:26:19 +05:30