Update DexFile#getDexOptNeeded usages to reflect API change am: 52c8620c19
am: 51b9a824d5
Change-Id: I40cb970c53220f42558cb8b968efc97b8c7408d6
This commit is contained in:
@@ -553,7 +553,7 @@ public class ZygoteInit {
|
||||
try {
|
||||
dexoptNeeded = DexFile.getDexOptNeeded(
|
||||
classPathElement, instructionSet, "speed",
|
||||
false /* newProfile */);
|
||||
false /* newProfile */, false /* downgrade */);
|
||||
} catch (FileNotFoundException ignored) {
|
||||
// Do not add to the classpath.
|
||||
Log.w(TAG, "Missing classpath element for system server: " + classPathElement);
|
||||
|
||||
@@ -428,7 +428,8 @@ public class PackageDexOptimizer {
|
||||
boolean newProfile) {
|
||||
int dexoptNeeded;
|
||||
try {
|
||||
dexoptNeeded = DexFile.getDexOptNeeded(path, isa, compilerFilter, newProfile);
|
||||
dexoptNeeded = DexFile.getDexOptNeeded(path, isa, compilerFilter, newProfile,
|
||||
false /* downgrade */);
|
||||
} catch (IOException ioe) {
|
||||
Slog.w(TAG, "IOException reading apk: " + path, ioe);
|
||||
return DEX_OPT_FAILED;
|
||||
|
||||
Reference in New Issue
Block a user