AppErrors: unfreeze app before scheduling crash

Test: atest CtsPermissionTestCases:android.permission.cts.OneTimePermissionTest#testStickyServiceMaintainsPermissionOnRestart
Bug: 276653423
Change-Id: I6baca60872eb1bc2ba2c1f0bd7c66b70250c252c
This commit is contained in:
Tim Murray
2023-04-03 22:21:19 -07:00
parent bbbe3c7935
commit 0ba870e4c4

View File

@@ -534,6 +534,8 @@ class AppErrors {
}
}
mService.mOomAdjuster.mCachedAppOptimizer.unfreezeProcess(initialPid,
CachedAppOptimizer.UNFREEZE_REASON_PROCESS_END);
proc.scheduleCrashLocked(message, exceptionTypeId, extras);
if (force) {
// If the app is responsive, the scheduled crash will happen as expected