diff options
author | Andreas Gampe <agampe@google.com> | 2015-03-05 13:11:46 -0800 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2015-03-09 08:57:23 -0700 |
commit | 735600c1e654ef3d4fe1201aa31d1f4eb33c18e3 (patch) | |
tree | 85b57a15fcc848f7d6ad501bb08c5ac348780d65 /core | |
parent | 7a4cb563a29f05658760739d3bc2e70bd6342174 (diff) | |
download | frameworks_base-735600c1e654ef3d4fe1201aa31d1f4eb33c18e3.zip frameworks_base-735600c1e654ef3d4fe1201aa31d1f4eb33c18e3.tar.gz frameworks_base-735600c1e654ef3d4fe1201aa31d1f4eb33c18e3.tar.bz2 |
Frameworks/base: Pass APK debugability to installd
Change-Id: Id17ec72babe2ee88713a0d274eff86508de30666
Diffstat (limited to 'core')
-rw-r--r-- | core/java/com/android/internal/os/InstallerConnection.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/java/com/android/internal/os/InstallerConnection.java b/core/java/com/android/internal/os/InstallerConnection.java index 2f30ebc..433a54b 100644 --- a/core/java/com/android/internal/os/InstallerConnection.java +++ b/core/java/com/android/internal/os/InstallerConnection.java @@ -91,11 +91,11 @@ public class InstallerConnection { } public int dexopt(String apkPath, int uid, boolean isPublic, String instructionSet) { - return dexopt(apkPath, uid, isPublic, "*", instructionSet, false); + return dexopt(apkPath, uid, isPublic, "*", instructionSet, false, false); } public int dexopt(String apkPath, int uid, boolean isPublic, String pkgName, - String instructionSet, boolean vmSafeMode) { + String instructionSet, boolean vmSafeMode, boolean debuggable) { StringBuilder builder = new StringBuilder("dexopt"); builder.append(' '); builder.append(apkPath); @@ -106,8 +106,8 @@ public class InstallerConnection { builder.append(pkgName); builder.append(' '); builder.append(instructionSet); - builder.append(' '); builder.append(vmSafeMode ? " 1" : " 0"); + builder.append(debuggable ? " 1" : " 0"); return execute(builder.toString()); } |