패키지, 저장소 및 앱 카테고리 검색

GitHub 저장소zaher-neon/root_plus

root_plus

Root Plus, 이 Flutter 플러그인을 사용하여 쉽게 Root 권한을 요청하고 Root 명령을 실행하세요.

root_plus 프로젝트 이미지
스타
1
포크
0
최근 푸시(UTC)
2025. 7. 19.
프로젝트 상태
활성

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

Root Plus - Run Root Commands Easily

Package Version Flutter Version Package License

A Flutter plugin to request root access and execute privileged commands on rooted Android devices.

Features

  • Request root access
  • Execute single or multiple root commands
  • Get command output and error streams
  • Simple, clean API

Installation

Change NDK Version to 27.0.12077973 or Newer:

android {
    ndkVersion = "27.0.12077973"
    ...
}

Install Plugin:

flutter pub add root_plus

Usage Guide

1. Import the package
import 'package:root_plus/root_plus.dart';
2. Request Root Access

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');
}
3. Execute Commands
Single Command:
try {
  String result = await RootPlus.executeRootCommand('pm list packages');
  print('Installed packages: $result');
  
} on RootCommandException catch (e) {
  print('Command failed: ${e.message}');
}
Multiple Commands (using \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}');
}
Exceptions

All methods may throw RootCommandException with these properties:

  • code: Error type (e.g., "COMMAND_FAILED")
  • message: Human-readable error message
  • details: Additional error details (often the command output)

Requirements

  • Rooted Android Phone
  • Tested on Android 15, I didn't tested on other android versions.

Warning

⚠️ Use with caution! Root access gives complete control over the device. Incorrect commands can brick your device.

Author

Developed by Zaher

NEON GitHub avatar
GitHub 작성자

NEON ↗

NEON stands for: Napping? Eating? Outdoors? Nah, just coding.

언어DartKotlin

분류

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 4 개

  • flutter{"sdk":"flutter"}
  • plugin_platform_interface^2.0.2
  • flutter_test개발 의존성{"sdk":"flutter"}
  • flutter_lints개발 의존성^5.0.0

프로젝트에 맞는 저장소를 선택하려면?

사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.

  1. 이름, 작성자 또는 설명으로 검색하고 기술 주제로 범위를 좁힙니다.
  2. 스타, 포크, 최근 푸시를 함께 비교하세요. 스타는 관심의 지표이며 품질을 보장하지 않습니다.
  3. 사용하기 전에 GitHub에서 README, 라이선스, Issues를 확인하세요.

출처 및 관리

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗