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

Skip to content
Commit 88184a6b authored by Richard Uhler's avatar Richard Uhler
Browse files

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
parent 6243f0aa
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