feat: Installer choice for users#2799
Open
bikram-agarwal wants to merge 1 commit intoImranR98:mainfrom
Open
Conversation
Made-By: Bikram Agarwal
|
Great feature, free to change any installer, can't wait! |
Owner
|
Have you tested to see if this works for background updates? This is a pretty big PR with native code, might take a while for me to get around to checking fully. |
Author
|
Hi. No, I hadn't tested background updates. I always disable background updates on all my stores, since I like to read changelogs before updating. I tried these steps now:
Maybe we can add a warning that background update installation may not be possible with Legacy mode. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add choice of installers 🔧
Summary
Adds a third installer option alongside Stock and Shizuku - a Legacy installer mode. This lets users delegate APK installations to an external installer app (e.g. InstallerX, App Manager) via a custom
ContentProvider, bypassing Android's "Install Unknown Apps" restriction for the source app.What's included
content://URIs with world-readable permissionsBroadcastReceiverlistens forACTION_PACKAGE_ADDED/ACTION_PACKAGE_REPLACEDto confirm installation success back to the appScreenshot
Why this matters 🛡️
Users with Android's Advanced Protection enabled cannot grant "Install Unknown Apps" permission to any app. This feature provides a clean workaround by routing installations through a privileged installer that already has root/Shizuku access, without requiring any new app permissions.
Files changed (8)
AndroidManifest.xml- CacheContentProvider declaration + package visibility queriesCacheContentProvider.kt- Custom ContentProvider for serving cached APKsMainActivity.kt- MethodChannel bridge for installer queries and install intent dispatchinstaller_provider.dart- Dart-side installer channel wrappersettings_provider.dart-installerModesetting + migration from olduseShizukubooleansettings.dart- Installer mode UI (SegmentedButton + legacy installer picker)apps_provider.dart- Legacy install flow integrationen.json- 7 new translation keys (other locales welcome)