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-detectWhy 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
| Aspect | Writing the checks yourself | react-native-root-jail-detect |
|---|---|---|
| Platforms | Separate Kotlin and Swift code to write, test and maintain | One JavaScript / TypeScript API for both |
| Signals | Root, jailbreak, Frida, debugger and emulator checks each researched and built separately | All five in one package |
| Upkeep | Yours to keep current as detection techniques change | A versioned npm package you update like any other |
| Getting started | Native modules, bridging and a test matrix of devices | npm 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.