checkPermission

open fun checkPermission(permission: String, pid: Int, uid: Int): Int

See Activity.checkPermission.