Jailbreak/Root Detection
Improve app security and meet compliance requirements by detecting when your app is running on an insecure jailbroken iOS device or rooted Android device.
This module uses a variety of methods, including the presence of certain binaries, apps, and supported URL protocols.
Note that no detection can be 100% foolproof. Jailbreaking or rooting the device by its nature provides a level of access that can be used to trick any attempt to detect it. This plugin is intended to provide a reasonable level of detection that you can use to warn your users or to disable certain functionality.
When the app launches, if the app detects a compromised device, it will load the initial URL with an additional query parameter, which may be either rootDetected=true
or isRooted=true
. Please check for both query parameter values. For example, instead of loading https://example.com/
, the app will load https://example.com/?rootDetected=true
.
For iOS we make use of the DTTJailbreakDetection library at https://github.com/thii/DTTJailbreakDetection amongst other techniques.
For Android, we are using rootbeer library at https://github.com/scottyab/rootbeer amongst other techniques.
Updated 9 months ago