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

Use UserHandle.SYSTEM for ENABLE_ROLLBACK broadcast.

In the case of staged installs, the user associated with the install may
not be running yet, which would cause the broadcast to fail and lead to
deadlock on boot. Use the SYSTEM user instead, which should always be up
and running.

Bug: 129407914
Test: Manually add multiple users to device,
      $ adb install --user 10 --staged --enable-rollback foo.apk
      Wait a few seconds for session ready.
      $ adb reboot
      Device reboots.

Change-Id: I64363651b6b3660b104cf0a53ec371bef6f5bbc3
parent 138cbcbb
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