getPermissionInfo()
on PackageManager
returns a PermissionInfo
given the name of the permission. PermissionInfo
has a group
field that contains the group name ("android.permission-group.CALENDAR"
, a.k.a. Manifest.permission_group.CALENDAR
).
getPermissionGroupInfo()
on PackageManager
returns a PermissionGroupInfo
for that group name. On that, call loadLabel()
, supplying the PackageManager
as input, to get the human-readable name of the permission group.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…