diff options
| author | 2017-10-16 23:11:10 +0000 | |
|---|---|---|
| committer | 2017-10-16 23:11:10 +0000 | |
| commit | f3ef1f09ef680bd36570e62d2d30061e4da007ab (patch) | |
| tree | 9b15fc924c8d03476555e3813cd5c2b1b6dbd897 | |
| parent | 38088cbca2241eb97d57cb5addd75f3ef366d1a4 (diff) | |
| parent | 4a69261500f1e3bc1883f5c16bc75c1c8620bdf1 (diff) | |
Merge "Revert "When updating a split app, copy compiled files from base.apk only."" am: 154535317e
am: 4a69261500
Change-Id: Icdd830af8054f0540e91afe739d794d35178db4c
| -rw-r--r-- | services/core/java/com/android/server/pm/PackageInstallerSession.java | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/services/core/java/com/android/server/pm/PackageInstallerSession.java b/services/core/java/com/android/server/pm/PackageInstallerSession.java index 5c54ba803a05..f5808affdb9e 100644 --- a/services/core/java/com/android/server/pm/PackageInstallerSession.java +++ b/services/core/java/com/android/server/pm/PackageInstallerSession.java @@ -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); } } } |