shizuku_api
1.3.1, released 5 weeks ago by santhoshdsubramani.in
Flutter plugin to run shell commands via Shizuku without root
What it does
It lets a Flutter app execute ADB shell commands on Android by communicating with the Shizuku service. The plugin handles permission checks, requests, and runs commands on a background thread.
AI-written summary of version 1.3.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- Need to uninstall or modify system apps without root
- Want to run arbitrary ADB shell commands from a Flutter app
- Require background execution of shell commands
Skip it when
- Targeting iOS or non-Android platforms
- Shizuku app not installed or not running
- Device SDK below 24
Strengths
- Runs commands on a background thread, avoiding UI blocking
- Handles permission dialogs and rationale flow
- Provides a binder status stream and various info getters
Weaknesses
- Only works on Android with Shizuku installed
- Requires manual manifest provider entry
- No support for iOS or other platforms
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 1
Add provider to AndroidManifest.xml, set minSdk to 24, ensure Shizuku app is installed and running
```dart
final api = ShizukuApi();
if (await api.checkPermission() ?? false) {
await api.runCommand('pm uninstall --user 0 com.android.chrome');
}
```Alternatives
Packages that do the same job and could replace shizuku_api.
- jni_flutter
Access Flutter Android APIs from Dart.
87Compare - location
Flutter plugin to get real-time device location across platforms.
94Compare - nfc_manager
A Flutter plugin providing access to NFC features on Android and iOS.
94Compare - system_info2
Provides easy access to system information like architecture, kernel, memory, OS, CPU, and user.
85Compare
Works with
Packages commonly used together with shizuku_api: ones it builds on, ones built on it, and its own family.