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

Commit 7e01bc3e authored by randy.jeong's avatar randy.jeong Committed by android-build-merger
Browse files

Ignore signal registration for debugging am: 3ea9580a

am: 0d79e129

Change-Id: I7a970d1d4f06e1261a3f5e9bb894f21315fc6d9d
parents 68f6a8b5 0d79e129
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -106,6 +106,14 @@ public final class Zygote {
     */
     */
    public static final int USE_APP_IMAGE_STARTUP_CACHE = 1 << 16;
    public static final int USE_APP_IMAGE_STARTUP_CACHE = 1 << 16;


    /**
     * When set, application specified signal handlers are not chained (i.e, ignored)
     * by the runtime.
     *
     * Used for debugging only. Usage: set debug.ignoreappsignalhandler to 1.
     */
    public static final int DEBUG_IGNORE_APP_SIGNAL_HANDLER = 1 << 17;

    /** No external storage should be mounted. */
    /** No external storage should be mounted. */
    public static final int MOUNT_EXTERNAL_NONE = IVold.REMOUNT_MODE_NONE;
    public static final int MOUNT_EXTERNAL_NONE = IVold.REMOUNT_MODE_NONE;
    /** Default external storage should be mounted. */
    /** Default external storage should be mounted. */
+3 −0
Original line number Original line Diff line number Diff line
@@ -1544,6 +1544,9 @@ public final class ProcessList {
            if ("1".equals(SystemProperties.get("debug.assert"))) {
            if ("1".equals(SystemProperties.get("debug.assert"))) {
                runtimeFlags |= Zygote.DEBUG_ENABLE_ASSERT;
                runtimeFlags |= Zygote.DEBUG_ENABLE_ASSERT;
            }
            }
            if ("1".equals(SystemProperties.get("debug.ignoreappsignalhandler"))) {
                runtimeFlags |= Zygote.DEBUG_IGNORE_APP_SIGNAL_HANDLER;
            }
            if (mService.mNativeDebuggingApp != null
            if (mService.mNativeDebuggingApp != null
                    && mService.mNativeDebuggingApp.equals(app.processName)) {
                    && mService.mNativeDebuggingApp.equals(app.processName)) {
                // Enable all debug flags required by the native debugger.
                // Enable all debug flags required by the native debugger.