Fix default of extractNativeLibs in parseBaseApplication

This is a missed change in 4e54b521bc.

Test: adb install, check that libs are really not extracted.
Bug: 112037137
Change-Id: I0b819d656eb427c4b7b35e027808b87f3aad3c15
This commit is contained in:
Victor Hsieh
2019-01-14 20:56:40 -08:00
parent 4a09436a63
commit 12dd9cd46c

View File

@@ -3760,9 +3760,11 @@ public class PackageParser {
ai.flags |= ApplicationInfo.FLAG_MULTIARCH;
}
final boolean extractNativeLibsDefault =
owner.applicationInfo.targetSdkVersion < Build.VERSION_CODES.Q;
if (sa.getBoolean(
com.android.internal.R.styleable.AndroidManifestApplication_extractNativeLibs,
true)) {
extractNativeLibsDefault)) {
ai.flags |= ApplicationInfo.FLAG_EXTRACT_NATIVE_LIBS;
}