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
This is a fixed version of ag/17352264, to address b/236578018.
Test: atest DeletePackageHelperTest
2 files changed