Skip to content

@capgo/capacitor-is-root

Capacitor Is Root Plugin for detecting rooted (Android) or jailbroken (iOS) devices.

Capacitor Is Root Plugin for detecting rooted (Android) or jailbroken (iOS) devices.

  • isRooted - Performs the default root/jailbreak detection checks.
  • isRootedWithBusyBox - Extends the default detection with BusyBox specific checks (Android only).
  • detectRootManagementApps - Detects if known root management applications are present (Android only).
  • detectPotentiallyDangerousApps - Detects potentially dangerous applications commonly found on rooted devices (Android only).
MethodDescription
isRootedPerforms the default root/jailbreak detection checks.
isRootedWithBusyBoxExtends the default detection with BusyBox specific checks (Android only).
detectRootManagementAppsDetects if known root management applications are present (Android only).
detectPotentiallyDangerousAppsDetects potentially dangerous applications commonly found on rooted devices (Android only).
detectTestKeysDetects debug/test build tags (Android only).
checkForBusyBoxBinaryChecks whether a BusyBox binary exists on the device (Android only).
checkForSuBinaryChecks whether a su binary is present (Android only).
checkSuExistsDetects if the su binary can be executed (Android only).
checkForRWPathsDetects world writable system paths (Android only).
checkForDangerousPropsDetects dangerous system properties (Android only).
checkForRootNativeExecutes RootBeer native checks (Android only).
detectRootCloakingAppsDetects applications that can hide root (Android only).
isSelinuxFlagInEnabledChecks the SELinux enforcement state (Android only).
isExistBuildTagsDetects test build tags on the OS image (Android only).
doesSuperuserApkExistDetects if superuser APKs are installed (Android only).
isExistSUPathChecks for known su binary locations (Android only).
checkDirPermissionsDetects writable directories that should be protected (Android only).
checkExecutingCommandsExecutes which su style commands to detect root (Android only).
checkInstalledPackagesDetects suspicious installed packages (Android only).
checkforOverTheAirCertificatesDetects tampered OTA certificates (Android only).
isRunningOnEmulatorDetects common emulator fingerprints (Android only).
simpleCheckEmulatorPerforms a lightweight emulator check (Android only).
simpleCheckSDKBF86Detects x86 emulator fingerprints (Android only).
simpleCheckQRREFPHDetects QC reference phone builds (Android only).
simpleCheckBuildDetects build host anomalies (Android only).
checkGenymotionDetects Genymotion emulator fingerprints (Android only).
checkGenericDetects generic emulator fingerprints (Android only).
checkGoogleSDKDetects Google SDK emulator fingerprints (Android only).
togetDeviceInfoReturns device information collected during detection.
isRootedWithEmulatorExtends the default detection with emulator heuristics (Android only).
isRootedWithBusyBoxWithEmulatorExtends the BusyBox detection with emulator heuristics (Android only).
getPluginVersionGet the native Capacitor plugin version.

This reference is synced from src/definitions.ts in capacitor-is-root.