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

Commit fa36aee6 authored by Elliott Hughes's avatar Elliott Hughes
Browse files

Make debuggable="true" imply CheckJNI.

This should help third-party developers debug their apps.

Tested by adding logging to dalvik and launching a debuggable app.

Change-Id: Icec66825709e399e238b4ff00f2bc596485a3a60
parent 18cc57fb
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1933,6 +1933,9 @@ public final class ActivityManagerService extends ActivityManagerNative
            int debugFlags = 0;
            if ((app.info.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0) {
                debugFlags |= Zygote.DEBUG_ENABLE_DEBUGGER;
                // Also turn on CheckJNI for debuggable apps. It's quite
                // awkward to turn on otherwise.
                debugFlags |= Zygote.DEBUG_ENABLE_CHECKJNI;
            }
            // Run the app in safe mode if its manifest requests so or the
            // system is booted in safe mode.