Describe the bug
New feature of shizuku, the dev said to copy this snippet to help app developer to add support for hidden shizuku package name
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
To Reproduce
- Hide shizuku using built-in feature called "Hide Shizuku from other apps"
2.open aShell to re-pair
- aShell failed to detect shizuku
Expected behavior
Shizuku should be detected
Screenshots
No response
Device
Xiaomi 14T Pro
OS
Android 16 3.0.302.0.WNNEUXM.C07
Version
v7.4.0
Checklist
Describe the bug
New feature of shizuku, the dev said to copy this snippet to help app developer to add support for hidden shizuku package name
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
To Reproduce
2.open aShell to re-pair
Expected behavior
Shizuku should be detected
Screenshots
No response
Device
Xiaomi 14T Pro
OS
Android 16 3.0.302.0.WNNEUXM.C07
Version
v7.4.0
Checklist