Loading core/java/com/android/internal/os/Zygote.java +5 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,11 @@ public final class Zygote { /** Make the code Java debuggable by turning off some optimizations. */ public static final int DEBUG_JAVA_DEBUGGABLE = 1 << 8; /** Turn off the verifier. */ public static final int DISABLE_VERIFIER = 1 << 9; /** Only use oat files located in /system. Otherwise use dex/jar/apk . */ public static final int ONLY_USE_SYSTEM_OAT_FILES = 1 << 10; /** No external storage should be mounted. */ public static final int MOUNT_EXTERNAL_NONE = 0; /** Default external storage should be mounted. */ Loading services/core/java/com/android/server/am/ActivityManagerService.java +6 −0 Original line number Diff line number Diff line Loading @@ -3856,6 +3856,12 @@ public class ActivityManagerService extends IActivityManager.Stub mNativeDebuggingApp = null; } if (app.info.isPrivilegedApp() && !SystemProperties.getBoolean("pm.dexopt.priv-apps", true)) { runtimeFlags |= Zygote.DISABLE_VERIFIER; runtimeFlags |= Zygote.ONLY_USE_SYSTEM_OAT_FILES; } String invokeWith = null; if ((app.info.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0) { // Debuggable apps may include a wrapper script with their library directory. Loading
core/java/com/android/internal/os/Zygote.java +5 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,11 @@ public final class Zygote { /** Make the code Java debuggable by turning off some optimizations. */ public static final int DEBUG_JAVA_DEBUGGABLE = 1 << 8; /** Turn off the verifier. */ public static final int DISABLE_VERIFIER = 1 << 9; /** Only use oat files located in /system. Otherwise use dex/jar/apk . */ public static final int ONLY_USE_SYSTEM_OAT_FILES = 1 << 10; /** No external storage should be mounted. */ public static final int MOUNT_EXTERNAL_NONE = 0; /** Default external storage should be mounted. */ Loading
services/core/java/com/android/server/am/ActivityManagerService.java +6 −0 Original line number Diff line number Diff line Loading @@ -3856,6 +3856,12 @@ public class ActivityManagerService extends IActivityManager.Stub mNativeDebuggingApp = null; } if (app.info.isPrivilegedApp() && !SystemProperties.getBoolean("pm.dexopt.priv-apps", true)) { runtimeFlags |= Zygote.DISABLE_VERIFIER; runtimeFlags |= Zygote.ONLY_USE_SYSTEM_OAT_FILES; } String invokeWith = null; if ((app.info.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0) { // Debuggable apps may include a wrapper script with their library directory.