root_jailbreak_detector 0.5.2 icon indicating copy to clipboard operation
root_jailbreak_detector: ^0.5.2 copied to clipboard

Flutter Plugin To Detect Root and Jailbreak on Android-iOS Devices

root_jailbreak_detector #

Flutter Root(Android) and Jailbreak(iOS) Detector Plugin.

Getting Started #

For Android this plugin uses RootBeer: https://github.com/scottyab/rootbeer
For iOS this plugin runs Native methods

Install #

$ flutter pub add root_jailbreak_detector

This will add a line like this to your package's pubspec.yaml:

dependencies:
  root_jailbreak_detector: ^0.5.2

Configuration #

Android

No configuration is needed.

iOS

Add this code to the Info.plist file under the /ios/Runner/ folder.

	<key>LSApplicationQueriesSchemes</key>
	<array>
		<string>cydia</string>
	</array>

Usage #

final _rootJailbreakDetectorPlugin = RootJailbreakDetector();
try {
      if (Platform.isAndroid) {
        root = (await _rootJailbreakDetectorPlugin.isRooted() ?? false);
      } else if (Platform.isIOS) {
        jailbreak =
            (await _rootJailbreakDetectorPlugin.isJailbreaked() ?? false);
      }
    } on PlatformException {
      root = false;
      jailbreak = false;
    }
1
likes
140
pub points
13%
popularity

Publisher

unverified uploader

Flutter Plugin To Detect Root and Jailbreak on Android-iOS Devices

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on root_jailbreak_detector