Open-source Android debloater and optimizer.
Remove what you don't need, keep what you use, undo anything.
Prune is evolving! Originally developed with Samsung Galaxy devices in mind, Prune is expanding into a universal Android debloating tool. Version 2.0 detects your phone's manufacturer and firmware automatically and brings dedicated rules for Samsung, Google Pixel, Xiaomi, Redmi, POCO, Huawei, Honor, OPPO, OnePlus, realme and Motorola, plus generic support for every other Android phone. So far only the Android emulator is covered by automated tests: real phones are marked partially tested, experimental or generic until people confirm them on their devices. See Compatibility.
Prune is the Android counterpart of tools like Chris Titus Tech's WinUtil: it gives you control over the software on your phone. It scans every package, explains what it is, rates the risk of removing it, and lets you debloat at four levels, from "just the obvious junk" to "every package, my choice". Every change is previewed, recorded with the state before it, verified after it, and can be undone.
Screenshots from the Android emulator used in CI.
Get Prune-2.1.0.apk from the latest release, open it on the phone and allow installing from your browser or file manager. The SHA-256 checksum is in SHA256SUMS.txt next to it.
Upgrading from 1.x or 2.0: install 2.1.0 over it. It is signed with the same key, so history, settings and your "features you use" answers are kept.
Prune adapts to the detected device automatically.
| Manufacturer | Firmware | Support level |
|---|---|---|
| Samsung Galaxy | One UI | Partially tested |
| Google Pixel | Stock Android | Partially tested |
| Xiaomi, Redmi, POCO | HyperOS, MIUI | Experimental |
| Huawei | EMUI, HarmonyOS 2–4 | Experimental |
| Honor | MagicOS | Experimental |
| OPPO, OnePlus, realme | ColorOS, OxygenOS, realme UI | Experimental |
| Motorola | My UX | Experimental |
| Sony, Nothing, ASUS, vivo/iQOO, Tecno/Infinix/itel, Nokia/HMD, Lenovo, ZTE/nubia, LG | Generic | |
| Any other Android 9+ phone | Generic | |
| Android TV / Google TV (Google TV Streamer, Chromecast with Google TV, TV boxes) | Android TV OS, Google TV | Experimental |
- Partially tested: dedicated rules; the debloat engine is tested on stock Android, but not on this brand's hardware.
- Experimental: dedicated rules and known firmware limitations, tested only with simulated devices.
- Generic: generic Android rules plus the community database.
Details, per-brand limitations and how to help move a brand up: docs/COMPATIBILITY.md.
Requirements: Android 9 (API 28) or newer. HarmonyOS NEXT cannot run Android apps, so Prune cannot run there.
Debloat levels
| Level | For | What it selects |
|---|---|---|
| 1 Minimal | A cleaner phone without real changes | Promoted apps, ad and analytics services, carrier apps, third-party preloads (Facebook, Netflix, ...), optional manufacturer extras. Manufacturer ecosystem features and Google services untouched. |
| 2 Balanced | A noticeably lighter phone | Level 1, plus diagnostics and data-collection services, optional manufacturer apps, optionally Google apps, and background restriction for apps unused for 30 days. |
| 3 Aggressive | As light as reasonably possible | Level 2, plus more manufacturer components and Google apps by default. Read the warnings. |
| 4 Extreme / Custom | Experienced users | Every changeable package with its risk. Starts from the Level 3 selection; high-risk and unknown packages need an extra confirmation. |
Before anything is selected you tell Prune which features you use. The list adapts to the phone: Samsung Wallet, Galaxy Watch, DeX and Bixby on a Galaxy; Xiaomi Cloud, Xiaomi Share and Mi Pay on Xiaomi; Huawei ID and Huawei Share on Huawei; and so on. Packages behind those features are never selected. Apps you opened in the last 14 days are never pre-selected either.
Package manager. Every package with its name, package id, description, manufacturer, category (manufacturer, Google, carrier, preload, Android core, other system, yours), installer, status, risk, recommended action, possible consequences and how to bring it back. Search, filter (including duplicates), and act on single packages.
Package identification. Prune combines package names, labels, application flags, the installing app (so partner preloads installed during setup are recognised), the manufacturer, the Android version, Prune's own rule files and the community database. Packages Prune knows nothing about are marked Unknown, never "safe".
Duplicate apps. Two browsers, two galleries, three keyboards: Prune lists app types installed more than once, using Android's standard app categories.
Compatibility report. Manufacturer, model, Android version, firmware, Google/Huawei services, available methods, supported and unsupported operations, required permissions, Shizuku and root status, known limitations, and what has already succeeded or failed on this device. Shareable as text.
Optimization center. Only changes with a real technical effect, each explained in the app: animation scales (1×, 0.5×, 0.25×, off), refresh rate (adaptive, always max, cap at 60 Hz), window blur, high contrast text, background restriction for unused apps, battery-optimization exemptions, sensitive-permission and notification audits, storage per app and cache trimming (free space measured), storage maintenance (sm idle-maint run: fstrim), screen time and Android's own battery estimates, and app compilation. Two Quick Settings tiles (fast animations, clear caches) run the same reviewed changes from the notification shade. Prune does not kill processes, change CPU/GPU governors, or touch thermal management.
Restore center. Full history with the state before and after each change, undo per change or per batch, "restore original state", a list of every system package currently disabled or removed (by any tool), and an emergency ADB restore script.
Android does not let a normal app disable or remove system packages. Prune is built around that, not against it:
| Tier | How you get it | What works |
|---|---|---|
| Standard | Install the app | Scanning, classification, explanations, duplicates, compatibility report, usage and storage (with usage access), opening app settings, uninstalling apps you installed |
| ADB level | Shizuku via wireless debugging (no computer, no root) | Disable, uninstall for user, restore, background restriction, permissions, notifications, battery exemptions, animations, cache trimming, compilation, battery estimates |
| Root | Magisk / KernelSU / APatch (optional) | The same operations through su. Prune never needs root. |
No Shizuku and no root? Every plan can be exported as an ADB script and run from a computer. Prune records it and checks afterwards which changes are in effect.
Prune shows these steps adapted to your phone under Home → Set up.
- Install Shizuku from GitHub (recommended: always the latest version) or Google Play.
- Turn on Developer options: Settings → About phone → tap Build number 7 times. (Galaxy: Software information → Build number. Xiaomi: OS version or MIUI version. OPPO/OnePlus/realme: About device → Version → Build number.)
- Connect to Wi-Fi. In Developer options turn on Wireless debugging.
- Open Shizuku → Start via Wireless debugging → Pairing. In Wireless debugging tap Pair device with pairing code and type the code into Shizuku's notification.
- Tap Start in Shizuku, then in Prune: Home → Set up → Authorize Prune in Shizuku.
- Optional: Grant both on the same screen gives Prune usage access and the animation permission.
Extra switch on some firmwares:
- Xiaomi, Redmi, POCO: also turn on USB debugging (Security settings) (needs a SIM card and a Xiaomi account). Without it permission, background and animation changes are refused.
- OPPO, OnePlus, realme: turn on Disable permission monitoring. Without it permission and background changes are refused.
After a reboot open Shizuku and tap Start again.
On a TV: pairing codes from Shizuku's notification are hard to enter with a remote. The easiest way is a computer on the same network: turn on USB debugging (or Wireless debugging) in the TV's Developer options, run adb connect <TV IP address>, then adb shell sh /sdcard/Android/data/moe.shizuku.privileged.api/start.sh.
Tapped Deny in Shizuku by mistake? Shizuku then ignores new requests. Open Shizuku → Authorized applications and turn Prune on.
Check it works: Home → Set up → Test connection shows whether Prune can run commands and how (Connected: uid 2000 (shell) via Shizuku user service).
- Locked packages. Telephony and emergency calling, IMS (VoLTE/VoWiFi), System UI, Settings, the shell, permission controllers, package installers, content providers, the network stack, Bluetooth, NFC and the secure element, biometrics, Google Play Services and WebView can never be selected, not even in Custom mode. Each manufacturer file adds its own critical apps: for example One UI Home, Knox Guard and Knox attestation on Samsung; the Security app, permission manager and updater on Xiaomi; Phone Manager and the updater on Huawei; Security Center and the permission manager on OPPO/OnePlus/realme.
- Locked for this phone. Your current launcher, phone app, SMS app and keyboard, apps with an accessibility service you turned on, device administrators, persistent system apps, and the service framework and app store a phone without Google services depends on (HMS Core and AppGallery on Huawei).
- Prune's rules win. The community database marks for example Find My Mobile, Auto Blocker and Samsung Pay as "Recommended" to remove. Prune's own rules override that.
- Unknown means unknown. Packages that are in no database get the risk Unknown: never pre-selected, Custom mode only, extra confirmation.
- Reversible by default. "Disable" and "Uninstall for this user" both keep the original APK in the system partition.
pm install-existingbrings any package back, and a factory reset restores everything. - Verified. After every command Prune reads the real state back from Android. A change only counts as applied if Android confirms it. Operations a firmware refuses are reported as failed, with the firmware's own error.
- Commands are argv lists, never shell strings; package names, app-ops, permissions and settings are validated against strict patterns or whitelists.
| Problem | What to do |
|---|---|
| "Shell cannot change component state" | The firmware refuses to disable that package. Keep "Fallback to uninstall-for-user" on (Settings), or uninstall it for the user from the package screen. |
| Permission or background changes fail on Xiaomi | Turn on USB debugging (Security settings) in Developer options. |
| Permission or background changes fail on OPPO/OnePlus/realme | Turn on Disable permission monitoring in Developer options. |
| An app came back after a system update | Some firmwares restore system apps during updates. Run your profile again. |
| Prune says "Limited access" after a reboot | Shizuku stops on reboot: open Shizuku and tap Start. |
| "Not done: Prune could not run commands through Shizuku" | Shizuku is running but did not accept Prune's commands. Open Set up → Test connection and include its text in a bug report. Nothing was changed. |
| "Authorize Prune in Shizuku" does nothing | Prune was denied once. Open Shizuku → Authorized applications and turn Prune on. |
| The app store loops when opening Shizuku | Some store clients (for example Aurora Store) can't open the listing. Use Download Shizuku from GitHub. |
| The phone misbehaves after a change | Restore → History → Undo. If the phone cannot be used normally, connect it to a computer and run the emergency restore script, or adb shell pm install-existing --user 0 <package> and adb shell pm enable --user 0 <package>. |
- Manufacturer rule files are curated by hand and cover the best-known packages; the rest relies on the community database or is marked Unknown.
- Package names can change between firmware versions and regions. Prune never assumes that apps with similar names are the same.
- Battery estimates come from
dumpsys batterystats, whose format differs between firmwares; they can be missing. - Prune works on the current Android user only (not Secure Folder, Second Space or work profiles).
| Area | How | Status |
|---|---|---|
| Classification, levels, safety rules, every rule file, command building, output parsers | JVM unit tests on every build | Verified |
| Manufacturer detection and firmware parsing for Samsung, Pixel, Xiaomi (HyperOS/MIUI), Redmi, POCO, Huawei (EMUI/HarmonyOS), Honor, OnePlus, OPPO, realme, Motorola, vivo, Tecno and unknown brands | Unit tests with simulated devices (mock properties) | Verified with mocks only, not on hardware |
Real pm disable-user, pm enable, pm uninstall -k --user, pm install-existing, app-ops, deviceidle, settings |
Run as the shell user (same uid as Shizuku) on an Android 15 emulator, result read back from Android | Verified on emulator |
| Device identity, rule loading, duplicate detection, compatibility report on a real Android system | Instrumented tests on the emulator | Verified on emulator |
| Full UI flow: every screen, disable a package and undo it through the UI | Compose UI tests with screenshots on the emulator | Verified on emulator |
| Signed release APK installs and launches | Emulator smoke test | Verified on emulator |
| Real Shizuku (latest release): authorization, user service, fallback through Shizuku's own process, disable/enable round trip, the release APK's Test connection and Quick Settings tile | Shizuku started with adb on the emulator, debug and release builds | Verified on emulator |
| Release APK on Android TV: listed in the TV launcher, opened and navigated with the D-pad only | Android TV emulator (API 34) | Verified on emulator |
Root through su, manufacturer-specific behaviour, Shizuku on manufacturer firmware |
Needs real phones | Needs device testing |
Requirements: JDK 17, Android SDK 35.
git clone https://github.com/cyb3rl00m/prune-debloater.git
cd prune-debloater
./gradlew testDebugUnitTest assembleDebug
The package database is built from tools/rules/*.json and the community list:
python3 tools/build_db.py
Adding or improving a manufacturer: see CONTRIBUTING.md.
- Package descriptions and community removal tiers: Universal Android Debloater Next Generation (GPL-3.0). Prune bundles its manufacturer, Google, AOSP, carrier and preload lists.
- Shizuku by RikkaApps for ADB-level access without root.
- Built by cyb3rl00m with help from Claude by Anthropic.
Prune changes system software. It is designed to be safe and reversible, but you use it at your own risk. Prune is not affiliated with any phone manufacturer or with Google. Brand and product names are trademarks of their owners.



