feat: add ADB debloat script for Xiaomi/Redmi/HyperOS phones - #110
Draft
Stensel8 wants to merge 2 commits into
Draft
feat: add ADB debloat script for Xiaomi/Redmi/HyperOS phones#110Stensel8 wants to merge 2 commits into
Stensel8 wants to merge 2 commits into
Conversation
Non-root pm uninstall --user 0 based debloater with a curated, tiered package list (safe third-party bloat vs. opt-in Xiaomi/HyperOS apps vs. documented do-not-touch), a dry-run mode, and restore/restore-all to reverse any removal. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019Uo91Mmg5jG3o7DsTjzVk5
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019Uo91Mmg5jG3o7DsTjzVk5
Stensel8
marked this pull request as draft
September 6, 2026 23:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a non-root ADB debloat script for Xiaomi/Redmi/POCO phones running HyperOS (tested against a Redmi Note 15 5G on HyperOS 3), plus a README with prep steps, usage, and sources.
Type of change
feat— new script/featurefixcontentdocschorerefactorstylerevertWhat's included
android/redmi_debloat.sh—pm uninstall -k --user 0based debloater (no root needed, reversible until factory reset):info/list— inspect known bloat packages and what's actually installed, without changing anythingremove [--dry-run] [--include-miui] [-y]— removes a curated, tiered package list; always writes aremoved-packages-<timestamp>.txtrestore filerestore <package>/restore-all <file>— reinstalls for the current userWrite-Log/Stop-Scripthelpers, Verb-Noun function names,set -euo pipefail)android/README.md— prep steps (enabling USB debugging, platform-tools install), usage, and an explanation of the three package tiers:--include-miui): Xiaomi/HyperOS-branded bundled appscom.miui.daemon,com.android.stk,com.xiaomi.xmsf)Package lists and risk notes were compiled from several community debloat lists, linked in
android/README.md.Checklist
bash -n+shellcheck -S warningpass clean; exercisedlist/remove --dry-run/remove -y/restore-allagainst a stubbedadbto verify parsing and control flow🤖 Generated with Claude Code
https://claude.ai/code/session_019Uo91Mmg5jG3o7DsTjzVk5
Generated by Claude Code