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

Skip to content
Commit 270799ad authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Prevent potential NPE when forcing stop package during boot

Some test cases may send package removal command before boot
complete, e.g. around SecondaryZygotePreload stage. Then
ActivityManagerService#setWindowManager is not called yet so
mRootWindowContainer in ATMS is null.

Bug: 219066637
Bug: 186665301
Test: Restart device by "adb shell am restart".
      And keep sending "adb uninstall $validPackageName".
      The device should still boot successfully without crash.
      And the target package is also removed successfully.
Change-Id: I2711fabb0755b53a9817ce81ab553e5ce2a8c389
parent cdd2a77e
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