feat: add ADB debloat script for Xiaomi/Redmi/HyperOS phones - #110
Merged
Merged
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
Stensel8
marked this pull request as ready for review
September 13, 2026 20:30
Remove-Package and Restore-Package ran adb shell without redirecting its stdin, so it consumed the rest of the package list piped into the while-read loop and a real remove/restore-all stopped after the first package. Fixed with </dev/null. Also documents two packages found to crash SystemUI if removed: com.android.htmlviewer and miui.systemui.plugin.
Records the 79 packages removed during live testing, the two found load-bearing for SystemUI, and an unrelated pre-existing Gmail bug.
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/featurefixcontentdocschorerefactorstylerevertChecklist
bash -n+shellcheck -S warningpass clean; exercisedlist/remove --dry-run/remove -y/restore-allagainst a stubbedadbto verify parsing and control flow