Capacitor 是用于检测安卓设备是否被根化或 iOS 设备是否被越狱的 Is Root 插件。
核心功能
标题为“核心功能”的部分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 | 检查 SELinux 强制执行状态 (Android Only)。 |
isExistBuildTags | 检测 Android Only OS 镜像上的测试构建标签。 |
doesSuperuserApkExist | 检测超级用户 APK 是否安装(仅限 Android)。 |
isExistSUPath | 检查已知 su 检测可写目录应受保护(仅限 Android)。 |
checkDirPermissions | 执行 |
checkExecutingCommands | 检测可疑安装的包(仅限 Android)。 which su 检测 OTA 证书被篡改(仅限 Android)。 |
checkInstalledPackages | 检测常见的模拟器指纹(仅限 Android)。 |
checkforOverTheAirCertificates | 进行轻量级模拟器检查(仅限 Android)。 |
isRunningOnEmulator | 检测 x86 模拟器指纹(仅限 Android)。 |
simpleCheckEmulator | 检测 QC 参考手机构建(仅限 Android)。 |
simpleCheckSDKBF86 | 检查已知 |
simpleCheckQRREFPH | 检测可写目录应受保护(仅限 Android)。 |
simpleCheckBuild | 检测 Android 设备的构建主机异常。 |
checkGenymotion | 检测 Genymotion 模拟器指纹 (仅限 Android)。 |
checkGeneric | 检测通用模拟器指纹 (仅限 Android)。 |
checkGoogleSDK | 检测 Google SDK 模拟器指纹 (仅限 Android)。 |
togetDeviceInfo | 返回检测过程中收集的设备信息。 |
isRootedWithEmulator | 在 Android 设备上扩展默认检测,使用模拟器 heuristics。 |
isRootedWithBusyBoxWithEmulator | 在 Android 设备上扩展 BusyBox 检测,使用模拟器 heuristics。 |
getPluginVersion | 获取本机 Capacitor 插件版本。 |
真实来源
标题:真实来源此参考资料是从 src/definitions.ts 在 capacitor-is-root.
Keep going from @capgo/capacitor-is-root
从 @capgo/capacitor-is-root 中继续如果您正在使用 @capgo/capacitor-is-root 来规划原生插件工作,连接它 使用 @capgo/capacitor-is-root 为在使用 @capgo/capacitor-is-root 中的原生能力 Capgo 插件目录 为在 Capgo 插件目录 中的产品工作流 Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, 添加或更新插件 查看添加或更新插件的实现细节 Ionic企业级插件替代方案 查看Ionic企业级插件替代方案的产品工作流程