Skip to content

feat: add ADB debloat script for Xiaomi/Redmi/HyperOS phones - #110

Merged
Stensel8 merged 4 commits into
mainfrom
claude/adb-debloat-redmi-9ggrgg
Sep 13, 2026
Merged

Stensel8 merged 4 commits into
mainfrom
claude/adb-debloat-redmi-9ggrgg

Conversation

@Stensel8

@Stensel8 Stensel8 commented Sep 6, 2026

Copy link
Copy Markdown
Member

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/feature
  • fix
  • content
  • docs
  • chore
  • refactor
  • style
  • revert

Checklist

  • PR title follows the commit convention
  • Tested: bash -n + shellcheck -S warning pass clean; exercised list/remove --dry-run/remove -y/restore-all against a stubbed adb to verify parsing and control flow
  • No broken internal links

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
Copilot AI lite review requested due to automatic review settings September 6, 2026 23:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Stensel8
Stensel8 marked this pull request as draft September 6, 2026 23:09
@Stensel8 Stensel8 self-assigned this Sep 13, 2026
@Stensel8
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.
@Stensel8
Stensel8 merged commit 476e738 into main Sep 13, 2026
7 checks passed
@Stensel8
Stensel8 deleted the claude/adb-debloat-redmi-9ggrgg branch September 13, 2026 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants