Prior to Android 10 I was able to obtain the group name for a specific permission with this code:
val info = pm?.getPermissionInfo(permission, PackageManager.