Is there I way to check if some specific permission-group is granted or not,
lets say android.permission-group.CONTACTS
for example?
Contacts group have three permissions: android.permission.READ_CONTACTS
, android.permission.WRITE_CONTACTS
and android.permission.GET_ACCOUNTS
.
So if I want to check if one of these permission is granted I would use this code bellow, where permisssionKey would be one of three Contacts permissions.
boolean isGranted=checkSelfPermission(permisssionKey)==PackageManager.PERMISSION_GRANTED;
But is it possible to check if android.permission-group.CONTACTS
(or some other permission-group) is granted or not, not just one of their permissions, just as shown on the image?