diff options
author | Richard Uhler <ruhler@google.com> | 2019-04-16 11:30:25 +0100 |
---|---|---|
committer | Richard Uhler <ruhler@google.com> | 2019-04-16 11:36:52 +0100 |
commit | 88184a6be9461187fe989482d6b6c8247140eb94 (patch) | |
tree | 7d1c7094476fc3118a962ac68eae51c7ab5c7db6 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 6243f0aa27ee1c0f589489ab386d375afacfe2c3 (diff) |
Add -i com.android.shell when --enable-rollback is specified.
com.android.shell has the TEST_MANAGE_ROLLBACKS permission needed to enable
rollback for non-module packages, which is likely what the user wants when
enabling rollback through the shell command. Set the installer to
com.android.shell if no installer has been provided so that the user doesn't
have to remember to set it themselves.
Bug: 129835930
Test: adb install RollbackTestAppAv1.apk
adb install --enable-rollback RollbackTestAppAv2.apk
adb shell dumpsys rollback, confirming a rollback is available for the
test app.
Change-Id: I9f42cf0e1dab2efffb6badd6b8ea477887176bca
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions