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

Commit 81e4ec82 authored by Jackal Guo's avatar Jackal Guo Committed by Android (Google) Code Review
Browse files

Merge "Fix shell command 'list staged-sessions'"

parents 2c4efde7 06ad0f5a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -8916,7 +8916,8 @@ public class PackageManagerService extends IPackageManager.Stub
     * return {@code true} if any one application belongs to the shared user ID meets the criteria.
     */
    boolean canQueryPackage(int callingUid, @Nullable String targetPackageName) {
        if (targetPackageName == null) {
        // Since getSettingLPr returns null for ROOT_UID, add an extra check for it here.
        if (callingUid == Process.ROOT_UID || targetPackageName == null) {
            return true;
        }
        synchronized (mLock) {