-
-
Notifications
You must be signed in to change notification settings - Fork 23
Avoid auto-granting special permissions to unarchived apps #163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
IIRC permission state is initialized for all users when app gets installed. It's definitely true for apps that were installed before Android 15 update.
|
Thanks, I'll look into that approach instead. |
6c7af8f
to
753cba3
Compare
Done. Updated to use @muhomorr2's suggested approach. |
This also needs to be verified and tested that it doesn't call |
753cba3
to
dc4fe44
Compare
Thanks, fixed in dc4fe44. That was something I overlooked when moving the |
services/core/java/com/android/server/pm/InstallPackageHelper.java
Outdated
Show resolved
Hide resolved
Avoid calling setNewlyInstalledInUserId() when restoring an archived app to ensure that the special permission auto-granting logic does not reset the user's previous permission state. Fixes: GrapheneOS/os-issue-tracker#5256 Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
dc4fe44
to
515241a
Compare
Avoid calling
setNewlyInstalledInUserId()
when restoring an archived app to ensure that the special permission auto-granting logic does not reset the user's previous permission state.Fixes: GrapheneOS/os-issue-tracker#5256
Tested:
SpecialRuntimePermUtils
permission)