Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 02a03d77 authored by Oli Lan's avatar Oli Lan
Browse files

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
parent 4218c300
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment