Merge "When updating a split app, copy compiled files from base.apk only."
am: 8a945baf4a
Change-Id: I7c2733ac9dfe60ed8a629d5d312b760c53baa76e
This commit is contained in:
@@ -834,8 +834,15 @@ public class PackageInstallerSession extends IPackageInstallerSession.Stub {
|
|||||||
|
|
||||||
mResolvedInstructionSets.add(archSubDir.getName());
|
mResolvedInstructionSets.add(archSubDir.getName());
|
||||||
List<File> oatFiles = Arrays.asList(archSubDir.listFiles());
|
List<File> oatFiles = Arrays.asList(archSubDir.listFiles());
|
||||||
if (!oatFiles.isEmpty()) {
|
|
||||||
mResolvedInheritedFiles.addAll(oatFiles);
|
// 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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user