Merge "Install all files from the lib directory for debuggable apps" am: c0cc7c646c am: 736852e2c4
am: db274f7859
Change-Id: I4bd6e3da9c41fcfb9a5d8f39c63da446515fc9ff
This commit is contained in:
@@ -342,6 +342,7 @@ public class PackageParser {
|
||||
public final int[] splitRevisionCodes;
|
||||
|
||||
public final boolean coreApp;
|
||||
public final boolean debuggable;
|
||||
public final boolean multiArch;
|
||||
public final boolean use32bitAbi;
|
||||
public final boolean extractNativeLibs;
|
||||
@@ -359,6 +360,7 @@ public class PackageParser {
|
||||
this.baseRevisionCode = baseApk.revisionCode;
|
||||
this.splitRevisionCodes = splitRevisionCodes;
|
||||
this.coreApp = baseApk.coreApp;
|
||||
this.debuggable = baseApk.debuggable;
|
||||
this.multiArch = baseApk.multiArch;
|
||||
this.use32bitAbi = baseApk.use32bitAbi;
|
||||
this.extractNativeLibs = baseApk.extractNativeLibs;
|
||||
@@ -388,6 +390,7 @@ public class PackageParser {
|
||||
public final Signature[] signatures;
|
||||
public final Certificate[][] certificates;
|
||||
public final boolean coreApp;
|
||||
public final boolean debuggable;
|
||||
public final boolean multiArch;
|
||||
public final boolean use32bitAbi;
|
||||
public final boolean extractNativeLibs;
|
||||
@@ -395,7 +398,8 @@ public class PackageParser {
|
||||
public ApkLite(String codePath, String packageName, String splitName, int versionCode,
|
||||
int revisionCode, int installLocation, List<VerifierInfo> verifiers,
|
||||
Signature[] signatures, Certificate[][] certificates, boolean coreApp,
|
||||
boolean multiArch, boolean use32bitAbi, boolean extractNativeLibs) {
|
||||
boolean debuggable, boolean multiArch, boolean use32bitAbi,
|
||||
boolean extractNativeLibs) {
|
||||
this.codePath = codePath;
|
||||
this.packageName = packageName;
|
||||
this.splitName = splitName;
|
||||
@@ -406,6 +410,7 @@ public class PackageParser {
|
||||
this.signatures = signatures;
|
||||
this.certificates = certificates;
|
||||
this.coreApp = coreApp;
|
||||
this.debuggable = debuggable;
|
||||
this.multiArch = multiArch;
|
||||
this.use32bitAbi = use32bitAbi;
|
||||
this.extractNativeLibs = extractNativeLibs;
|
||||
@@ -1440,6 +1445,7 @@ public class PackageParser {
|
||||
int versionCode = 0;
|
||||
int revisionCode = 0;
|
||||
boolean coreApp = false;
|
||||
boolean debuggable = false;
|
||||
boolean multiArch = false;
|
||||
boolean use32bitAbi = false;
|
||||
boolean extractNativeLibs = true;
|
||||
@@ -1479,6 +1485,9 @@ public class PackageParser {
|
||||
if (parser.getDepth() == searchDepth && "application".equals(parser.getName())) {
|
||||
for (int i = 0; i < attrs.getAttributeCount(); ++i) {
|
||||
final String attr = attrs.getAttributeName(i);
|
||||
if ("debuggable".equals(attr)) {
|
||||
debuggable = attrs.getAttributeBooleanValue(i, false);
|
||||
}
|
||||
if ("multiArch".equals(attr)) {
|
||||
multiArch = attrs.getAttributeBooleanValue(i, false);
|
||||
}
|
||||
@@ -1494,7 +1503,7 @@ public class PackageParser {
|
||||
|
||||
return new ApkLite(codePath, packageSplit.first, packageSplit.second, versionCode,
|
||||
revisionCode, installLocation, verifiers, signatures, certificates, coreApp,
|
||||
multiArch, use32bitAbi, extractNativeLibs);
|
||||
debuggable, multiArch, use32bitAbi, extractNativeLibs);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user