summaryrefslogtreecommitdiff
path: root/libs/androidfw/ResourceUtils.cpp
diff options
context:
space:
mode:
author Oli Lan <olilan@google.com> 2022-08-09 17:48:15 +0100
committer Oli Lan <olilan@google.com> 2022-08-09 17:43:44 +0000
commitfbfa268d47c7915b7a87d3fef22a5b8f3bbabeb7 (patch)
treee393b16dfe5c4c1ee816c2975e8ff99bc90aa98f /libs/androidfw/ResourceUtils.cpp
parentd69df94c245e9a1411592a4d384de02ee18d9b68 (diff)
Prevent non-admin users from deleting system apps.
This addresses a security issue where the guest user can remove updates for system apps. With this CL, attempts to uninstall/downgrade system apps will fail if attempted by a non-admin user, unless the DELETE_SYSTEM_APP flag is specified. This is a fixed version of ag/17408864, to address b/236578018. Bug: 170646036 Test: manual, try uninstalling system app update as guest Merged-In: I4e959e296cca9bbdfc8fccc5e5e0e654ca524165 Change-Id: I6ecfef50294c9000a6ce539bdec6f372c872a40b
Diffstat (limited to 'libs/androidfw/ResourceUtils.cpp')
0 files changed, 0 insertions, 0 deletions