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

Commit 4a692615 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 only.""

am: 15453531

Change-Id: Ia91f126900e3c52016af233f33c47b0a3c38d111
parents 7bfd87f1 15453531
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
@@ -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);
                        }
                    }
                }