Fix VPN app update disabling always on and leak blocking - #384
Draft
liamsmith827 wants to merge 439 commits into
Draft
Fix VPN app update disabling always on and leak blocking#384liamsmith827 wants to merge 439 commits into
liamsmith827 wants to merge 439 commits into
Conversation
Originally authored by Danny Lin <danny@kdrag0n.dev> for inclusion in GrapheneOS. It has since been substantially extended and partially rewritten by Dmitry Muhomor <muhomor.dmitry@gmail.com> (primarily) and Daniel Micay <danielmicay@gmail.com>. Commit history: (better viewed with git log --grep gmscompat $TAG_NAME) https://github.com/GrapheneOS/platform_frameworks_base/commits/2026030100 https://github.com/GrapheneOS/platform_frameworks_base/commits/2025081400 https://github.com/GrapheneOS/platform_frameworks_base/commits/2025060200 https://github.com/GrapheneOS/platform_frameworks_base/commits/2025021100 https://github.com/GrapheneOS/platform_frameworks_base/commits/2024112700 https://github.com/GrapheneOS/platform_frameworks_base/commits/2024083100 https://github.com/GrapheneOS/platform_frameworks_base/commits/2024053100 https://github.com/GrapheneOS/platform_frameworks_base/commits/2024030300 https://github.com/GrapheneOS/platform_frameworks_base/commits/2023112900 https://github.com/GrapheneOS/platform_frameworks_base/commits/2023080800 https://github.com/GrapheneOS/platform_frameworks_base/commits/TQ2A.230505.002.2023052900 https://github.com/GrapheneOS/platform_frameworks_base/commits/TQ1A.230205.002.2023020600 https://github.com/GrapheneOS/platform_frameworks_base/commits/SP2A.220505.006.2022073000 https://github.com/GrapheneOS/platform_frameworks_base/commits/SP2A.220505.002.2022053100 July 2021 - October 2021: https://github.com/GrapheneOS/platform_frameworks_base/commits/RQ3A.211001.001.2021100606
This is a precaution in case ro.vendor.camera.extensions.package is set to an unexpected value.
Co-authored-by: Pratyush <codelab@pratyush.dev>
Co-authored-by: Pratyush <codelab@pratyush.dev>
If there's no network location provider: - redirect network location requests to one of available location providers - stub out mock location management calls for network provider (TestProvider methods), since redirecting them is infeasible These changes apply only to third-party apps. There's a relevant system feature (android.hardware.location.network) that is still listed as available to improve app compatibility. Removing it would not make this change redundant, because there are apps that try to use the network location provider without declaring the need for this feature or checking its presence at runtime.
- report job progress when it's running - prompt the user to restart optimized apps after job completion - schedule automatic restart of optimized apps via ActivityManager.killProcessesWhenImperceptible() in case they aren't restarted manually
This allows to skip restarting them after post-OTA asynchronous optimization, which some VPN service hosts don't handle properly.
Some of per-app features (e.g. SELinux restrictions) require app process restart to be applied.
Value of the previous global setting is used as a default value of the new per-app setting. For system apps, native debugging is blocked unconditionally.
See previous GrapheneOS@e38a7a0#diff-011b32fdcd5ea1e2e73efc213d16ecc75b1882828437db6372ebf47fec388a7aR347-R354 Add back missing mLockDomain parameter Adjust to new Android 17 changes from GrapheneOS@853fa20 to prevent showing incorrect message "Or unlock with fingerprint" when failing 2FA pin
…tead of getDataDir()
liamsmith827
marked this pull request as draft
June 23, 2026 05:17
muhomorr
added a commit
to muhomorr/platform_frameworks_base
that referenced
this pull request
Jun 23, 2026
muhomorr
added a commit
to muhomorr/platform_frameworks_base
that referenced
this pull request
Jun 23, 2026
thestinger
pushed a commit
that referenced
this pull request
Jun 23, 2026
thestinger
pushed a commit
that referenced
this pull request
Jul 31, 2026
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.
Updated version of #382