android-ad-cleaner: Let a Coding Agent Switch Off Ads on Your Android Phone The android-ad-cleaner repository, an MIT-licensed tool that instructs an AI coding agent to disable system ads, trending-search lists, feeds and marketing notifications on Chinese-brand Android phones over adb, gained roughly 1,500 GitHub stars in two days, with its latest tagged release v0.2.3 dated October 25, 2026. The README directs users to paste a single instruction into Claude Code, Codex, Cursor or a similar agent to clone the repo, read AGENTS.md and clean the connected phone, requiring no root, bootloader unlock or flashing, and offering backups plus restore commands for suspended packages and channels. Honor and Xiaomi models are marked tested, OnePlus and OPPO partly, native HarmonyOS is unsupported, and the maintainer flags the main risk as granting an agent USB debugging while some steps rely on unverified model-specific screens. A repo that asks an AI coding agent to clean ads off your phone gained roughly 1,500 GitHub stars in two days. android-ad-cleaner https://github.com/rddmwmddr/android-ad-cleaner?ref=explainx MIT licence targets a very specific annoyance: the ads, trending-search lists, news feeds and marketing push notifications that ship inside the system software of many Chinese-brand Android phones. Its twist is the delivery method. Instead of a script you read and run, the README tells you to paste one sentence into Claude Code, Codex, Cursor or a similar agent and let it drive the phone over adb. That makes it a useful, small, real example of what a mobile-device agent rulebook looks like, and of what can go wrong. This post covers what the tool does, how the agent instructions are built, which phones are actually tested, and the safety questions you should ask before connecting your own device. TL;DR: what readers ask first | Question | Short answer | |---|---| | What does it do? | Turns off system ad personalisation, trending-search and feed recommendations, store promo slots and marketing notification channels | | Does it need root? | No. No root, no bootloader unlock, no flashing, per the README | | Is it free? | Yes, MIT licence. A desktop client for Mac and Windows is also offered | | Does it need an AI agent? | No. There are four routes: agent, chat AI guiding you by hand, manual checklists, or the desktop app | | Which phones? | Honor and Xiaomi models marked tested; OnePlus and OPPO partly; several still pending. Native HarmonyOS is unsupported | | Can I undo it? | Backups, plus restore commands for suspended packages and channels | | Main risk? | You grant an agent USB debugging; some steps rely on unverified model-specific screens | What is android-ad-cleaner? The repository description, translated, reads: turn off the ads, trending searches, content recommendations and marketing pushes in Chinese Android phone systems, with no root, reversible, and with one-click execution by an AI agent. The latest tagged release at the time of writing is v0.2.3 October 25, 2026 , and the repo shows 45 commits, about 131 forks and a topic list that includes adb , ai-agent , coloros , hyperos , magicos and originos . The README splits what it handles into categories: - System ads: personalised ads, ad tracking the OAID advertising identifier and smart recommendation services, handled through the system settings switches. - Trending searches and feeds: the hot-search list in the pull-down search, the news card on the minus-one screen, and browser feeds, handled through each app's own settings. - Promo slots: carousels, splash ads, floating activity buttons and check-in rewards in the phone's app store, switched off in the store's service-management page. - Marketing notifications: per-channel switches such as "content and marketing" or "offers", while keeping order, delivery and update alerts. - Ad components: packages such as com.opos.ads or com.miui.systemAdSolution , suspended with pm suspend , only with the owner's consent. - Quick apps: the "instant mini-programs" that open from ads, detected and switched off. Features the maintainer deliberately keeps include search, the minus-one screen cards, app store installs and updates, weather warnings and parcel reminders. The tool does not uninstall or disable system apps, does not touch the system partition and does not accept any app's user agreement on your behalf. How the agent route works The agent route is the interesting part for anyone building with coding agents. The README's opener is a single instruction you copy to your agent: clone the repository, read AGENTS.md , then remove ads from the phone connected to the computer, telling the user what will change before each step. The tool works through adb https://developer.android.com/tools/adb?ref=explainx , Android's standard debug bridge, plus uiautomator2 for reading the screen and tapping switches. The repo's AGENTS.md https://github.com/rddmwmddr/android-ad-cleaner/blob/main/AGENTS.md?ref=explainx is the real product: a 154-line operating manual for an agent. Its standard flow, as written, runs in numbered steps: 1. run.py devices to find the phone, with prompts for USB authorisation if the status is unauthorized. 2. run.py check , a read-only inspection of lock state, model-script match and ad packages. 3. run.py backup to snapshot settings into a backups/ folder before any change. 4. run.py recipe , which replays a per-model script of which app to open and which switches to flip. Models without a script fall back to checklists. 5. chan-scan , a read-only listing of open marketing notification channels, which the agent edits into a list the user approves before chan-off runs and re-checks that zero channels remain on. 6. quickapp detection, then a question to the user about suspending ad packages. 7. finish , followed by a reminder to switch developer mode off. The agent is meant to report in plain language: what was turned off, what could not be, which packages were suspended and how to restore them. For failures it can open a GitHub issue with the model, system version and a log with serial numbers redacted, after asking the user. The rulebook is the safety layer A green key fits a narrow opening in a fence, showing how the android-ad-cleaner AGENTS.md rulebook limits what an agent may change The strongest part of the repo is how explicit the constraints are. A few of the hard rules in AGENTS.md, paraphrased: - Every adb command carries -s