Merge "[ActivityManager] Prevent coredump file may not complete for testing."
This commit is contained in:
6
services/java/com/android/server/am/ActivityManagerService.java
Executable file → Normal file
6
services/java/com/android/server/am/ActivityManagerService.java
Executable file → Normal file
@ -10083,9 +10083,15 @@ public final class ActivityManagerService extends ActivityManagerNative
|
|||||||
int pid = r != null ? r.pid : Binder.getCallingPid();
|
int pid = r != null ? r.pid : Binder.getCallingPid();
|
||||||
if (!mController.appCrashed(name, pid,
|
if (!mController.appCrashed(name, pid,
|
||||||
shortMsg, longMsg, timeMillis, crashInfo.stackTrace)) {
|
shortMsg, longMsg, timeMillis, crashInfo.stackTrace)) {
|
||||||
|
if ("1".equals(SystemProperties.get(SYSTEM_DEBUGGABLE, "0"))
|
||||||
|
&& "Native crash".equals(crashInfo.exceptionClassName)) {
|
||||||
|
Slog.w(TAG, "Skip killing native crashed app " + name
|
||||||
|
+ "(" + pid + ") during testing");
|
||||||
|
} else {
|
||||||
Slog.w(TAG, "Force-killing crashed app " + name
|
Slog.w(TAG, "Force-killing crashed app " + name
|
||||||
+ " at watcher's request");
|
+ " at watcher's request");
|
||||||
Process.killProcess(pid);
|
Process.killProcess(pid);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
|
Reference in New Issue
Block a user