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

Skip to content
Commit a9d3572c authored by Hai Zhang's avatar Hai Zhang
Browse files

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
parent ba28968f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment