summaryrefslogtreecommitdiff
path: root/libs/androidfw/AttributeResolution.cpp
diff options
context:
space:
mode:
author Evan Severson <evanseverson@google.com> 2024-08-07 14:44:30 -0700
committer Evan Severson <evanseverson@google.com> 2024-08-14 10:00:59 -0700
commit943e1d0ccd947cddbf13de6d25b645e31a5b1bcb (patch)
treef4d04ee76020e6d505c9455d0dbcec2bae0af181 /libs/androidfw/AttributeResolution.cpp
parentbba43e4849e73274650dcab97f6b95fe6a44664d (diff)
Check if the uid still exists before attempting to remove app op state
This is a workaround to deal with a package manager bug around shared uids and multiuser cases. In the short term it is safer to fix here but in the next release the root cause is planned to be fixed so this will be able to be removed. The UID_REMOVED broadcast sometimes is incorrectly fired while the uid continues to exist so we need check if the uid still exists before we continue to remove its app op state. Flag: android.permission.flags.dont_remove_existing_uid_states Test: Create app sharing system uid and install on all users and uninstall on one, observe that we stop processes the UID_REMOVED broadcast early. Bug: 353474742 Change-Id: I5f2ffb47dada7513d808e22f2cd6f33faa65776f
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions