Commit Graph

83 Commits

Author SHA1 Message Date
Rahul Patel
baf593bd51 compose: rewire navigation as the single entry point
ComposeActivity becomes the sole launch target; the legacy MainActivity
is removed. Destination / Screen pair drives navigation3, NavDisplay
handles deep links plus microG-aware resume rechecks, and Theme.kt
is tightened for edge-to-edge.
2026-05-19 12:10:59 +05:30
Rahul Patel
1142ecac80 Add microG Installer 2025-11-03 11:28:51 +05:30
Aayush Gupta
51b9c08d25 Apply appropriate padding on <= API 29 devices
Ref: https://issuetracker.google.com/issues/266331465#comment21

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-10-25 00:50:25 +08:00
Aayush Gupta
07f7c3cccf compose: details: Handle imePadding properly during manual download
AndroidManifest values doesn't works for compose

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-09-11 15:03:46 +08:00
Aayush Gupta
f6f858e9f5 compose: Initial migration of AppDetails* logic to compose [1/*]
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-08-20 10:13:29 +08:00
Aayush Gupta
57f29ff094 SplashFragment: Handle SHOW_APP_INFO intents
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-03-21 12:00:01 +08:00
Rahul Patel
667017aec6 DownloadWorker: simplify & improve code [1/2]
TODO:
- Reduce notification frequency, create too many notifications resulting in notification actions being inaccesible.
- Its a bad practive to bombard system with notification redraws
2025-03-07 18:24:10 +05:30
Aayush Gupta
a9b2f0acf2 compose: Replicate BlacklistFragment in compose
Introduce a new activity to host composables as View system behaves
quite bad when composable are used inside it.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-02-16 15:07:47 +08:00
Aayush Gupta
d12339a454 AndroidManifest: Drop non-required protected permissions
INSTALL and DELETE packages permissions are only available to system apps
and every project including Aurora Store by default seems to include it
as a user app

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-01-14 11:02:40 +07:00
Aayush Gupta
fbc6a13018 Partial Revert "Do not show account selection dialog, if there is only 1 account"
This reverts commit baa954eb20.

Reason for revert: If user has multiple accounts on microG but chooses to login
using one of them, they will not be prompted again for selecting accounts again as
Aurora Store can only see the permitted account from the first time.
2025-01-01 12:06:38 +07:00
Rahul Patel
c7fefb12c7 AppDetails: Fix user review + minor cleanup 2024-12-14 23:29:02 +05:30
Rahul Patel
baa954eb20 Do not show account selection dialog, if there is only 1 account 2024-12-14 13:16:35 +05:30
Aayush Gupta
b4d89d0658 Add support for fetching authTokens from microG
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-12-14 13:03:33 +05:30
Aayush Gupta
98322b3358 Support unarchiving apps on Android 15+ devices
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-10-19 13:52:31 +05:30
Aayush Gupta
945209e62c fixup! AndroidManifest: Declare the CATEGORY_APP_MARKET intent in main action
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-10-17 15:02:12 +05:30
Rahul Patel
01c57e32aa Add preserveLegacyExternalStorage to manifest + formatting
- Least likely goint to help unless user is update from a real old version to new or upgrading OS
2024-07-29 01:11:19 +05:30
Aayush Gupta
236afff89d AndroidManifest: Declare the CATEGORY_APP_MARKET intent in main action
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-07-19 12:59:50 +07:00
Aayush Gupta
687a7c1540 MigrationReceiver: Add logic to do migrations on version bumps
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-05-31 15:59:18 +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
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
4ba2e39778 Request new FOREGROUND_SERVICE_DATA_SYNC permission for downloads
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-02-08 10:59:01 +01:00
Aayush Gupta
c651a65a91 SessionInstaller: Claim responsibility for future updates
The new setRequestUpdateOwnership() method allows us to indicate to the system that we intend to be responsible for future updates to an app it is installing.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-02-08 10:53:08 +01:00
Aayush Gupta
87b4301eb1 InstallActivity: Extend AppCompatActivity instead of Activity
This lets us use hilt for dependency injection here

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-01-20 18:37:27 +05:30
Aayush Gupta
b46d232956 AndroidManifest: Add comments wherever required
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-01-20 14:03:02 +05:30
Aayush Gupta
fd0e6b9a38 AndroidManifest: Drop non-default backup flags
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-01-20 13:57:51 +05:30
Aayush Gupta
14c8da2db5 DownloadWorker: Move app installation logic to new onSuccess method
Move app installation logic to onSuccess method in worker under a NonCancellable
context and convert the receiver class to be a generic status handler for anything
except success which should be handled in PackageManagerReceiver.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-12-27 21:15:00 +05:30
Aayush Gupta
e9080614af Drop dependency upon Fetch2 library
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-12-27 21:15:00 +05:30
Aayush Gupta
4c932bd048 DownloadWorkerUtil: Use room database to store downloads
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-12-14 18:26:18 +05:30
Aayush Gupta
dcaf4f024a PermissionsFragment: Request users to disable doze during onboarding
* Required for background downloads using WorkManager expedited works

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-11-29 18:59:17 +05:30
Aayush Gupta
01dee174bc DownloadWorker: Trigger app installation on success
* Transparent dummy activity to trigger installation of apps from notification

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
Rahul Patel
3ed31aee19 Add AuroraStore to global share action 2023-10-13 04:52:06 +05:30
Aayush Gupta
e23e350d87 AndroidManifest: Set enableOnBackInvokedCallback to true
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-10-02 10:26:11 +05:30
Aayush Gupta
66231dd5be fixup! Drop dependency upon Merlin
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-08-08 13:43:25 +05:30
Aayush Gupta
89bd11a394 Drop non-required boradcast reciever from AndroidManifest
These are context-registered broadcasts and having them in manifest
does nothing.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-08-08 13:36:23 +05:30
Aayush Gupta
06beab226c Drop non-required CHANGE_NETWORK_STATE permission
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-08-08 13:34:24 +05:30
Aayush Gupta
0845add5ee Switch to auto-generated per-app languages
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-07-30 23:02:18 +08:00
Aayush Gupta
544ee8eb54 Migrate OnboardingActivity to fragment
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-07-16 13:49:50 +05:30
Aayush Gupta
cd5e49d1d2 DO NOT MERGE: Migrate GoogleActivity to fragment
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-07-16 13:49:50 +05:30
Aayush Gupta
da343e8530 Migrate SplashActivity to fragment
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-07-16 13:49:50 +05:30
Aayush Gupta
e65b35f014 Migrate DetailsExodusActivity to fragment
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-07-16 13:49:50 +05:30
Aayush Gupta
7fab0496b9 Migrate DetailsReviewActivity to fragment
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-07-16 13:49:50 +05:30
Aayush Gupta
6509062ef7 Migrate DetailsMoreActivity to fragment
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-07-16 13:49:50 +05:30
Aayush Gupta
18b328240f Migrate DevAppsActivity to fragment
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-07-16 13:49:50 +05:30
Aayush Gupta
45a130a430 Migrate StreamBrowseActivity to fragment
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-07-16 13:49:50 +05:30
Aayush Gupta
86f6939097 Migrate DevProfileActivity to fragment
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-07-16 13:49:50 +05:30
Aayush Gupta
fc3dfaa747 Migrate ScreenshotActivity to fragment
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-07-16 13:49:50 +05:30
Aayush Gupta
a654896ba4 DO NOT MERGE: Migrate ExpandedStreamBrowseActivity to fragment
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-07-16 13:49:50 +05:30
Aayush Gupta
953cea01c5 Migrate EditorStreamBrowseActivity to fragment
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-07-16 13:49:50 +05:30
Aayush Gupta
d4fe674d4e Migrate CategoryBrowseActivity to fragment
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-07-16 13:49:50 +05:30