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.
$ 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
No Configurations Needed.
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>
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