Reconcile secondary dex paths when compiling with adb shell cmd...

Test: running `adb shell cmd package compile -r bg-dexopt -f  --secondary-dex com.google.android.gms` prints no error for missing dex files.

Bug: 36895499
Change-Id: Ibde3d47121dcb2c252fe29772d8db81ea599b2d0
This commit is contained in:
Calin Juravle
2017-04-06 09:41:52 -07:00
parent 0ff1b458ac
commit 13dcd27fb5

View File

@@ -8576,6 +8576,7 @@ public class PackageManagerService extends IPackageManager.Stub {
@Override
public boolean performDexOptSecondary(String packageName, String compilerFilter,
boolean force) {
mDexManager.reconcileSecondaryDexFiles(packageName);
return mDexManager.dexoptSecondaryDex(packageName, compilerFilter, force);
}