Clean & Speed Up Any
Android Phone via ADB
Automated rollback snapshots, zero personal data loss (-k flag), and 320+ curated OEM debloat rules.
Built for AI coding agents (Claude Code, Gemini, ChatGPT) and developers.
Clone https://github.com/Rovoxia/AI-Phone-Debloater.git, navigate into the repository, and help me safely debloat my connected Android device via ADB. First, run 'python scripts/debloat-engine.py scan' and display a clear breakdown of my device details and detected bloatware packages. Next, explicitly ask me which debloat tier I want to apply (defaulting to Tier 1 — Safe if I press Enter or don't specify) and whether I want to run a Dry-Run simulation first to preview the package list. Once I confirm my choices, take an automatic pre-debloat snapshot/backup, and execute the debloat while strictly preserving all personal data and user files.
# 1. Clone repository git clone https://github.com/Rovoxia/AI-Phone-Debloater.git cd AI-Phone-Debloater # 2. Scan & classify installed packages python scripts/debloat-engine.py scan # 3. Simulate safe tier debloat (zero changes made) python scripts/debloat-engine.py dry-run --tier 1 # 4. Debloat with automatic pre-snapshot python scripts/debloat-engine.py debloat --tier 1 --action disable
-k)Workflow & Verification Pipeline
Deterministic, verifiable execution. Every action is simulated before making any change to your device.
ADB Discovery & Device Detection --------------------------------- [OK] Connected: Samsung Galaxy S24 Ultra (Android 15, SDK 35, aarch64) Scanning installed packages for user 0: Total: 382 packages found (358 enabled) Safety Tier Breakdown: Tier 1 (Safe Bloat): 42 -> Safe to disable/remove Tier 2 (Advanced): 18 -> Assistants & cloud sync Tier 3 (Extreme): 3 -> Stock tool replacements Tier 4 (CRITICAL): 61 -> HARD PROTECTED (Core framework) Unknown / Custom: 258 -> Unmodified
4-Tier Safety Framework
Every package is classified before execution. Operations run strictly within Android's unprivileged user profile layer.
Safe Bloatware
Carrier diagnostics, ad daemons, Facebook/Meta background services, and telemetry stubs.
pm disable-user Assistants & Sync
OEM proprietary digital assistants, background cloud sync services, and AR avatar stickers.
pm disable-user Stock Apps
OEM bundled default apps when alternative apps (Gboard, Chrome, F-Droid) are already active.
pm uninstall -k Critical Sentinel
Hardcoded blacklist enforced at engine level. Any attempt to modify will immediately abort.
com.android.systemuicom.android.phonecom.google.android.gmsSystem partitions remain read-only. Zero firmware modification.
Personal databases in /data/user/0/ remain intact.
Pre-debloat snapshots saved for instant 1-click restore.
Warranty intact. Google Play Integrity and banking apps pass.
Curated OEM Bloatware Rules Explorer
Search and filter all 331 verified package definitions extracted from the official repository.
Try another keyword or select "All Rules".
Feature Comparison
How AI-Phone-Debloater compares against legacy debloating tools and manual ADB commands.
| Capability | AI-Phone-Debloater | UAD-ng | ADB AppControl | Manual ADB |
|---|---|---|---|---|
| Rootless Execution | Yes (User 0) | Yes | Yes | Yes |
Zero Data Loss (-k flag) | Guaranteed | Partial | No | Manual Only |
| 1-Click AI Agent Integration | Native (Claude, Gemini, GPT) | None | None | None |
| Automatic Pre-Snapshots | Automatic JSON | Manual Export | Paid License ($$) | None |
| 1-Click Full Rollback | Instant (restore cmd) | Per-package | Manual | Manual shell |
| Curated OEM Rules | 320+ Rules | Community list | Basic | None |
| Zero Dependencies (No Pip / Executables) | Pure Python Stdlib | Rust GUI Binary | Windows Binary | Shell Only |
| Hardcoded Critical Blacklist Interception | Engine Enforced (61 pkgs) | Rule Enforced | Warning Prompt | None |
CLI Command Reference
Run scripts/debloat-engine.py directly. Standard Python 3 with zero pip dependencies.
.\debloat.bat chmod +x debloat.sh && ./debloat.sh Queries hardware specs via ADB and categorizes all user-0 packages into Safety Tiers (1-4).
Simulates debloating for a specific safety tier. Checks the 61-package blacklist with zero changes.
Executes package removal on user 0. Automatically saves a JSON safety snapshot in backups/ first.
Exports device profile and classified inventory to JSON & Markdown for feeding into Claude Code, ChatGPT, or Gemini.
Validates and executes an AI-generated JSON debloat plan. Intercepts and aborts if any critical package is referenced.
Restores packages from a snapshot back to their exact original states, or restores a single package by name.
Lists all available timestamped JSON backup snapshots stored in backups/ with metadata.
Launches the interactive terminal menu with numbered choices for scanning, debloating, and restoring.
Frequently Asked Questions
Rootless Android debloating, safety boundaries, data protection, and AI agent execution.