跳过内容

@capgo/capacitor-is-root

Capacitor 检测设备是否被 ROOT

Capacitor Is Root Plugin for detecting rooted (Android) or jailbroken (iOS) devices.

核心功能概述

核心功能
  • isRooted - 执行默认的root/jailbreak检测检查。
  • isRootedWithBusyBox - 扩展默认检测,仅在Android上使用BusyBox特定的检查。
  • detectRootManagementApps - 检测是否存在已知的root管理应用程序(仅Android)。
  • detectPotentiallyDangerousApps - 检测根设备上常见的危险应用程序(仅Android)。
方法描述
isRooted执行默认的root/jailbreak检测检查。
isRootedWithBusyBox扩展默认检测,仅在Android上使用BusyBox特定的检查。
detectRootManagementApps检测是否存在已知的root管理应用程序(仅Android)。
detectPotentiallyDangerousApps检测根设备上常见的危险应用程序(仅Android)
detectTestKeys检测 Android Only 的 debug/test 构建标签。
checkForBusyBoxBinary检测设备上是否存在 BusyBox 二进制文件 (Android Only)。
checkForSuBinary检测设备上是否存在 su 二进制文件 (Android Only)。
checkSuExists检测是否可以执行 su 二进制文件 (Android Only)。
checkForRWPaths检测 Android Only 的世界可写系统路径。
checkForDangerousProps检测 Android Only 的危险系统属性。
checkForRootNative执行 RootBeer 原生检查 (Android Only)。
detectRootCloakingApps检测 Android Only 可以隐藏 root 的应用程序。
isSelinuxFlagInEnabled检测 Android Only 的 SELinux 强制执行状态。
isExistBuildTags检测 Android Only 的 OS 镜像上的测试构建标签。
doesSuperuserApkExist检测是否安装了超级用户APK(仅限Android)。
isExistSUPath检查已知 su 二进制位置(仅限Android)。
checkDirPermissions检测应该保护的可写目录(仅限Android)。
checkExecutingCommands执行 which su 样式命令以检测根(仅限Android)。
checkInstalledPackages检测可疑安装的包(仅限Android)。
checkforOverTheAirCertificates检测被篡改的OTA证书(仅限Android)。
isRunningOnEmulator检测常见的模拟器指纹(仅限Android)。
simpleCheckEmulator执行轻量级模拟器检查(仅限Android)。
simpleCheckSDKBF86检测x86模拟器指纹(仅限Android)。
simpleCheckQRREFPH检测QC参考手机构建(仅限Android)
simpleCheckBuild检测构建主机异常(仅限 Android)。
checkGenymotion检测 Genymotion 模拟器指纹(仅限 Android)。
checkGeneric检测通用模拟器指纹(仅限 Android)。
checkGoogleSDK检测 Google SDK 模拟器指纹(仅限 Android)。
togetDeviceInfo返回检测期间收集的设备信息。
isRootedWithEmulator扩展默认检测以使用模拟器 heuristics(仅限 Android)。
isRootedWithBusyBoxWithEmulator扩展 BusyBox 检测以使用模拟器 heuristics(仅限 Android)。
getPluginVersion获取本机 Capacitor 插件版本。

此参考是从 src/definitions.tscapacitor-is-root.

如果您正在使用 @capgo/capacitor-is-root 来规划原生插件工作,连接它与 使用 @capgo/capacitor-is-root 来规划原生能力的使用 @capgo/capacitor-is-root 中的 Capgo 原生插件目录 来规划产品工作流程的 Capgo 原生插件目录 Capacitor 原生插件由 Capgo 来规划实现细节的 Capacitor 原生插件由 Capgo, [__CAPGO_KEEP_0__]添加或更新插件 为添加或更新插件的实现细节, 和 Ionic 企业级插件替代品 为Ionic 企业级插件替代品的产品工作流程,