root_jailbreak_detector

Creator: coderz1093

Last updated:

Add to Cart

Description:

root jailbreak detector

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
copied to clipboard
This will add a line like this to your package's pubspec.yaml:
dependencies:
root_jailbreak_detector: ^0.5.3
copied to clipboard
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>

copied to clipboard
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;
}
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.