概述
概述部分Capacitor 是用于检测 Android 设备是否被 Root 或 iOS 设备是否被破解的 Capgo Is Root 插件。
核心功能
概述部分isRooted- 执行默认的 Root/Jailbreak 检测检查。isRootedWithBusyBox- 在 Android 设备上扩展默认检测,使用 BusyBox 特定检查。detectRootManagementApps- 检测是否存在已知的 Root 管理应用程序 (仅限 Android)。detectPotentiallyDangerousApps- 检测常见于根设备(Android)上的潜在危险应用。
公共 API
标题为“公共 API”的部分| 方法 | 描述 |
|---|---|
isRooted | 执行默认的根/jailbreak 检测检查。 |
isRootedWithBusyBox | 扩展默认检测,包括BusyBox特定检查(Android)。 |
detectRootManagementApps | 检测是否存在已知的根管理应用(Android)。 |
detectPotentiallyDangerousApps | 检测常见于根设备(Android)上的潜在危险应用。 |
detectTestKeys | 检测调试/测试构建标签(Android)。 |
checkForBusyBoxBinary | 检查设备上是否存在BusyBox二进制文件(Android)。 |
checkForSuBinary | 检查设备上是否存在 su Android设备上存在二进制文件。 |
checkSuExists | 检测设备上是否存在 su 检测设备上是否能执行二进制文件 (Android only). |
checkForRWPaths | 检测系统路径是否可写 (Android only). |
checkForDangerousProps | 检测危险系统属性 (Android only). |
checkForRootNative | 执行 RootBeer 原生检查 (Android only). |
detectRootCloakingApps | 检测可以隐藏 root 的应用 (Android only). |
isSelinuxFlagInEnabled | 检查 SELinux 强制执行状态 (Android only). |
isExistBuildTags | 检测 OS 镜像上是否存在测试构建标签 (Android only). |
doesSuperuserApkExist | 检测是否安装了超级用户 APK (Android only). |
isExistSUPath | 检测已知 su 检测已知二进制文件位置 (Android only). |
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 继续
标题:从 @capgo/capacitor-is-root 继续如果您正在使用 @capgo/capacitor-is-root 来规划原生插件工作,连接它与 使用 @capgo/capacitor-is-root 来实现原生能力的使用 @capgo/capacitor-is-root, Capgo 插件目录 来实现产品工作流程的 Capgo 插件目录, Capacitor 插件由 Capgo 来实现插件细节的 Capacitor 插件由 Capgo, 添加或更新插件 来实现添加或更新插件的细节,和 Ionic Enterprise 插件替代方案 为 Ionic Enterprise Plugin Alternatives 产品工作流程。