Fix auto-grant for groups with solely R_W_R perms
Recently, we added code to consider a group granted only if it has at
least one non-REVOKE_WHEN_REQUESTED permission granted.
But, there is another case where a group should be considered granted:
when all of its permissions are granted and all have
REVOKE_WHEN_REQUESTED. (This is the case for groups auto-granted by
split permission.)
Bug: 223907044
Fixes: 231839805
Test: atest SplitPermissionAutoGrantTest
Test: Manually as described in b/231839805#comment7
Change-Id: I48195875b3a19b6621279d54d5c8974c549c158e
Merged-In: I48195875b3a19b6621279d54d5c8974c549c158e
2 files changed