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

Commit 15453531 authored by Calin Juravle's avatar Calin Juravle Committed by Gerrit Code Review
Browse files

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

parents 9e93a651 4a4a4e8e
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
@@ -856,15 +856,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);
                        }
                    }
                }