Skip to content

Mobile Security · npm package

react-native-root-jail-detect

A lightweight React Native security module that detects rooted and jailbroken devices, runtime instrumentation (Frida), debuggers and emulators.

Overview

Apps that handle money or personal data often need to know when they are running in a hostile environment. This library gives React Native apps a single, small API to check for rooted (Android) and jailbroken (iOS) devices, as well as instrumentation tools such as Frida, attached debuggers and emulators, so the app can decide how to respond.

Highlights

  • Root detection on Android and jailbreak detection on iOS
  • Detects runtime instrumentation (Frida), debuggers and emulators
  • Lightweight, with a simple JavaScript / TypeScript API
  • Best used as one layer alongside server-side checks

Install

npm install react-native-root-jail-detect

Why teams use it

  • One API, both platforms

    Android root and iOS jailbreak checks sit behind one JavaScript call, so there is no native code to write or maintain.

  • More than root checks

    It also flags Frida, attached debuggers and emulators, the tools most often used to inspect or tamper with an app.

  • You decide the response

    It returns signals rather than crashing the app, so you choose whether to warn, limit features or report to your server.

How it compares

vsWriting the checks yourself

react-native-root-jail-detect compared with Writing the checks yourself
AspectWriting the checks yourselfreact-native-root-jail-detect
PlatformsSeparate Kotlin and Swift code to write, test and maintainOne JavaScript / TypeScript API for both
SignalsRoot, jailbreak, Frida, debugger and emulator checks each researched and built separatelyAll five in one package
UpkeepYours to keep current as detection techniques changeA versioned npm package you update like any other
Getting startedNative modules, bridging and a test matrix of devicesnpm install and one call

Let's talk

Need something like this in your app?

Tell us what you are building. You will get a reply within two business days.