Respect RESTRICTION_REVOKED in PermissionFlags.isAppOpGranted()
PermissionFlags.isPermissionGranted() returns true for legacy (e.g. pre-M) apps that has a hard restricted permission so that their permissions are kept granted, however we still keep their app ops revoked if their permissions are restricted, so we should return false when seeing RESTRICTION_REVOKED in PermissionFlags.isAppOpGranted(). Test: RestrictedPermissionsTest Change-Id: I7980ec087096a64641b49daeb9988eee5e047de5
Loading
Please register or sign in to comment