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

Commit 5f28ee3e authored by Todd Kennedy's avatar Todd Kennedy Committed by Android (Google) Code Review
Browse files

Merge "If we ever rescan a stub, make sure to uncompress it" into sc-dev

parents 0946a97d 62f34260
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -6762,7 +6762,12 @@ public class PackageManagerService extends IPackageManager.Stub
                        mSettings.enableSystemPackageLPw(packageName);
                        try {
                            scanPackageTracedLI(scanFile, reparseFlags, rescanFlags, 0, null);
                            final AndroidPackage newPkg = scanPackageTracedLI(
                                    scanFile, reparseFlags, rescanFlags, 0, null);
                            // We rescanned a stub, add it to the list of stubbed system packages
                            if (newPkg.isStub()) {
                                stubSystemApps.add(packageName);
                            }
                        } catch (PackageManagerException e) {
                            Slog.e(TAG, "Failed to parse original system package: "
                                    + e.getMessage());