summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2015-03-09 22:14:53 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-03-09 22:14:54 +0000
commit7f383873566024c7121cadae3bbdd2a7c47150bc (patch)
treeebf44f336e9290e83503df2476a5a2dbf587a0e0 /core
parentc74467902b5a9a7267b6cb8f30b364b8373eac72 (diff)
parent735600c1e654ef3d4fe1201aa31d1f4eb33c18e3 (diff)
downloadframeworks_base-7f383873566024c7121cadae3bbdd2a7c47150bc.zip
frameworks_base-7f383873566024c7121cadae3bbdd2a7c47150bc.tar.gz
frameworks_base-7f383873566024c7121cadae3bbdd2a7c47150bc.tar.bz2
Merge "Frameworks/base: Pass APK debugability to installd"
Diffstat (limited to 'core')
-rw-r--r--core/java/com/android/internal/os/InstallerConnection.java6
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());
}