Capgo-__CAPGO_KEEP_1__

@capgo/capacitor-is-root

Capacitor用于检测根设备(Android)或越狱设备(iOS)的插件。

简介

简介

Capacitor 是用于检测安卓设备是否被 ROOT 或 iOS 设备是否被越狱的根插件。

核心功能

核心功能
  • isRooted - 执行默认的 ROOT/JAILBREAK 检测检查。
  • isRootedWithBusyBox - 扩展默认检测,针对安卓设备进行 BusyBox 特定检查。
  • detectRootManagementApps - 检测是否存在已知的 ROOT 管理应用程序 (安卓设备仅限)。
  • detectPotentiallyDangerousApps - 检测安卓根设备上常见的危险应用程序 (安卓设备仅限)。

公共 API

公共 API
方法功能描述
isRooted执行默认的root/jailbreak检测检查。
isRootedWithBusyBox扩展默认检测,仅在Android上执行BusyBox特定检查。
detectRootManagementApps检测是否存在已知的root管理应用程序(仅Android)。
detectPotentiallyDangerousApps检测常见于root设备上的潜在危险应用程序(仅Android)。
detectTestKeys检测Android设备上的debug/test构建标签。
checkForBusyBoxBinary检查设备上是否存在BusyBox二进制文件(仅Android)。
checkForSuBinary检查设备上是否存在 su 二进制文件(仅Android)。
checkSuExists检查设备上是否存在可执行的 su 二进制文件(仅Android)。
checkForRWPaths检测Android设备上的世界可写系统路径(仅Android)
checkForDangerousProps检测危险的系统属性 (仅限 Android)。
checkForRootNative执行 RootBeer 原生检查 (仅限 Android)。
detectRootCloakingApps检测可以隐藏 root 的应用 (仅限 Android)。
isSelinuxFlagInEnabled检查 SELinux 强制执行状态 (仅限 Android)。
isExistBuildTags检测 OS 镜像上的测试构建标签 (仅限 Android)。
doesSuperuserApkExist检测是否安装了超级用户 APK (仅限 Android)。
isExistSUPath检查已知的二进制位置 (仅限 Android)。 su 检测应该保护的可写目录 (仅限 Android)。
checkDirPermissions执行样式命令以检测 root (仅限 Android)。
checkExecutingCommands检测可疑的安装包 (仅限 Android)。 which su Checks for known
checkInstalledPackagesDetects writable directories that should be protected (Android only).
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在 Android 上扩展默认检测以使用模拟器 heuristics。
isRootedWithBusyBoxWithEmulator在 Android 上扩展 BusyBox 检测以使用模拟器 heuristics。
getPluginVersion获取本地 Capacitor 插件版本。

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