Last updated:
0 purchases
root detector
Root Detector #
A library to check devices using root access or simply root/jailbreak checking.
These are the current checks/tricks we are using to give an indication of root.
And there are some parameters when checking root:
Params
Description
busyBox
By default busyBox is false, And when the value is true then it checks root with busyBox which is usually used on some android devices
ignoreSimulator
By default ignoreSimulator is false , And when the value is true then it checks root with busyBox which is usually used on some android devices
Setup #
Android
No config needed on Android
iOS
Add this code in the Info.plist file whose position is in the /ios/Runner/ folder
<key>LSApplicationQueriesSchemes</key>
<array>
<string>cydia</string>
</array>
copied to clipboard
Usage #
The first step you need to install this dependency into pubspec.yaml in your Flutter project.
dependencies:
root_detector: // recommended to use lastest version
copied to clipboard
checkIsRoot #
try {
final result = await RootDetector.isRooted(
busyBox: true, // by default is false
ignoreSimulator: true, // by default is false
); // type data is bool
return result;
} on PlatformException catch(e){
// TODO: handling your error, whenever have error from native code
}
copied to clipboard
More example in github.
Credit #
RootBeer
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.