Commit Graph

63 Commits

Author SHA1 Message Date
Aayush Gupta
cb4f36c2d5 treewide: Optimize imports
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-07-11 11:43:09 +07:00
Rahul Patel
a2fef6a897 Improve - Installed Apps, Updates & Blaclists 2024-07-11 11:41:25 +07:00
Rahul Patel
8857353029 OOBE: Restart app after onboarding to renew permission scopes [1/2] 2024-06-25 22:02:31 +05:30
Aayush Gupta
df3056cc43 AuthProvider: Inject it via hilt where needed
- Merge validation function in it as well instead of using it as an extension
- Use dedicated preference to check if we are anonymous or not instead of authData

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-19 12:31:34 +05:30
Aayush Gupta
05d9f279c9 BlacklistViewModel: Filter packages which are not apps
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-17 18:55:44 +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
8173105353 Context: Drop unused extensions
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-11 12:10:47 +05:30
Aayush Gupta
285571f387 Use PendingIntentCompat for mutable flag
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-11 12:09:33 +05:30
Aayush Gupta
00532f200e DownloadWorker: Better handle individual file progress updates
* Don't filter InputStream updates as we are already guarding UI updates against total progress
* Update downloadedBytes based on bytesCopied to reflect real progress
* Use collect instead of collectLatest to ensure all updates from flow are handled

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-05-06 13:01:05 +05:30
Aayush Gupta
8f4995221a Move post-installation steps to AppInstaller class
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-05-04 14:48:01 +05:30
Aayush Gupta
a75838a57d AuroraApp: Switch from GlobalScope to MainScope
Use MainScope instead of GlobalScope managed in the application class

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-05-02 12:22:06 +05:30
Aayush Gupta
13a88afa09 AppUtil: Move installed and updatable app logic to separate class
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-03-19 18:55:08 +05:30
Aayush Gupta
d030a7ac2e Respect battery optimization setting when auto-updating
* Don't enable auto-install for updates if battery optimization permission
  is not granted during onboarding.
* Drop showing warning in toolbar, show it instead if they want auto-install
* Don't check for the same during downloads. Failing is better instead.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-03-18 22:01:38 +05:30
Aayush Gupta
9b9cfd8de2 Implement Material3 based EditTextPreference
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-03-07 18:38:45 +05:30
Aayush Gupta
42c182bdb7 Revert "AppUpdateView: Show icons on incompatible updates buttons"
This reverts commit d4552007a7.
2024-02-15 17:27:21 +05:30
Aayush Gupta
d4552007a7 AppUpdateView: Show icons on incompatible updates buttons
- Slashed circle: Disabled
- Shield with a cross: Fails certificate verification

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-02-12 15:03:42 +05:30
Aayush Gupta
859d32d878 AppInstaller: Always use intent based uninstallation of apps
This requests user's confirmation before uninstallation every time which
is what we want to happen as well.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-01-20 15:12:57 +05:30
Aayush Gupta
e23d17e4ac Context: Switch to Intent for share extension
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-01-02 11:32:03 +05:30
Aayush Gupta
e66c558f82 Updates: Use appropriate certificate to verify and purchase apps
* Only show updates for devices that has atleast one matching certificate
* On Android 9.0+ devices, purchase apps with latest certificate's hash while updating
  to support key rotations

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-12-30 12:39:17 +05:30
Aayush Gupta
87dc309d35 PackageManagerReceiver: Rework package install actions
Notify on package installation and delete the downloaded directory

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-12-27 21:15:00 +05:30
Aayush Gupta
a796c4c381 SelfUpdateWorker: Move self-updates logic into dedicated worker
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-12-27 21:15:00 +05:30
Aayush Gupta
c7c35da492 DownloadWorkerUtil: Only trigger downloads if app is in foreground
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-12-14 18:26:19 +05:30
Aayush Gupta
b2cbc8dc16 DownloadWorker: Move downloads observing logic into worker as well
This allows us to keep all the modifications related to DownloadWorker in a
single place.

Also, drop the 3seconds delay and do the cleanup instead of delegating it to
worker if last job was failed. This is better and more error-proof.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-12-01 20:23:06 +05:30
Aayush Gupta
0f4021117f DownloadWorker: Progress improvements
* Handle split apk download progress
* Also share download speed and time remaining

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-11-29 18:59:17 +05:30
Aayush Gupta
26c4749047 DownloadWorker: Restrict concurrent downloads to one
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-11-29 18:59:17 +05:30
Aayush Gupta
6f707b2a37 DownloadWorker: Initial implementation
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-11-29 18:59:17 +05:30
Aayush Gupta
a0a68d35cf Switch to compat methods wherever possible
* Introduce custom compat methods with DEPRECATION suppressed if not present in public library

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-10-31 15:58:50 +05:30
Rahul Patel
47f1edc922 Add support for proxies - 3/3 2023-10-22 14:34:12 +05:30
Rahul Patel
f19631ad6a Add support for proxies - 2/3 2023-10-22 14:27:13 +05:30
Rahul Patel
c7c2781281 Add filter to list & update apps installed by Aurora Store only
- Improves fdroid filter
- Remove all apps that have no launch intent:
2023-10-18 05:33:59 +05:30
Rahul Patel
bd621163cc Validate packagename to avoid bogus packagenames 2023-10-13 05:13:22 +05:30
Rahul Patel
99e6508ccf Remove advance preferences 2023-10-12 21:38:24 +05:30
Aayush Gupta
103b6b6f78 treewide: Optimize imports
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-10-02 22:59:50 +05:30
Aayush Gupta
fd097fbba1 Initial Web APIs implementation
Introduce a toggle in Settings > Advanced to let user use Web APIs.
Currently implemented for search suggestions and results only.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-10-02 16:47:09 +05:30
Aayush Gupta
cfcccf811a ThemeEngine: Rework theme configuration
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-09-01 14:45:32 +05:30
Aayush Gupta
8be0ea740c Drop unused code since migration to navigation components
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-09-01 14:45:32 +05:30
Aayush Gupta
d35d694564 Migrate from Glide to Coil
- Also drop dependency on kapt

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-09-01 14:45:32 +05:30
Aayush Gupta
f3c56ca056 Context: Launch MainActivity for opening custom tab action
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-08-21 10:05:33 +05:30
Aayush Gupta
901cf0f2e2 Optimize imports
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-08-14 09:30:52 +05:30
Aayush Gupta
88d9dcdd53 DO NOT MERGE: WIP: Migrate AppDetailsActivity to fragment
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-07-16 13:49:50 +05:30
Aayush Gupta
77fe8652b7 Drop support for kitkat; Bump minSdk to 21
This has been dead for a while already, remove the code and bump minSdk to a
version that actually works

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-06-30 18:16:22 +05:30
Aayush Gupta
d4df0b4571 Use background from theme for MaterialAlertDialog
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-06-30 18:02:53 +05:30
Aayush Gupta
1b9eea69f0 fixup! Handle account UI login UI progress better 2023-05-28 10:47:00 +05:30
Aayush Gupta
cd3cd6f9b7 Handle account UI login UI progress better
* Show server down error message on 503 status
* Don't allow users to click another login option if another login is in progress
* Reset progress bar's visibility properly

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-05-28 01:13:13 +05:30
Aayush Gupta
6b2f22350c Add preference to open custom tab for searching apps
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-05-04 12:13:34 +05:30
Aayush Gupta
943a1c2d49 Glide: Drop unused transitionOptions parameter
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-05-01 20:05:37 +05:30
Aayush Gupta
eac0a95d06 Glide: Switch from ViewTarget to CustomViewTarget
ViewTarget has been deprecated

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-05-01 18:17:33 +05:30
Aayush Gupta
5a7615691b Switch to Material3 theme
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-04-30 12:20:52 +05:30
Aayush Gupta
4b6a9b9aa9 Switch to CustomTabs instead of launching browser
Provides a better UX

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-04-30 12:20:52 +05:30
Aayush Gupta
be9efa74c5 Drop unused parameters treewide
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-04-30 12:20:51 +05:30