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

Commit d9a6475c authored by Christopher Tate's avatar Christopher Tate
Browse files

DO NOT MERGE - Don't crash uninstalling updates to system apps

Bug 15167960

Cherrypick from master

Change-Id: Ibcb3275adb27b20939a237511aaaa8b0011127e1
parent 2ecba24c
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -6140,8 +6140,13 @@ public class PackageManagerService extends IPackageManager.Stub {
        }
        final String nativeLibraryPath = (new File(libDir, apkName)).getPath();
        pkg.applicationInfo.nativeLibraryDir = nativeLibraryPath;
        // pkgSetting might be null during rescan following uninstall of updates
        // to a bundled app, so accommodate that possibility.  The settings in
        // that case will be established later from the parsed package.
        if (pkgSetting != null) {
            pkgSetting.nativeLibraryPathString = nativeLibraryPath;
        }
    }
    // Deduces the required ABI of an upgraded system app.
    private void setInternalAppAbi(PackageParser.Package pkg, PackageSetting pkgSetting) {