diff options
| author | 2022-08-09 17:48:15 +0100 | |
|---|---|---|
| committer | 2022-08-09 17:43:44 +0000 | |
| commit | fbfa268d47c7915b7a87d3fef22a5b8f3bbabeb7 (patch) | |
| tree | e393b16dfe5c4c1ee816c2975e8ff99bc90aa98f /libs/androidfw/ResourceUtils.cpp | |
| parent | d69df94c245e9a1411592a4d384de02ee18d9b68 (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