Partially revert ce54397368
We have already reverted A/B dexopt for secondary dex files in commit
7c14711974. This removes secondary dex
opt during boot after OTA.
Bug: 65067046
Test: make and boot.
Change-Id: I76009ed609a608e009a50860b53a8dfed9d57334
This commit is contained in:
@@ -9803,19 +9803,6 @@ public class PackageManagerService extends IPackageManager.Stub
|
||||
compilerFilter,
|
||||
dexoptFlags));
|
||||
|
||||
if (pkg.isSystemApp()) {
|
||||
// Only dexopt shared secondary dex files belonging to system apps to not slow down
|
||||
// too much boot after an OTA.
|
||||
int secondaryDexoptFlags = dexoptFlags |
|
||||
DexoptOptions.DEXOPT_ONLY_SECONDARY_DEX |
|
||||
DexoptOptions.DEXOPT_ONLY_SHARED_DEX;
|
||||
mDexManager.dexoptSecondaryDex(new DexoptOptions(
|
||||
pkg.packageName,
|
||||
compilerFilter,
|
||||
secondaryDexoptFlags));
|
||||
}
|
||||
|
||||
// TODO(shubhamajmera): Record secondary dexopt stats.
|
||||
switch (primaryDexOptStaus) {
|
||||
case PackageDexOptimizer.DEX_OPT_PERFORMED:
|
||||
numberOfPackagesOptimized++;
|
||||
|
||||
Reference in New Issue
Block a user