@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)。
Public API
标题:Public API| 方法 | 描述 |
|---|---|
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.ts 在 capacitor-is-root.
从 @capgo/capacitor-is-root 中继续
Section titled “从 @capgo/capacitor-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 企业级插件替代品的产品工作流程,