Describe Your Idea
import android.content.Context
import rikka.shizuku.ShizukuProvider
private fun Context.shizukuPermission() =
runCatching {
packageManager.getPermissionInfo(ShizukuProvider.PERMISSION, 0)
}.getOrNull()
fun Context.isShizukuInstalled() =
shizukuPermission() != null
fun Context.getShizukuPackageName() =
shizukuPermission()?.packageName
This snippet was provided by the 'Hide Shizuku from other apps' section in this Shizuku fork.
Describe Your Idea
This snippet was provided by the 'Hide Shizuku from other apps' section in this Shizuku fork.