Update DexFile#getDexOptNeeded usages to reflect API change
Test: make and boot
Merged-in: I68f9f617d6722a7ba8b00aa2181cb38a165cfc51
Bug: 36598475
(partially cherry-picked from commit 246dccf932)
Change-Id: Idfc9276eb2b61244bbd634f49a3912dab6fcabfa
This commit is contained in:
@@ -548,7 +548,7 @@ public class ZygoteInit {
|
|||||||
try {
|
try {
|
||||||
dexoptNeeded = DexFile.getDexOptNeeded(
|
dexoptNeeded = DexFile.getDexOptNeeded(
|
||||||
classPathElement, instructionSet, "speed",
|
classPathElement, instructionSet, "speed",
|
||||||
false /* newProfile */);
|
false /* newProfile */, false /* downgrade */);
|
||||||
} catch (FileNotFoundException ignored) {
|
} catch (FileNotFoundException ignored) {
|
||||||
// Do not add to the classpath.
|
// Do not add to the classpath.
|
||||||
Log.w(TAG, "Missing classpath element for system server: " + classPathElement);
|
Log.w(TAG, "Missing classpath element for system server: " + classPathElement);
|
||||||
|
|||||||
@@ -428,7 +428,8 @@ public class PackageDexOptimizer {
|
|||||||
boolean newProfile) {
|
boolean newProfile) {
|
||||||
int dexoptNeeded;
|
int dexoptNeeded;
|
||||||
try {
|
try {
|
||||||
dexoptNeeded = DexFile.getDexOptNeeded(path, isa, compilerFilter, newProfile);
|
dexoptNeeded = DexFile.getDexOptNeeded(path, isa, compilerFilter, newProfile,
|
||||||
|
false /* downgrade */);
|
||||||
} catch (IOException ioe) {
|
} catch (IOException ioe) {
|
||||||
Slog.w(TAG, "IOException reading apk: " + path, ioe);
|
Slog.w(TAG, "IOException reading apk: " + path, ioe);
|
||||||
return DEX_OPT_FAILED;
|
return DEX_OPT_FAILED;
|
||||||
|
|||||||
Reference in New Issue
Block a user