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

Commit 635e039a authored by riddle_hsu's avatar riddle_hsu Committed by Android Git Automerger
Browse files

am d66d006f: [ActivityManager] Prevent coredump file may not complete for testing.

* commit 'd66d006f9f64a0c9e70827b27e21210192f9b552':
  [ActivityManager] Prevent coredump file may not complete for testing.
parents 341c6317 214be42e
Loading
Loading
Loading
Loading
+11 −5
Original line number Diff line number Diff line
@@ -10966,12 +10966,18 @@ public final class ActivityManagerService extends ActivityManagerNative
                    int uid = r != null ? r.info.uid : Binder.getCallingUid();
                    if (!mController.appCrashed(name, pid,
                            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
                                    + " at watcher's request");
                            Process.killProcess(pid);
                            if (r != null) {
                                Process.killProcessGroup(uid, pid);
                            }
                        }
                        return;
                    }
                } catch (RemoteException e) {