root_detector 0.0.3 copy "root_detector: ^0.0.3" to clipboard
root_detector: ^0.0.3 copied to clipboard

outdated

A new flutter plugin project.

Root Detector #

A simple library to check root access in device.

These are the current checks/tricks we are using to give an indication of root.

  • isRoot
  • isRootedWithBusyBox (only Android)

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

checkIsRoot #

try {
 final result = await RootDetector.isRooted; // type data is bool
 return result;
} on PlatformException catch(e){
  // TODO: handling your error, whenever have error from native code
}

isRootedWithBusyBox #

try {
 final result = await RootDetector.isRootedWithBusyBox; // type data is bool
 return result;
} on PlatformException catch(e){
 // TODO: handling your error, whenever have error from native code
}

Credit #