root
2.0.4, released 4 years ago by an unverified publisher
Flutter plugin to check Android device root status and run shell commands.
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.
- android_id
A Flutter plugin for retrieving the Android ID on Android devices.
87Compare - is_device_secure
Checks whether the mobile device has a secure lock screen setup like a PIN, pattern, password, or biometrics.
52Compare - google_api_availability
Check the availability of Google Play services on an Android device.
88Compare - device_safety_info
Provides root, jailbreak, debugger, screenshot, VPN and other security checks for Flutter apps.
82Compare