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

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
0
pub points
72%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on root_jailbreak_detector