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

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

Merge "Use app id instead of uid to check if appop is bypassed" into main

parents b5fe3066 39c3f0d3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2790,8 +2790,9 @@ public class AppOpsService extends IAppOpsService.Stub {
     * have information on them.
     */
    private static boolean isOpAllowedForUid(int uid) {
        int appId = UserHandle.getAppId(uid);
        return Flags.runtimePermissionAppopsMappingEnabled()
                && (uid == Process.ROOT_UID || uid == Process.SYSTEM_UID);
                && (appId == Process.ROOT_UID || appId == Process.SYSTEM_UID);
    }

    @Override