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

Commit 0723ab23 authored by Jeff Hao's avatar Jeff Hao Committed by android-build-merger
Browse files

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

Merge "When updating a split app, copy compiled files from base.apk only." am: 8a945baf am: 47b1f543 am: 2783f272
am: 27639484

Change-Id: I1c3d9dface747b5366f5472626935d43106893b3
parents a5dcebe0 27639484
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -862,8 +862,15 @@ public class PackageInstallerSession extends IPackageInstallerSession.Stub {

                        mResolvedInstructionSets.add(archSubDir.getName());
                        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);
                            }
                        }
                    }
                }