Skip to content
pubscout

shizuku_api

1.3.1, released 5 weeks ago by santhoshdsubramani.in

Flutter plugin to run shell commands via Shizuku without root

WASM-readyCopyleft license
$ flutter pub add shizuku_api
Source repository

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.

Works with

Packages commonly used together with shizuku_api: ones it builds on, ones built on it, and its own family.