Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1ed4bb59 authored by Calin Juravle's avatar Calin Juravle Committed by android-build-merger
Browse files

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

Merge "Revert "When updating a split app, copy compiled files from base.apk only."" am: 15453531 am: 4a692615 am: f3ef1f09
am: d37ded95

Change-Id: Ie89a664bcc2e53f7a0b1d7c015c177670af3fddc
parents 12ba3c95 d37ded95
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
@@ -1127,15 +1127,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);
                        }
                    }
                }