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

Commit ebe83068 authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Fix issue #9586838: Crash after waking up Hammerhead device

Change-Id: I114306871f02b2461619e8a1cc9652f343edd117
parent 9b43a604
Loading
Loading
Loading
Loading
+35 −27
Original line number Diff line number Diff line
@@ -7575,8 +7575,13 @@ public final class ActivityManagerService extends ActivityManagerNative
        }
        synchronized(this) {
            long ident = Binder.clearCallingIdentity();
            try {
                mLockScreenShown = shown;
                comeOutOfSleepIfNeededLocked();
            } finally {
                Binder.restoreCallingIdentity(ident);
            }
        }
    }
@@ -7634,6 +7639,8 @@ public final class ActivityManagerService extends ActivityManagerNative
        enforceCallingPermission(android.Manifest.permission.SET_DEBUG_APP,
                "setDebugApp()");
        long ident = Binder.clearCallingIdentity();
        try {
            // Note that this is not really thread safe if there are multiple
            // callers into it at the same time, but that's not a situation we
            // care about.
@@ -7656,12 +7663,13 @@ public final class ActivityManagerService extends ActivityManagerNative
                mWaitForDebugger = waitForDebugger;
                mDebugTransient = !persistent;
                if (packageName != null) {
                final long origId = Binder.clearCallingIdentity();
                    forceStopPackageLocked(packageName, -1, false, false, true, true,
                            UserHandle.USER_ALL, "set debug app");
                Binder.restoreCallingIdentity(origId);
                }
            }
        } finally {
            Binder.restoreCallingIdentity(ident);
        }
    }
    void setOpenGlTraceApp(ApplicationInfo app, String processName) {