root_plus
Root Plus, 이 Flutter 플러그인을 사용하여 쉽게 Root 권한을 요청하고 Root 명령을 실행하세요.
Root Plus, 이 Flutter 플러그인을 사용하여 쉽게 Root 권한을 요청하고 Root 명령을 실행하세요.
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
A Flutter plugin to request root access and execute privileged commands on rooted Android devices.
Change NDK Version to 27.0.12077973 or Newer:
android {
ndkVersion = "27.0.12077973"
...
}
Install Plugin:
flutter pub add root_plus
import 'package:root_plus/root_plus.dart';
Check if root access is available:
bool hasRoot = await RootPlus.requestRootAccess();
if (hasRoot) {
print('Root access granted!');
} else {
print('Root access denied or device not rooted');
}
try {
String result = await RootPlus.executeRootCommand('pm list packages');
print('Installed packages: $result');
} on RootCommandException catch (e) {
print('Command failed: ${e.message}');
}
\n):try {
String result = await RootPlus.executeRootCommand("echo Hello\necho World\npm list packages");
print('Commands output: $result');
} on RootCommandException catch (e) {
print('Error executing commands: ${e.message}');
}
All methods may throw RootCommandException with these properties:
code: Error type (e.g., "COMMAND_FAILED")message: Human-readable error messagedetails: Additional error details (often the command output)⚠️ Use with caution! Root access gives complete control over the device. Incorrect commands can brick your device.
Developed by Zaher
의존성 목록 4 개
{"sdk":"flutter"}^2.0.2{"sdk":"flutter"}^5.0.0사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗