isPermissionGranted

suspend fun isPermissionGranted(permission: String): Boolean(source)

Whether permission is granted to the package now, as dumpsys package lists it: the read-back for grantPermission, revokePermission, clearData and the permission dialog.