Skip to content
pubscout

root

2.0.4, released 4 years ago by an unverified publisher

Flutter plugin to check Android device root status and run shell commands.

WASM-ready
$ flutter pub add root
Source repository

What it does

Allows Flutter applications running on Android to check if the device is rooted or if su is available, and execute short shell commands. It is built on top of Topjohnwu libsu and Stericson Root Tools.

AI-written summary of version 2.0.4, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to check if an Android device is rooted.
  • You need to execute short-running shell commands on Android.

Skip it when

  • You are building for non-Android platforms (iOS, Web, etc.).
  • You need to run long-running processes via shell commands.

Strengths

  • Easy checking of root status and su availability.
  • Supports executing raw shell commands on Android.

Weaknesses

  • Limited to Android platform only.
  • Unsuitable for long-running shell processes as it may crash the app.

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
0

Android only; add the plugin dependency in pubspec.yaml.

Future<void> checkRoot() async {
  bool result = await Root.isRooted();
}

Alternatives

Packages that do the same job and could replace root.