Root
A Flutter Plugin to check Android device Root status and execute shell commands with root privileges
Install / Use
/learn @gokul1630/RootREADME
root plugin
A Flutter Plugin to check Android device Root status and Run shell commands in android(only).
This plugin is based on Topjohnwu libsu and Stericson Root Tools.

Usage
To use this plugin, add root as a dependency in your pubspec.yaml file.
root: ^2.0.4
import it
import 'package:root/root.dart';
Declare a async method to check root status
bool _status = false;
Future<void> checkRoot() async {
bool result = await Root.isRooted();
setState(() {
_status = result;
});
}
later you can use _status in your code to let app know the root status.
Declare a async method to check Su on System
bool _status = false;
Future<void> checkRoot() async {
bool result = await Root.isRootAvailable();
setState(() {
_status = result;
});
}
later you can use _status in your code to let app know the root status.
Declare a async method to run shell commands
use this function only for short period of processes, don't use for long processes else app may crash
String _result;
Future<void> setCommand() async {
String res = await Root.exec(cmd: "cat /proc/version");
setState(() {
_result = res;
});
}
later you can use the _result in your code to let know the output of the given shell command.
issues
- Please file the issues you found. Thank you.
Related Skills
node-connect
349.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
