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

Commit 1ff27fa8 authored by Mohammad Samiul Islam's avatar Mohammad Samiul Islam Committed by Android (Google) Code Review
Browse files

Merge "Return null from PackageManagerService.getInstallerPackageName for apex" into qt-dev

parents 93b56d70 6b7ad94b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -21359,6 +21359,10 @@ public class PackageManagerService extends IPackageManager.Stub
            if (filterAppAccessLPr(ps, callingUid, UserHandle.getUserId(callingUid))) {
                return null;
            }
            // InstallerPackageName for Apex is not stored in PackageManager
            if (ps == null && mApexManager.isApexPackage(packageName)) {
                return null;
            }
            return mSettings.getInstallerPackageNameLPr(packageName);
        }
    }
+1 −1
Original line number Diff line number Diff line
@@ -723,7 +723,7 @@ class PackageManagerShellCommand extends ShellCommand {
                        pw.print(info.getLongVersionCode());
                    }
                }
                if (listInstaller && !isApex) {
                if (listInstaller) {
                    pw.print("  installer=");
                    pw.print(mInterface.getInstallerPackageName(info.packageName));
                }