Loading core/java/com/android/internal/os/RuntimeInit.java +4 −0 Original line number Diff line number Diff line Loading @@ -62,6 +62,8 @@ public class RuntimeInit { private static IBinder mApplicationObject; private static volatile boolean mCrashing = false; private static final String SYSPROP_CRASH_COUNT = "sys.system_server.crash_java"; private static int mCrashCount; private static volatile ApplicationWtfHandler sDefaultApplicationWtfHandler; Loading Loading @@ -105,6 +107,8 @@ public class RuntimeInit { // first clause in either of these two cases, only for system_server. if (mApplicationObject == null && (Process.SYSTEM_UID == Process.myUid())) { Clog_e(TAG, "*** FATAL EXCEPTION IN SYSTEM PROCESS: " + t.getName(), e); mCrashCount = SystemProperties.getInt(SYSPROP_CRASH_COUNT, 0) + 1; SystemProperties.set(SYSPROP_CRASH_COUNT, String.valueOf(mCrashCount)); } else { logUncaught(t.getName(), ActivityThread.currentProcessName(), Process.myPid(), e); } Loading Loading
core/java/com/android/internal/os/RuntimeInit.java +4 −0 Original line number Diff line number Diff line Loading @@ -62,6 +62,8 @@ public class RuntimeInit { private static IBinder mApplicationObject; private static volatile boolean mCrashing = false; private static final String SYSPROP_CRASH_COUNT = "sys.system_server.crash_java"; private static int mCrashCount; private static volatile ApplicationWtfHandler sDefaultApplicationWtfHandler; Loading Loading @@ -105,6 +107,8 @@ public class RuntimeInit { // first clause in either of these two cases, only for system_server. if (mApplicationObject == null && (Process.SYSTEM_UID == Process.myUid())) { Clog_e(TAG, "*** FATAL EXCEPTION IN SYSTEM PROCESS: " + t.getName(), e); mCrashCount = SystemProperties.getInt(SYSPROP_CRASH_COUNT, 0) + 1; SystemProperties.set(SYSPROP_CRASH_COUNT, String.valueOf(mCrashCount)); } else { logUncaught(t.getName(), ActivityThread.currentProcessName(), Process.myPid(), e); } Loading