跳过内容

@capgo/capacitor-is-root

Capacitor 根据 Android 设备检测是否被 ROOT 或根据 iOS 设备检测是否被 jailbreak

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

  • 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检查 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.tscapacitor-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企业级插件替代方案的产品工作流程