summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Oli Lan <olilan@google.com> 2022-06-29 15:23:04 +0100
committer Oli Lan <olilan@google.com> 2022-06-29 15:38:06 +0100
commit02a03d774e67b562626b1aec967e1e57636683d4 (patch)
tree0515e6736bd73d8ba42f598d8b65446eb1686dc4 /libs/androidfw/StringPool.cpp
parent4218c30042b1399e569401073b700903dfce08c2 (diff)
Modify conditions for preventing updated system apps from being downgraded
Add two conditions prior to deciding whether a specific user can downgrade system apps by deletePackageX. 1.uninstalledPs must be a updated system app. 2.deleteFlags does not contains PackageManager.DELETE_SYSTEM_APP, since flag PackageManager.DELETE_SYSTEM_APP will just mark the app as uninstalled for the specific user instead of uninstalling the update and rolling back to the older system version. Bug: 236578018 Test: atest DeletePackageHelperTest Change-Id: I55a3d322e84aaaced69bd5edeaf90e82ac9a0dd3
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions