Skip to content

Fix VPN app update disabling always on and leak blocking - #384

Draft
liamsmith827 wants to merge 439 commits into
GrapheneOS:17from
liamsmith827:17_06-22_vpn-app-update-bug
Draft

Fix VPN app update disabling always on and leak blocking#384
liamsmith827 wants to merge 439 commits into
GrapheneOS:17from
liamsmith827:17_06-22_vpn-app-update-bug

Conversation

@liamsmith827

Copy link
Copy Markdown

Updated version of #382

muhomorr and others added 30 commits June 16, 2026 18:17
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.
muhomorr and others added 23 commits June 19, 2026 17:37
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
@liamsmith827
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.