summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorMichael Groover <mpgroover@google.com>2020-12-09 12:15:05 -0800
committerMichael Groover <mpgroover@google.com>2020-12-09 16:25:00 -0800
commit1f4b18a172806fbf2e1352e4c892bed5e5ccc548 (patch)
treea1f52028bf34c7f6e7d0d90fcecae2c9e2515794 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentc36d7b0fb43db69af0ef68e3ea734a9ee2d5ba45 (diff)
Require rollback permission to use rollback install reason
The platform provides a mechanism to rollback an app to the previously installed version, but if the APK signing key was rotated on the newer version the ROLLBACK capability must be set for the previous signing key to allow the rollback to proceed. However setting the ROLLBACK capability on a previous signing key negates one of the primary reasons of rotating as it allows a subsequent app update to proceed with an APK signed with this previous signing key. Since only platform signed or priv-apps should have the permission to perform a rollback this commit will enforce that the rollback install reason is guarded by this permission. In a future commit the rollback install reason will be used to allow a rollback of an app even if it's signed with a previous key in the lineage. Bug: 175231724 Test: atest NoRollbackPermissionTest Test: adb shell pm rollback-app <TEST_APP> Change-Id: I8e1beaba2c22a4b25ada34a2c4b52cde47c780a0
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions