Merge "Revert "When updating a split app, copy compiled files from base.apk only.""

am: 154535317e

Change-Id: Ia91f126900e3c52016af233f33c47b0a3c38d111
This commit is contained in:
Calin Juravle
2017-10-16 22:51:45 +00:00
committed by android-build-merger

View File

@@ -862,15 +862,8 @@ public class PackageInstallerSession extends IPackageInstallerSession.Stub {
mResolvedInstructionSets.add(archSubDir.getName());
List<File> oatFiles = Arrays.asList(archSubDir.listFiles());
// Only add compiled files associated with the base.
// Once b/62269291 is resolved, we can add all compiled files again.
for (File oatFile : oatFiles) {
if (oatFile.getName().equals("base.art")
|| oatFile.getName().equals("base.odex")
|| oatFile.getName().equals("base.vdex")) {
mResolvedInheritedFiles.add(oatFile);
}
if (!oatFiles.isEmpty()) {
mResolvedInheritedFiles.addAll(oatFiles);
}
}
}