Skip to content

Feature Request: Shizuku detection compatible with 'Hide Shizuku' mode #92

@FatOrangutan

Description

@FatOrangutan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions