android-bench-debloat-skilllisted
Install: claude install-skill 4ntiDandruff/zero-bloat-skills
# Android Bench Debloat Skill
Standard operating procedure for reviving laggy, storage-exhausted Android client devices without voiding hardware warranty or tripping financial Knox/SafetyNet triggers via root access.
---
## 1. Principle: Disable vs User 0 Uninstallation
- Running `pm uninstall -k --user 0 <package>` uninstalls the application from primary user space while keeping the signed factory APK in the read-only `/system` partition.
- If a customer requires an uninstalled service restored, it can be reinstituted immediately without downloading:
```bash
adb shell cmd package install-existing <package>
```
---
## 2. Vital System Whitelist: DO NOT UNINSTALL
Removing these packages will induce permanent bootloops or catastrophic System UI crashes:
- `com.android.systemui` (System UI, notifications, status bar)
- `com.google.android.packageinstaller` / `com.android.packageinstaller`
- `com.android.settings` (Core system settings)
- `com.android.providers.telephony` (Telephony & SIM baseband services)
- `com.android.providers.media` / `com.android.providers.downloads`
- The default input method (keyboard) before configuring a verified replacement (Gboard).
---
## 3. OEM Package Blacklist Catalog
### Xiaomi / MIUI / HyperOS:
```bash
# System Telemetry & Ad Engines
adb shell pm uninstall -k --user 0 com.miui.analytics
adb shell pm uninstall -k --user 0 com.miui.msa.global
adb shell pm uninstall -k --user 0 com.xiaomi.mipicks
# Preinstalled Third-Party Bloat
ad