root_jailbreak_detector 0.5.3 copy "root_jailbreak_detector: ^0.5.3" to clipboard
root_jailbreak_detector: ^0.5.3 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.3

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;
    }
4
likes
140
pub points
71%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on root_jailbreak_detector