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

Commit 6a9ba6f7 authored by Winson's avatar Winson
Browse files

Fix null check in hasSigningCertificate

Test: manual verification with test app

Change-Id: I33752e8a353e8cb075df0fd702a332b182694a5b
parent 1f7549e4
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -6214,8 +6214,11 @@ public class PackageManagerService extends IPackageManager.Stub
        synchronized (mLock) {
            final AndroidPackage p = mPackages.get(packageName);
            if (p == null) {
                return false;
            }
            final PackageSetting ps = getPackageSetting(p.getPackageName());
            if (p == null || ps == null) {
            if (ps == null) {
                return false;
            }
            final int callingUid = Binder.getCallingUid();