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

Commit aa5af41c authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix SessionSizeLimit test" into main

parents 6d36f824 961caa0a
Loading
Loading
Loading
Loading
+11 −6
Original line number Diff line number Diff line
@@ -8329,6 +8329,8 @@ public class PackageManagerService implements PackageSender, TestUtilityService
    public Set<String> getAllPlatformRestrictedPermissions() {
        if (sRestrictedPermissions == null) {
            sRestrictedPermissions = new HashSet<>();
            final long token = Binder.clearCallingIdentity();
            try {
                PackageInfo pi = snapshotComputer().getPackageInfo(
                        PLATFORM_PACKAGE_NAME, GET_PERMISSIONS, UserHandle.USER_SYSTEM);
                if (pi.permissions != null) {
@@ -8338,6 +8340,9 @@ public class PackageManagerService implements PackageSender, TestUtilityService
                        }
                    }
                }
            } finally {
                Binder.restoreCallingIdentity(token);
            }
        }
        return sRestrictedPermissions;
    }