root_jailbreak_sniffer 1.0.9 root_jailbreak_sniffer: ^1.0.9 copied to clipboard
A Flutter Plugin to detect root including magiskhide to some extent on android and JailBreak on iOS
root_jailbreak_sniffer #
Flutter plugin to detect jailbreak on iOS and root detection (Magisk hide to some extent) on Android.
Based on RootBeer , RootInspector , DetectMagiskHide for Android, and IOSSecuritySuite for iOS.
Getting Started #
Install #
$ flutter pub add root_jailbreak_sniffer
or add the below line to your package's pubspec.yaml:
for Flutter SDK below 3.19.0 & Gradle version below 8.0
dependencies:
root_jailbreak_sniffer: ^1.0.6
for Flutter SDK 3.19 & above with gradle 8 support (JAVA 17 Support)
dependencies:
root_jailbreak_sniffer: ^1.0.9
Platform Based Configurations #
Android #
No Configurations Needed.
iOS #
Add following lines to the Info.plist file in /ios/Runner/ folder.
<key>LSApplicationQueriesSchemes</key>
<array>
<string>undecimus</string>
<string>sileo</string>
<string>zbra</string>
<string>filza</string>
<string>activator</string>
</array>
Usage #
import 'package:root_jailbreak_sniffer/rjsniffer.dart';
bool amICompromised = await Rjsniffer.amICompromised() ?? false; //Detect JailBreak and Root
bool amIEmulator = await Rjsniffer.amIEmulator() ?? false; //Detect Emulator Environment
bool amIDebugged = await Rjsniffer.amIDebugged() ?? false; //Detect being Debugged