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

Commit 3b9933d0 authored by Kenny Root's avatar Kenny Root
Browse files

Check outInfo is not null

Only call keystore if outInfo is not null

Bug: 8568820
Change-Id: I24ab625ad02b8510da489911064453de642b6748
parent 50b9eb1c
Loading
Loading
Loading
Loading
+10 −8
Original line number Diff line number Diff line
@@ -8647,8 +8647,9 @@ public class PackageManagerService extends IPackageManager.Stub {
                mSettings.writeLPr();
            }
        }
        // A user ID was deleted here. Go through all users and remove it from
        // KeyStore.
        if (outInfo != null) {
            // A user ID was deleted here. Go through all users and remove it
            // from KeyStore.
            final int appId = outInfo.removedAppId;
            if (appId != -1) {
                final KeyStore keyStore = KeyStore.getInstance();
@@ -8659,6 +8660,7 @@ public class PackageManagerService extends IPackageManager.Stub {
                }
            }
        }
    }

    /*
     * Tries to delete system package.