Prevent system restart while updating package during boot
No-op if RWC is not yet created. Bug: 279008103 Test: wm presubmit Change-Id: Ib37a2b8d08089416d05ae40f06f4807c9125c1e3
This commit is contained in:
@@ -6287,6 +6287,8 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub {
|
||||
public void cleanupDisabledPackageComponents(
|
||||
String packageName, Set<String> disabledClasses, int userId, boolean booted) {
|
||||
synchronized (mGlobalLock) {
|
||||
// In case if setWindowManager hasn't been called yet when booting.
|
||||
if (mRootWindowContainer == null) return;
|
||||
// Clean-up disabled activities.
|
||||
if (mRootWindowContainer.finishDisabledPackageActivities(
|
||||
packageName, disabledClasses, true /* doit */, false /* evenPersistent */,
|
||||
|
||||
Reference in New Issue
Block a user