Introducing our innovative root & jailbreak detection plugin called OneRoot, a powerful tool that allows you to check the part of your device security.
As per the OWAPS standard, we have to create a way for programmatic detection.
Android | IOS |
|
|
- Android Root Detection
- IOS JailBreak Detection
To use this package, add oneroot as a dependency in your pubspec.yaml file.
- On pubspeck.yaml
oneroot: ^0.1.4
- On Dart Import
import 'package:oneroot/oneroot.dart';
- On implementation of Root Detection
//init plugin object
final _onerootPlugin = Oneroot();
//Method will return "ROOTED" as a string value if you are running on a rooted environment.
String platformRootStatus = await _onerootPlugin.getRootChecker();
//Method will return the OS version.
String platformVersion = await _onerootPlugin.getPlatformVersion();
One Root - Android Root Detection | One Root - IOS JailBreak Detection |
-
See also from Developer