[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-115639":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":13,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":14,"stars7d":15,"stars30d":15,"stars90d":14,"forks30d":14,"starsTrendScore":14,"compositeScore":16,"rankGlobal":9,"rankLanguage":9,"license":17,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":20,"hasPages":18,"topics":21,"createdAt":9,"pushedAt":37,"updatedAt":38,"readmeContent":39,"aiSummary":40,"trendingCount":14,"starSnapshotCount":14,"syncStatus":15,"lastSyncTime":41,"discoverSource":42},115639,"Clean-Your-Mobile","0xgh0stri13y\u002FClean-Your-Mobile","0xgh0stri13y","Your phone, minus the bloat. Debloat right on your phone via the Shizuku app (no PC needed) or from a computer over Wi-Fi\u002FUSB. Strip ads, bloatware, and telemetry—zero root, fully reversible.",null,"Python",56,4,1,0,2,43.3,"MIT License",false,"main",true,[22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"adb","adblock","android","android-app","android-debloater","bloatware-removal","claude-code","debloat","oneplus","pixel","privacy","samsung","shizuku","telemetry","xiaomi","2026-11-13 06:27:10","2026-11-23 00:07:07","\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fbanner.png\" alt=\"CleanYourMobile. Your phone, minus the bloat. Debloat any Android phone over Wi-Fi. No root, fully reversible.\" width=\"800\">\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cb>Your phone, minus the bloat.\u003C\u002Fb>\u003Cbr>\n  Strip the ads, trackers, telemetry and preinstalled junk from any Android phone.\u003Cbr>\n  \u003Cb>Now Shizuku compatible\u003C\u002Fb> — run it on the phone itself with\n  \u003Ca href=\"CleanYourMobile.apk\">the app\u003C\u002Fa>, or from a computer over USB or Wi-Fi.\u003Cbr>\n  \u003Cb>No root. Nothing permanently deleted. One-line restore.\u003C\u002Fb>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002F0xgh0stri13y\u002FClean-Your-Mobile\u002Fstargazers\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002F0xgh0stri13y\u002FClean-Your-Mobile?style=flat&cacheSeconds=1800&color=cfffcf&labelColor=15181e\" alt=\"Stars\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002F0xgh0stri13y\u002FClean-Your-Mobile\u002Fnetwork\u002Fmembers\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fforks\u002F0xgh0stri13y\u002FClean-Your-Mobile?style=flat&cacheSeconds=1800&color=cfffcf&labelColor=15181e\" alt=\"Forks\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002F0xgh0stri13y\u002FClean-Your-Mobile\u002Fgraphs\u002Fcontributors\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fcontributors\u002F0xgh0stri13y\u002FClean-Your-Mobile?style=flat&cacheSeconds=1800&color=cfffcf&labelColor=15181e\" alt=\"Contributors\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002F0xgh0stri13y\u002FClean-Your-Mobile\u002Fissues\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fissues\u002F0xgh0stri13y\u002FClean-Your-Mobile?style=flat&cacheSeconds=1800&color=cfffcf&labelColor=15181e\" alt=\"Issues\">\u003C\u002Fa>\n  \u003Ca href=\"LICENSE\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicence-MIT-cfffcf?style=flat&labelColor=15181e\" alt=\"MIT licence\">\u003C\u002Fa>\n  \u003Ca href=\"#safety\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Froot-not%20required-cfffcf?style=flat&labelColor=15181e\" alt=\"No root required\">\u003C\u002Fa>\n  \u003Ca href=\"#the-android-app\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FShizuku-compatible-cfffcf?style=flat&labelColor=15181e\" alt=\"Shizuku compatible\">\u003C\u002Fa>\n  \u003Ca href=\"CleanYourMobile.apk\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fdownload-APK-cfffcf?style=flat&labelColor=15181e\" alt=\"Download the APK\">\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cb>537 packages\u003C\u002Fb> across \u003Cb>15 brand families\u003C\u002Fb> ·\n  \u003Cb>207\u003C\u002Fb> never-touch entries · nothing to install beyond Python and adb\n\u003C\u002Fp>\n\n## About\n\n**CleanYourMobile** is a safety-first debloater for Android phones. It removes carrier bloat, lock\nscreen ad carousels (Glance, magazine feeds), vendor ad services (MIUI MSA), background telemetry\nand duplicated manufacturer apps, from a computer over USB or Wi-Fi, or from the phone itself\nthrough Shizuku. Nothing is touched until you approve the plan.\n\nInspired by [CleanYourTV](https:\u002F\u002Fgithub.com\u002FGathin23\u002Fcleanyourtv), it brings the same transparent,\nreversible approach to phones:\n\n- **No root** — standard Android Debug Bridge (`adb`) commands only: `pm uninstall -k --user 0` and\n  `pm disable-user --user 0`.\n- **Nothing permanently deleted** — the read-only system partition is never written. A reboot or the\n  restore script undoes a mistake, and a factory reset brings back every system package.\n- **An audited offline database** — 537 packages across 15 brand families, each saying what it does\n  and what breaks if it goes.\n- **A four-layer guard** — 207 never-touch entries (phone calls, SMS, emergency alerts, SIM, camera,\n  keyboard, Play Services and more), a protected-name pattern, the launcher and keyboard you are\n  using right now, and system apps only.\n- **A restore record first** — written before the first package comes off, not after the last.\n\n## Start here\n\nThere are three ways to use this, in order of how much you have to set up.\n\n| You have | Go to | Effort |\n|---|---|---|\n| **Only the phone** | [The Android app](#the-android-app) — [`CleanYourMobile.apk`](CleanYourMobile.apk) runs on the phone through [Shizuku](https:\u002F\u002Fshizuku.rikka.app\u002F), Android 11+ | Lowest |\n| **A phone and a computer** | [Quick start](#quick-start) — a coding assistant does the work in about ten minutes | Low |\n| **A computer, no assistant** | [Doing it by hand](#doing-it-by-hand) — the same scripts, run by you. The best-tested path | Medium |\n| **An iPhone** | Nothing here applies. iOS has no debug bridge of this kind and no preinstalled bloat to remove | — |\n| **Want to see it first** | [What a scan looks like](#what-a-scan-looks-like) — output from a real phone | — |\n\n**Use it:** [The Android app](#the-android-app) · [Quick start](#quick-start) ·\n[Doing it by hand](#doing-it-by-hand)\n\n**Understand it:** [How it works](#how-it-works) ·\n[What a scan looks like](#what-a-scan-looks-like) · [What you get](#what-you-get) ·\n[Supported phones](#supported-phones) · [Safety](#safety)\n\n**When you need it:** [Restoring](#restoring-your-phone) ·\n[System updates](#after-a-system-update) ·\n[When something goes wrong](#when-something-goes-wrong) ·\n[Questions](#questions-people-ask) · [Contributing](#contributing)\n\n## The Android app\n\n[`CleanYourMobile.apk`](CleanYourMobile.apk) runs the same database and guard on the phone itself,\nwith no computer involved once [Shizuku](https:\u002F\u002Fshizuku.rikka.app\u002F) is started. The source is in\n[`android\u002F`](android\u002F).\n\n| | |\n|---|---|\n| ![The app in dark mode: true black background, gold accent, packages listed with what each removal costs](docs\u002Fapp\u002Fapp-dark.png) | ![The same list in light mode](docs\u002Fapp\u002Fapp-light.png) |\n| *Dark, true OLED black* | *Light* |\n\n**It is a reference implementation, not a product.** It exists to show that the database and the\nguard port cleanly to Android. For everyday use on a phone,\n[Canta](https:\u002F\u002Fgithub.com\u002Fsamolego\u002FCanta) is more mature, more complete and has thousands of\nusers; the honest comparison is in [the FAQ](#how-does-this-compare-to-canta-and-shizuku).\n\n### Installing it\n\n| Step | What to do |\n|---|---|\n| **1. Shizuku** | Install it from the [GitHub release](https:\u002F\u002Fgithub.com\u002FRikkaApps\u002FShizuku\u002Freleases), not the Play Store build, which is older and has no Android 16 support. |\n| **2. Start it** | Pair over Wireless debugging on Android 11+, or start it from a computer over ADB. Android clears it on every reboot, so this has to be done again after each restart unless the phone is rooted. |\n| **3. Install the APK** | Download [`CleanYourMobile.apk`](CleanYourMobile.apk) and open it. Android will ask you to allow installs from your browser or file manager. |\n| **4. Grant access** | Open the app and tap **Grant access**; Shizuku asks you to confirm. |\n\nThe app needs Android 8.0 (API 26) or newer; starting Shizuku without a computer needs Android 11.\n\n### What it does\n\n| | |\n|---|---|\n| **Reads the same database** | `database\u002F` is copied in at build time, so a fresh build always carries the current copy. The published APK carries the database as it was at its release. |\n| **Detects the brand** | The same scoring as `tools\u002Fcym.py`, including the alias bonus that catches \"Redmi\" and \"iQOO\" reporting themselves as something other than their maker. The brand's notes appear at the top of the screen. |\n| **Shows what you lose** | Every row carries its `if_removed` line, which is the field this whole project exists for. |\n| **Sorts by impact** | Advertising and telemetry first, manufacturer features last. A separate axis from the safety rating: a preinstalled compass and a lock-screen ad carousel are both \"Recommended\", but only one is doing you harm. |\n| **Refuses what it must** | The same checks as the scripts: the never-touch list, an Unsafe rating, the protected-name pattern, the launcher and keyboard in use, and system apps only. On a OnePlus 10 Pro it holds back 112 packages. |\n| **Backs up first** | Before the very first change it saves every installed package, which ones were already off, and the build. A restore record is written before the first package comes off, and the undo commands can be exported as a text file. |\n| **Disables, never deletes** | `pm disable-user --user 0`. **Restore all** switches everything back on. |\n| **Shows what it cannot rate** | A package the database has no entry for is listed under **Unrated** rather than quietly left out. It is shown and never offered: an unrated package is evidence for a human, not a verdict. |\n| **Presets** | **Export preset** saves what you actually switched off as a portable JSON profile; **Import preset** reads one from a file or the clipboard, re-checks every package against the database and the guard, and then only ticks the boxes. Nothing is applied by an import. The format is the same one [`tools\u002Fpreset.py`](tools\u002Fpreset.py) reads, so a profile moves between a phone and a computer either way. |\n| **Light or dark** | Chosen under **Appearance**: follow the system, light, or true `#000000` OLED dark, the default. Every text colour passes the 4.5:1 contrast requirement against its background. |\n\n### What is verified, and what is not\n\nTested on a OnePlus 10 Pro (NE2213), Android 16, OxygenOS 16.0.3:\n\n| Verified on hardware | Not yet exercised |\n|---|---|\n| Scan, brand detection, the guard holding back 112 packages | **Uninstall mode** — the code exists but the interface only calls disable |\n| All four Shizuku states, and the permission grant | Batching at scale: every test run has been a single package |\n| The privileged disable (`enabled 0 → 3`) and restore (`3 → 1`) | The three-consecutive-failure abort |\n| The backup snapshot and the exported undo file | The between-batch health check |\n| The light and dark themes, search, filters, selection | Any phone other than the one above |\n\nPreset export and import and the **Unrated** list compile, and their validation is covered by the\ncommand-line twin, but neither has been run on a phone yet.\n\nThe command-line tools are the better-tested path by a wide margin: they have been run against\nOnePlus and vivo phones, including a real 32-package removal, which is where most of this project's\nbugs were found.\n\n### Building it yourself\n\n```bash\ngradle -p android assembleDebug      # build only\ngradle -p android publishApkRelease  # build, then copy the release APK to the root\n```\n\nNeeds JDK 17 or newer, Gradle 8.7 or newer (there is no wrapper), and the Android SDK with platform\n35 and build-tools 34 or newer. `database\u002F` is read from one level up; the build **fails** rather\nthan producing an APK with no never-touch list.\n\n`Guard.kt` holds the **fourth** copy of the protected-name pattern, generated from\n`scripts\u002Flib.sh`. Never edit it by hand: `python tools\u002Fsync_guard.py --fix` regenerates it, and\n`python tools\u002Fsync_guard.py` checks that all four copies agree.\n\nThe published APK is a **signed release build**. Its signing key is held outside the repository\nand never committed, so the certificate below identifies builds that actually came from here:\n\n```\nSigner certificate DN:  CN=0xgh0stri13y, OU=CleanYourMobile, O=CleanYourMobile\nSHA-256 digest:         bf068b12ebc1c7f97ecaa33f312b19f69f0f97b8d1bfc6f0a164561712ca7782\n```\n\nCheck any copy you download with `apksigner verify --print-certs CleanYourMobile.apk`. A different\ndigest is not this build. `publishApkRelease` signs only when the key is present; without it the\nrelease APK is left unsigned. If you would rather not trust a binary at all, build it from source\nwith the commands above: your build carries your own signature rather than the certificate above,\nand the current database.\n\n**More:** [`android\u002FREADME.md`](android\u002FREADME.md).\n\n## How it works\n\nEvery Android phone has the same debug bridge developers use. Switch on USB debugging in the\nphone's developer options, allow your computer once, and the rest is standard Android tooling:\n\n| Step | What happens |\n|---|---|\n| **Measure** | Every installed package, plus RAM, storage, battery, processes, services, and how many apps hold your location, camera, microphone and contacts permissions. |\n| **Scan** | Each package is matched against a database of 537 known packages: what it is, what it does, and what you lose if it goes. Anything unrecognised is reported as unrecognised. |\n| **Ask** | A plan grouped by category, each line saying what breaks. You delete whatever you want to keep. Nothing is touched before you approve it. |\n| **Remove** | With `pm uninstall -k --user 0`, which removes an app for your user profile only. The copy on the read-only system partition stays. Five at a time, with a health check between batches. |\n| **Measure again** | The same numbers after a reboot, side by side with the first set. |\n\n**No root, no system partition written, nothing deleted, and a one-line restore if you change your\nmind.** The restore record is created before the first removal and gets a line the moment each\npackage comes off, so an interrupted run still covers everything removed up to that point.\n\nThe bloat differs by brand and by region, so the scan reads your phone rather than trusting a list,\nand asks before touching anything you might be using.\n\n## Quick start\n\n| You have | Do this |\n|---|---|\n| **A computer with a coding assistant** | Use the prompt: the three steps below. |\n| **A computer, no coding assistant** | Run the commands yourself: they are in [Doing it by hand](#doing-it-by-hand). |\n\nThe computer needs a shell, Python 3.8 or newer, and either a USB cable or the phone on the same\nWi-Fi network. No SDK, no JDK, nothing to `pip install`.\n\nAny of these work: [Claude Code](https:\u002F\u002Fclaude.com\u002Fclaude-code),\n[Codex](https:\u002F\u002Fgithub.com\u002Fopenai\u002Fcodex),\n[Gemini CLI](https:\u002F\u002Fgithub.com\u002Fgoogle-gemini\u002Fgemini-cli),\n[Antigravity](https:\u002F\u002Fantigravity.google) or Cursor.\n\n| Where | What to do |\n|---|---|\n| **1. On the phone** | Settings → About phone → tap **Build number** seven times → back → Developer options → **USB debugging** on. If you want to work without a cable, turn on **Wireless debugging** too. Keep the screen unlocked. |\n| **2. On your computer** | Clone the repository and open that folder in your assistant (`git clone https:\u002F\u002Fgithub.com\u002F0xgh0stri13y\u002FClean-Your-Mobile`), then paste [`PROMPT.md`](PROMPT.md) and fill in your phone's model. |\n| **3. Follow along** | Accept \"Allow USB debugging?\" on the phone, then answer the checklist: how far to go, and which of the manufacturer's apps you actually use. |\n\nCloning matters: the assistant reuses this repository's `scripts\u002Fdebloat.sh` and `tools\u002Fscan.py`\ninstead of writing its own, and that is where the never-touch guard, the batching, the health\nchecks and the restore record live. An assistant improvising `pm uninstall` loops has none of them.\nWith this repository as context it takes about ten minutes.\n\n## Doing it by hand\n\nEverything the assistant does, you can run yourself. The only requirement is Python 3.8 or newer;\nthe tools in `tools\u002F` import nothing outside the standard library. The first script installs the\nAndroid platform tools if they are missing. Nothing below needs root, and `--dry-run` changes\nnothing on the phone.\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002F0xgh0stri13y\u002FClean-Your-Mobile\ncd Clean-Your-Mobile\n\nbash scripts\u002Fsetup_adb.sh                 # install the platform tools if missing\nbash scripts\u002Fconnect.sh                   # USB; --wireless to pair over Wi-Fi\nbash scripts\u002Fsnapshot.sh before           # measure, and open a session\n\npython tools\u002Fscan.py --plan               # match the database, write plan.txt\n                                          # --level recommended | advanced | expert\n\nbash scripts\u002Fdebloat.sh backups\u002F\u003Csession>\u002Fplan.txt --dry-run   # read this first\nbash scripts\u002Fdebloat.sh backups\u002F\u003Csession>\u002Fplan.txt             # apply it\n\nadb reboot && adb wait-for-device\nbash scripts\u002Fsnapshot.sh after\npython tools\u002Freport.py                    # report.md, report.json, report.txt\n```\n\nUse `python3` where `python` is not on the path, as on macOS and many Linux systems.\n\n| Tool | What it does |\n|---|---|\n| [`scripts\u002Fsetup_adb.sh`](scripts\u002Fsetup_adb.sh) | Installs the Android platform tools: Homebrew or your package manager first, Google's official zip as a fallback. The PowerShell twin always uses the zip. |\n| [`scripts\u002Fconnect.sh`](scripts\u002Fconnect.sh) | Finds the phone over USB, pairs over Wi-Fi with a pairing code, or moves a trusted USB phone onto Wi-Fi. Explains each failure in plain words alongside adb's own message. |\n| [`scripts\u002Fsnapshot.sh`](scripts\u002Fsnapshot.sh) | Measures packages, RAM, storage, battery, processes, services and permission holders into one session directory, as readable text and as JSON. |\n| [`tools\u002Fexplain.py`](tools\u002Fexplain.py) | Looks up a package name with no phone attached: what it is, what you lose if it goes, whether the guard refuses it and why, and the command that undoes each change. `--search` explores by keyword, `--json` feeds other tools. |\n| [`tools\u002Fscan.py`](tools\u002Fscan.py) | Reads the phone, detects the brand, matches all 537 database entries, and writes a plan with each line's consequence beside it. `--from-list` scores a saved package list with no phone attached; it cannot tell system apps from regular ones, so that check happens in `debloat.sh`. |\n| [`tools\u002Fpreset.py`](tools\u002Fpreset.py) | Saves a curated list as a named, portable profile: apply it to a second phone, pull it back after a factory reset, export it as JSON, share it. It stores package names only and resolves every rating from the database each time, so a profile never carries stale ratings. On import and on apply, every package goes back through the guard, and a file with a malformed package name is rejected whole rather than applied in part. `--from-device` saves what a phone debloated by hand already has uninstalled. |\n| [`scripts\u002Fdebloat.sh`](scripts\u002Fdebloat.sh) | Applies a plan through the guard, in health-checked batches of five, verifying each removal and writing the restore record before the first one. See [How the scripts protect your phone](#how-the-scripts-protect-your-phone). |\n| [`scripts\u002Frestore.sh`](scripts\u002Frestore.sh) | Puts a session back, all of it or one package or every session on record, and verifies each one. |\n| [`tools\u002Freport.py`](tools\u002Freport.py) | Compares the two snapshots and the two package lists. Spots packages that came back on their own, and says which numbers are real. |\n| [`tools\u002Fcheck.py`](tools\u002Fcheck.py) | Compares the phone with the plan that was applied, for what a system update put back. `--fix` re-applies it; `--quiet` is an exit code for a scheduled job. |\n| [`tools\u002Fvalidate_db.py`](tools\u002Fvalidate_db.py) | Database integrity: the schema, duplicates, ratings that disagree across brands, and the one that matters, anything on the never-touch list rated as removable. |\n\nYour own plans can live outside the repository: plan paths are relative to the directory you run\nfrom, and absolute paths work too.\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>Windows (PowerShell)\u003C\u002Fb>\u003C\u002Fsummary>\n\nEvery device script has a PowerShell twin next to it. The Python tools are the same everywhere.\n\n```powershell\npowershell -ExecutionPolicy Bypass -File scripts\\setup_adb.ps1 -Persist\npowershell -ExecutionPolicy Bypass -File scripts\\connect.ps1\npowershell -ExecutionPolicy Bypass -File scripts\\snapshot.ps1 before\n\npython tools\\scan.py --plan\n\npowershell -ExecutionPolicy Bypass -File scripts\\debloat.ps1 backups\\\u003Csession>\\plan.txt -DryRun\npowershell -ExecutionPolicy Bypass -File scripts\\debloat.ps1 backups\\\u003Csession>\\plan.txt\n\nadb reboot; adb wait-for-device\npowershell -ExecutionPolicy Bypass -File scripts\\snapshot.ps1 after\npython tools\\report.py\n```\n\nRestore with `scripts\\restore.ps1`, which takes `-Package \u003Cname>` for one app, `-List` to see what\nis on record, or `-All` for every session.\n\nThese are written for Windows PowerShell 5.1, so they also work on PowerShell 7. They are plain\nASCII on purpose: 5.1 reads a script without a byte-order mark as ANSI, and one emoji in the file\nbreaks the parse before a single line runs.\n\n\u003C\u002Fdetails>\n\n\u003Ca id=\"how-the-scripts-protect-your-phone\">\u003C\u002Fa>\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>How the scripts protect your phone\u003C\u002Fb>\u003C\u002Fsummary>\n\nFour checks stand between a plan and a package, and a package has to clear all four.\n\n**1. The never-touch list.** [`database\u002Fessential_packages.json`](database\u002Fessential_packages.json)\nholds 207 entries covering phone calls, SMS, emergency alerts, SIM services, Wi-Fi, Bluetooth,\ncamera, keyboard, launcher, Settings, Play Store, Play Services, keystore, system UI, the setup\nwizard and permission management. A package on it is refused. There is no flag to override this,\nand the scripts refuse to run at all if the file is missing or parses as empty, rather than\nproceeding without a guard.\n\n**2. The protected-name pattern.** An unusual ROM has packages no list has seen. Anything whose\nname matches a protected category is also refused: `systemui`, `telephony`, `dialer`, `incallui`,\n`inputmethod`, `keystore`, `launcher`, `setupwizard` and twenty more, plus build-time\ninfrastructure such as runtime resource overlays, framework resources, GPU drivers and graphics\nlayers. A OnePlus 10 Pro carries more than thirty of those, none of them an app anyone installed.\n\n`CYM_ALLOW_PROTECTED=1` relaxes this one check in `debloat.sh` and `debloat.ps1`, for the rare ROM\nthat names a theme store `...launcher.themes`. The scan still leaves such a package out of the\nplan, so add its line by hand. It does not relax the never-touch list.\n\nThe pattern is written out in four files on purpose: [`scripts\u002Flib.sh`](scripts\u002Flib.sh),\n[`scripts\u002Flib.ps1`](scripts\u002Flib.ps1), [`tools\u002Fcym.py`](tools\u002Fcym.py) and the app's `Guard.kt`. No\nsingle file being wrong or missing can disarm the guard, and `tools\u002Fsync_guard.py` checks that they\nagree.\n\n**3. What the phone is using right now.** `tools\u002Fscan.py` asks the phone which launcher owns HOME\nand which keyboard is the active input method, and drops both from the plan whatever the database\nsays about them. `scripts\u002Fdebloat.sh` checks that something answers HOME before it starts, warning\nif it cannot confirm it, and again after it finishes, reinstalling a launcher straight away if\nnothing does.\n\n**4. System apps only.** A package that is not a system app was installed by the owner, or placed\nin `\u002Fdata` by the manufacturer as an ordinary app. There is no system copy underneath it, so\n`pm uninstall -k --user 0` would delete the only one and `cmd package install-existing` could not\nbring it back. `tools\u002Fscan.py` lists those and leaves them out of the plan, and\n`scripts\u002Fdebloat.sh` reports them as \"Left alone\" if a hand-written plan names one.\n\n**While it runs:** batches of five with a health check between each, which sends HOME and then\nconfirms the package service still answers, because a phone that cannot run `cmd package` cannot be\nrestored either; an automatic attempt to put the last batch back if that check fails; and a stop\nafter three consecutive failures, since that means something systemic changed rather than one\nawkward package.\n\n`python tools\u002Fvalidate_db.py` enforces the consistency these rely on. An entry on the never-touch\nlist rated anything but `Unsafe` is an error rather than a warning, because a tool that looked it\nup and saw `Expert` would offer to remove what the other guard refuses.\n\n\u003C\u002Fdetails>\n\n## What a scan looks like\n\nOutput from a OnePlus 10 Pro running OxygenOS 16 with 439 packages installed, shortened, from an\nearlier version of the tools. Today's scan also reports regular apps it leaves alone and packages\nalready removed before the scan. Nothing is changed at this stage:\n\n```\n$ python tools\u002Fscan.py --plan\n\n Device : OnePlus NE2213 (OP516FL1), Android 16 \u002F API 36\n Installed packages : 439\n Already disabled   : 3\n Brand profile      : OnePlus  (OxygenOS \u002F ColorOS)\n Plan level         : recommended\n\nWhat the database recognises on this phone\n  Recommended    28   safe for everyone\n  Advanced       71   safe for most, may touch minor OEM features\n  Expert         17   power users, have replacements ready\n  Unsafe         15   never removed, shown so you know they were seen\n  Unknown       213   not in the database, never planned automatically\n\nThe plan: 28 package(s) at level 'recommended'\n\n  Telemetry and analytics (7)\n    * com.oplus.stdid\n      Standard ID Service - Serves a tracking identifier to preinstalled apps\n      If removed: Preinstalled apps lose a device-level advertising identifier.\n    ...\n\n  Partner and third-party preloads (4)\n    * com.teamviewer.quicksupport.market\n      TeamViewer QuickSupport - Lets a helper view your screen remotely\n      If removed: Remote support sessions stop being possible. Nothing else changes.\n    ...\n\n  Advertising (1)\n    * com.heytap.pictorial\n      Lock Screen Magazine - Pushes sponsored wallpapers to the lock screen\n      If removed: The lock screen stops rotating sponsored wallpapers.\n\nKept back: 112 package(s)\n  x android                                        on the never-touch list\n  x com.android.cellbroadcastreceiver              on the never-touch list\n  x com.android.launcher                           on the never-touch list\n  x com.oplus.securitykeyboard                     on the never-touch list\n  ...\n```\n\nEvery line says what you lose, not just what goes. Then the dry run, which also changes nothing on\nthe phone:\n\n```\n$ bash scripts\u002Fdebloat.sh backups\u002F\u003Csession>\u002Fplan.txt --dry-run\n\n In the plan        : 28\n Will be processed  : 28\n Refused (protected): 0\n\n Method  : pm uninstall -k --user 0 (data kept, system copy kept)\n Batches : 28 packages, 5 per batch, health check after each\n\nBatch 1 of 6\n  [ 1\u002F28] com.heytap.pictorial                             would uninstall\n  [ 2\u002F28] com.coloros.compass2                             would uninstall\n  ...\n\n DRY RUN - nothing on the phone was changed\n```\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>And the report it writes at the end\u003C\u002Fb>\u003C\u002Fsummary>\n\n`tools\u002Freport.py` compares the two snapshots and writes `report.md`, `report.json` and\n`report.txt`. The figures below are an example, not a measurement of the phone above, and show six\nof the twelve rows:\n\n```\n$ python tools\u002Freport.py\n\nMeasured\n                                       before         after            change\n  Installed packages                      412           365        -47 (-11%)\n  RAM available                      2,539 MB      3,271 MB       +732 (+29%)\n  Running services                         96            74        -22 (-23%)\n  Apps with location access                31            24         -7 (-23%)\n  Apps with microphone access              22            16         -6 (-27%)\n  Apps with contacts access                26            19         -7 (-27%)\n\nHonest reading of these numbers\n  47 fewer packages is the one number that is exactly true.\n  More free RAM is real, but Android fills free RAM with cache by\n  design, so this figure drifts on its own. Measure it twice.\n  Fewer apps holding location, camera, mic and contacts is the\n  most meaningful privacy change here.\n  Battery life cannot be measured in minutes. Fewer background\n  services means less wakeup work, but judge it over a few days.\n```\n\nThat last section is printed by the tool, not written by hand.\n\n\u003C\u002Fdetails>\n\n## What you get\n\nA phone that stops working against you.\n\n| Gone | What that means in practice |\n|---|---|\n| **Lock screen advertising** | Xiaomi's wallpaper carousel, the vivo and OPPO magazine, Glance. The lock screen stops selling you things. |\n| **Advertising inside system apps** | MIUI's MSA framework, OPPO's ad service, the sponsored cards in the swipe-right panel. |\n| **Advertising notifications** | On Tecno, Infinix and itel phones most of it comes from one game portal, `net.bat.store`, and the preinstalled browsers. |\n| **Telemetry** | Analytics, usage reporting, diagnostic uploads and crash telemetry going to the manufacturer. |\n| **Duplicated apps** | The manufacturer's browser, gallery, music player, file manager, notes and calculator that you never open because you already have better ones. |\n| **Partner preloads** | Facebook's background services, preinstalled games, shopping apps, and the installer that keeps adding more of them, where the manufacturer installed them as system apps. Ones dropped in as ordinary apps are listed for you to uninstall from the home screen. |\n| **Carrier apps** | Account apps, support apps, and the folder of sponsored apps on the home screen. |\n\nAnd a measurement of what changed rather than a claim about it:\n\n| Measured exactly | Measured, but noisy | Not claimed at all |\n|---|---|---|\n| Packages removed | Free RAM, because Android fills it with cache by design | Battery life in hours |\n| Apps holding location, camera, microphone, contacts and SMS permissions | Running services and processes | Any multiple of \"faster\" |\n| Which advertising is gone | Free storage, which barely moves because the system copy stays | A benchmark score |\n\nThe report's closing \"Honest reading of these numbers\" is printed by the tool rather than written\nby hand, so it cannot drift into marketing: it calls the package count the one exact number, warns\nthat free RAM and the process count drift, and says battery life cannot be measured in minutes.\n\n## Supported phones\n\nAnything running **Android 7 or newer** with developer options available; the app needs Android 8.\nThe database covers these brand families by name:\n\n| Brand | Packages | OS | Main targets |\n|---|---:|---|---|\n| **Samsung** | 92 | One UI | Bixby, AR Zone, AR Emoji, Samsung Free, Galaxy Store |\n| **OnePlus** | 81 | OxygenOS | Shelf, HeyTap remnants, ColorOS telemetry, factory test tools |\n| **Xiaomi, Redmi, POCO** | 62 | MIUI, HyperOS | MSA ad framework, wallpaper carousel, App Vault, analytics |\n| **Google, Pixel** | 53 | Stock Android | Unused Google apps, Android System Intelligence, Chrome |\n| **OPPO** | 63 | ColorOS | HeyTap, lock screen magazine, ad service, Theme Store |\n| **vivo, iQOO** | 36 | Funtouch OS, OriginOS | Jovi, V-Appstore, magazine, EasyShare |\n| **Motorola, Lenovo** | 19 | Near-stock | Moto Genie, Gametime, Device Help, Moto Voice |\n| **Huawei, Honor** | 19 | EMUI, MagicOS | Huawei Video, Huawei and Honor Reader, SkyTone, AppGallery, Honor App Market |\n| **realme** | 13 | realme UI | HeyTap, realme Store, Game Space |\n| **ASUS** | 12 | ZenUI | Game Center, log uploader, duplicated apps |\n| **Tecno, Infinix, itel** | 9 | HiOS, XOS | Game portal, Phoenix Browser, Carlcare |\n| **Nothing** | 1 | Nothing OS | Very little. Nothing OS is already clean |\n| **Carrier** | 21 | any | Verizon, T-Mobile, AT&T, Jio, Airtel, Vodafone |\n| **Universal** | 69 | any | Facebook services, Microsoft Office, preinstalled games and shopping |\n\nThe rows add up to 550 rather than 537 because a few packages shared between brands, such as the\nHeyTap apps, are listed under each of them.\n\n**Your brand not listed?** The universal, Google and carrier entries still apply. The scan counts\nevery package it does not recognise, lists the ones whose names look suspicious with the reason,\nand prints them all with `--show-unknown`: evidence for you to judge, never something it removes on\nits own. Add your brand afterwards and the next person with your phone skips that step:\n[CONTRIBUTING.md](CONTRIBUTING.md).\n\n**Not supported:** iPhones, and any phone where an employer's management profile has removed\ndeveloper options. On a work-managed phone, don't: see [Safety](#safety).\n\n## Safety\n\n| | |\n|---|---|\n| **Nothing is deleted** | `pm uninstall -k --user 0` removes an app for your user profile. `-k` keeps its data, and the copy on the read-only system partition is untouched. `--disable` is more conservative still: `pm disable-user` removes nothing at all. |\n| **System apps only** | An app that is not a system app, one you installed or one the manufacturer dropped into `\u002Fdata` as an ordinary app, has no system copy to fall back on, so the tools never touch it. Uninstall those from the home screen like any other app. |\n| **No root, ever** | No `su`, no exploit, no bootloader unlock, no system partition write, no boot image touched. This cannot brick a phone. |\n| **The restore record comes first** | Written before the first removal and appended as each package comes off. If the run dies halfway, the record already covers everything up to that point. |\n| **A factory reset is the floor** | It always works, and every system package comes back, because none of them were ever deleted. |\n| **Nothing leaves your computer** | No telemetry and no API calls, and the app has no internet permission. The only network use is installing adb when it is missing: through Homebrew or your package manager where there is one, otherwise from `dl.google.com`. |\n| **Never touched** | Phone and dialer · SMS and MMS · emergency alerts · SIM services · Wi-Fi · Bluetooth · camera · keyboard · home launcher · Settings · Play Store · Play Services · keystore and security · system UI · setup wizard · permission management |\n\nEvery package carries a rating, and you choose how far a plan goes:\n\n| Rating | Means | Enters a plan at |\n|---|---|---|\n| **Recommended** | No side effects for anyone. Advertising, telemetry, dead weight. | `--level recommended` and up |\n| **Advanced** | Safe for most people. A minor manufacturer feature goes with it. | `--level advanced` and up |\n| **Expert** | An ecosystem feature goes with it, or data has to be moved first. | `--level expert` only |\n| **Unsafe** | Never removed. Listed so a scan can report that it saw it. | never |\n\n**Two cases where you should not do this.** A phone managed by your employer, or with a work\nprofile: removing Device Policy components breaks the management and may breach their policy.\nAndroid Device Policy is rated Expert, and Samsung's Knox work-profile container is on the\nnever-touch list. And a phone under warranty where you are about to make a claim: changing a\nphone's software can affect support.\n\n**Two things a restore cannot undo**, both rated Expert and both saying so in the database: data\nleft inside Samsung's Secure Folder when you remove it, and NFC transit or access cards provisioned\nto a manufacturer's wallet, such as Mi Pay transit cards. Move those out first. The full list is in\n[docs\u002FRESTORE.md](docs\u002FRESTORE.md#what-a-restore-cannot-undo).\n\n## Restoring your phone\n\nKeep the session. One line puts the phone back the way it was:\n\n```bash\nbash scripts\u002Frestore.sh                            # the newest session\nbash scripts\u002Frestore.sh --package com.foo.bar      # one app\nbash scripts\u002Frestore.sh --list                     # every session on record\nbash scripts\u002Frestore.sh --all                      # all of them, oldest first\n```\n\n| What | How |\n|---|---|\n| **A record comes first** | Before `scripts\u002Fdebloat.sh` removes anything it creates the session record under `backups\u002F`, and each package is added the moment it comes off. |\n| **It verifies** | A package counts as restored only when it is installed for your user and not disabled, rather than because the command returned success. |\n| **It reads the record** | Not a generated script, so it still works if that was edited or lost. |\n| **It tries both routes** | A package may have been uninstalled or disabled, and running the wrong undo is a no-op. |\n| **No computer?** | The phone's own Settings → Apps page, with system apps shown, can re-enable a disabled app, and often reinstall a removed one. |\n| **Factory reset** | The guaranteed floor; see [Safety](#safety). |\n\n**More:** [docs\u002FRESTORE.md](docs\u002FRESTORE.md) has what the record holds, why this is reversible at\nall, what to do when a package will not come back, and the handful of things a restore genuinely\ncannot undo.\n\n## After a system update\n\nA system update installs a fresh system image over the cleaned-up one: the packages you removed\ncome back, disabled ones are often re-enabled, and new preloads appear that no plan mentions. This\nis expected rather than a failure. Compare the phone with the plan you applied, and `--fix` puts it\nback:\n\n```bash\npython tools\u002Fcheck.py           # what came back\npython tools\u002Fcheck.py --fix     # re-apply the same plan\npython tools\u002Fcheck.py --quiet   # exit code only, for a scheduled job\n```\n\n`--fix` goes through the same guard, so a hand-edited plan still cannot reach a protected package.\nRun against a session, its result is appended to that session's log with the new patch level, so a\nphone's history stays in one place.\n\nA few database entries remove the manufacturer's updater, among them Motorola's\n`com.motorola.ccc.ota` and OnePlus's `com.oplus.ota`, plus `com.oplus.sau`, which updates the\npreinstalled apps. They are rated Expert, they say so in their `if_removed` text, and they only\nenter a plan at `--level expert`. Removing one means the phone stops receiving security patches,\nnot just features.\n\n**More:** [docs\u002FFIRMWARE.md](docs\u002FFIRMWARE.md) has the exit codes, a weekly check, and finding the\nnew preloads an update added that no plan mentions.\n\n## When something goes wrong\n\nThe full list of things that bit us is in [docs\u002FTROUBLESHOOTING.md](docs\u002FTROUBLESHOOTING.md). The\nthree that matter most:\n\n- **The phone shows as `unauthorized`.** The \"Allow USB debugging?\" dialog has not been accepted,\n  and it cannot appear while the screen is locked. Unlock it, replug, and watch the screen. If the\n  dialog never comes, use Developer options → **Revoke USB debugging authorizations** and try again.\n- **Notifications from one app stopped.** A manufacturer push service went with the removal:\n  `com.heytap.mcs` on OPPO and other ColorOS-based phones that ship it, `com.vivo.pushservice` on\n  vivo. Xiaomi's `com.xiaomi.xmsf` is on the never-touch list, so it is never removed. Apps that use\n  Firebase are unaffected, which is why this only ever hits preinstalled ones. Put the one package\n  back with `bash scripts\u002Frestore.sh --package com.heytap.mcs`.\n- **`Failure [DELETE_FAILED_INTERNAL_ERROR]`.** The ROM is refusing. Usually the app is a device\n  administrator, which you turn off in Settings → Security first, or a work profile owns it. Try\n  `--disable` instead, which some ROMs accept where `uninstall` is blocked.\n\nNothing here can brick a phone, and `adb reboot` fixes most of it.\n\n## Questions people ask\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>Will this brick my phone?\u003C\u002Fb>\u003C\u002Fsummary>\n\nNo, and the reason is structural rather than a promise. Nothing is deleted: `pm uninstall -k\n--user 0` removes an app for your user profile only, and the copy on the read-only system partition\nstays exactly where it was. No root is used, no partition is written, and no boot image is touched.\n\nWorst realistic case: the phone misbehaves, you reboot it, and if that is not enough you run the\nrestore script. If the phone will not talk to a computer at all, its own Settings → Apps page, with\nsystem apps shown, can re-enable a disabled app and often reinstall a removed one. A factory reset\nis a guaranteed floor and brings back every system package, because none were ever removed from the\nsystem image.\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>Do I need root?\u003C\u002Fb>\u003C\u002Fsummary>\n\nNo, and this project will not use it. Everything works through switches Android offers the owner of\nthe device: developer options, ADB debugging, and `pm disable-user` or `pm uninstall --user 0`, the\nsame mechanism as Settings → Apps → Disable, driven from a shell instead of a screen.\n\nRooting would let you delete packages properly, and it would also void warranties, trip hardware\nsecurity keys such as Samsung Knox, break banking apps, and make a mistake permanent. That trade is\nnot worth it for removing Bixby.\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>Will my phone actually be faster?\u003C\u002Fb>\u003C\u002Fsummary>\n\nSome of it is real and some of it is not, and the report separates the two rather than flattering\nyou.\n\nReal and measured: fewer packages, fewer apps holding your location, camera, microphone, contacts\nand SMS permissions, and the specific advertising that is now gone. You notice the last one the same\nday. Fewer running services is real too, but noisy: the after snapshot is taken on a freshly booted\nphone.\n\nReal but slow: battery life. Fewer background services means less wakeup work, but it cannot be\nmeasured in an hour. Judge it over a few days.\n\nMostly not real: free RAM, as a number. Android fills spare RAM with cache on purpose, so the\nfigure moves on its own, and it often drops right after a reboot while caches warm. Storage barely\nchanges, because the system copy of every removed app is still there, which is exactly why all of\nthis is reversible.\n\nAnyone promising a multiple of \"faster\" is selling something.\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>Will banking and payment apps still work?\u003C\u002Fb>\u003C\u002Fsummary>\n\nNormally yes. Removing apps for your user profile does not change the system image and does not\ntrip Play Integrity by itself. What can cause trouble is removing Samsung Knox components, rated\nExpert or Unsafe here, or Play Services, which the guard's name pattern refuses outright. Neither\nis ever in a plan at the default `recommended` level.\n\nIf a banking app starts refusing after a run, restore the session and re-run at\n`--level recommended`.\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>What about my work phone?\u003C\u002Fb>\u003C\u002Fsummary>\n\nDon't. A phone managed by your employer has a device policy controller that this would interfere\nwith, removing Device Policy components breaks the management, and it may be against the policy you\nagreed to. A personal phone with a work profile gets the same treatment: the prompt asks about both\nand offers only the most conservative level when the answer is yes. The tools only ever act on your\nown user (`--user 0`), never on the work profile.\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>Will a system update undo everything?\u003C\u002Fb>\u003C\u002Fsummary>\n\nMostly, yes. A system update reinstalls the system image over the cleaned-up one. That is expected\nand is not a failure.\n\n`python tools\u002Fcheck.py` tells you exactly what came back, and `--fix` re-applies the same plan in\none command. See [After a system update](#after-a-system-update).\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>Can I speed up the animations too?\u003C\u002Fb>\u003C\u002Fsummary>\n\nYes, if you ask during the run. It is a display setting rather than a speed-up: the phone is not\nfaster, it just stops waiting.\n\n```bash\nadb shell settings put global window_animation_scale 0.5\nadb shell settings put global transition_animation_scale 0.5\nadb shell settings put global animator_duration_scale 0.5\n```\n\nThe before snapshot records your original values under **Animation scales**. The restore script\ndoes not revert these, because they are not package changes, so put them back by hand with the\nrecorded values; the stock value is `1.0`.\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>I already debloated my phone by hand. Is there anything here for me?\u003C\u002Fb>\u003C\u002Fsummary>\n\nYes. `pm list packages` does not list what you uninstalled, so you have no record of what came\noff. `tools\u002Fscan.py` shows an **Already removed** count, and\n\n```bash\npython tools\u002Fpreset.py save my-phone --from-device\npython tools\u002Fpreset.py show my-phone\n```\n\nturns those removals into a named preset: every system package uninstalled for your user, with\nthe database's name and `if_removed` line beside each one, and the ones the database does not know\nmarked as such. Regular apps you uninstalled are left out, because they have no system copy and this\nproject never touches them. Add `--include-disabled` to take the system apps you switched off as\nwell.\n\nTo use it on a second phone, `python tools\u002Fpreset.py apply my-phone --device --out plan.txt` writes\na plan for that phone, which you then run through `scripts\u002Fdebloat.sh plan.txt --dry-run` as usual.\nOr share the preset.\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>Is there an app that does this on the phone itself?\u003C\u002Fb>\u003C\u002Fsummary>\n\nYes, and this project has one: [`CleanYourMobile.apk`](CleanYourMobile.apk), described in\n[The Android app](#the-android-app). It is a reference implementation, though, and the command-line\nscripts are the main, better-tested path.\n\nRemoving a system app needs shell-level privileges. An app on the phone gets them one of two ways:\nroot, or [Shizuku](https:\u002F\u002Fshizuku.rikka.app\u002F), which on **Android 11 and newer** starts from the\nphone's own Wireless debugging with no computer and no second device involved. The catch is that\nAndroid clears it on every reboot, so you restart Shizuku each time you restart the phone unless\nyou are rooted.\n\nFor everyday use, [Canta](https:\u002F\u002Fgithub.com\u002Fsamolego\u002FCanta) is the more mature app, and it also\nhas a web version that drives a phone over USB from a Chromium browser with nothing installed at\nall. [Universal Android Debloater](https:\u002F\u002Fgithub.com\u002FUniversal-Debloater-Alliance\u002Funiversal-android-debloater-next-generation)\nis the desktop equivalent. Both are independent projects, not affiliated with this one, and this\ndatabase credits their lists as a source.\n\nSee [how they compare](#how-does-this-compare-to-canta-and-shizuku) for which to pick.\n\n\u003C\u002Fdetails>\n\n\u003Ca id=\"how-does-this-compare-to-canta-and-shizuku\">\u003C\u002Fa>\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>How does this compare to Canta and Shizuku?\u003C\u002Fb>\u003C\u002Fsummary>\n\nThey solve the same problem from opposite ends, and for a lot of people Canta is the better\nanswer. [Canta](https:\u002F\u002Fgithub.com\u002Fsamolego\u002FCanta) is an Android app (LGPL-3.0, Android 9+) that\nuses Shizuku for shell privileges and runs on the phone. This is mainly a scripted toolkit that\ndrives ADB from a computer, with a reference Android app that runs the same database and guard on\nthe phone.\n\n| | Canta | CleanYourMobile |\n|---|---|---|\n| **Runs on** | The phone itself, via Shizuku. Also a web version over USB | A computer over ADB, or the phone via Shizuku with the reference app |\n| **Needs a computer** | No, on Android 11+ | For the scripts, yes. For the app, no on Android 11+ |\n| **Interface** | A GUI you tap through | A CLI, a coding assistant driving it, or the reference app |\n| **Setup** | Install the app, start Shizuku, restart it after each reboot | Scripts: enable USB debugging, clone the repo. App: install it and start Shizuku |\n| **Package data** | The Universal Debloat List | This repository's own database, with an `if_removed` line per package |\n| **Hard refusal of critical packages** | No. It surfaces recommendations and lets you decide — its own README warns that removing critical apps can bootloop the phone | Yes. 207 never-touch entries with no override, plus a name pattern, a live launcher and keyboard check, and system apps only |\n| **Batching and health checks** | No | In the scripts: five at a time, package service verified between batches, stops after three consecutive failures. Present in the app but not yet tested at scale |\n| **Before and after measurement** | No | RAM, storage, services, and permission-holder counts, with the noisy figures labelled as noisy |\n| **Post-update drift** | Detects apps you previously removed | `tools\u002Fcheck.py` diffs against the applied plan and `--fix` re-applies it |\n| **Maturity** | Thousands of users, on F-Droid and Play | Much newer and far less battle-tested |\n\n**Pick Canta if** you want this done in ten minutes with no computer, you are comfortable deciding\nfor yourself what is safe, or you are doing one phone once.\n\n**Pick this if** you want to read what each removal costs before approving it, you want the\nguard to refuse rather than warn, or you want a measured before-and-after and a restore record you\ncan replay.\n\nThey are not really competitors. Canta is more accessible; this is more cautious and more\ninstrumented. Using Canta on your own phone and this on a relative's would be a perfectly sensible\ncombination.\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>How is this different from CleanYourTV?\u003C\u002Fb>\u003C\u002Fsummary>\n\n[CleanYourTV](https:\u002F\u002Fgithub.com\u002FGathin23\u002Fcleanyourtv) does this for Android TV, and installing a\nreplacement launcher is the main event there. This is the same idea pointed at phones, where the\nproblem is different: no launcher replacement is needed, the brands and packages are entirely\ndifferent, and the cost of removing the wrong thing is much higher. A TV with no dialer is fine; a\nphone with no dialer is not.\n\nSo the emphasis here is the guard and the database rather than a new home screen. Credit where it is\ndue: CleanYourTV is why this exists.\n\n\u003C\u002Fdetails>\n\n## Project layout\n\n```\nClean-Your-Mobile\u002F\n├── PROMPT.md                     # paste this to your coding assistant\n├── AGENTS.md                     # the rules an agent must follow, binding\n├── CONTRIBUTING.md               # how to add packages and brand profiles\n├── CODE_OF_CONDUCT.md            # be decent\n├── SECURITY.md                   # what counts as a vulnerability, and how to report it\n├── .github\u002F                      # issue templates and the pull request checklist\n├── database\u002F\n│   ├── debloat_db.json           # 537 packages: what they are, what you lose\n│   ├── essential_packages.json   # 207 never-touch entries, no override\n│   ├── brand_profiles.json       # 13 brand profiles and their quirks\n│   └── schema\u002F                   # JSON Schemas for debloat_db and essential_packages\n├── scripts\u002F                      # anything that talks to the phone\n│   ├── lib.sh \u002F lib.ps1          # the adb wrapper, sessions, and the guard\n│   ├── setup_adb.sh \u002F .ps1\n│   ├── connect.sh \u002F .ps1\n│   ├── snapshot.sh \u002F .ps1\n│   ├── debloat.sh \u002F .ps1\n│   └── restore.sh \u002F .ps1\n├── tools\u002F                        # cross-platform Python, standard library only\n│   ├── cym.py                    # shared: adb, database, sessions\n│   ├── explain.py                # look up one package, no phone needed\n│   ├── preset.py                 # portable, shareable removal profiles\n│   ├── scan.py                   # scan and build a plan\n│   ├── report.py                 # before and after\n│   ├── check.py                  # what a system update put back\n│   ├── validate_db.py            # database integrity\n│   └── sync_guard.py             # keeps the four copies of the guard in step\n├── presets\u002F                      # shared removal profiles, read by preset.py\n├── CleanYourMobile.apk           # the Android app, built and ready to install\n├── android\u002F                      # its source: Kotlin, Shizuku, the 4th guard copy\n├── docs\u002F\n│   ├── TROUBLESHOOTING.md        # every failure mode and how to get out of it\n│   ├── DATABASE.md               # the schema, the safety ratings, the guard\n│   ├── RESTORE.md                # why this is reversible, and the four ways back\n│   ├── FIRMWARE.md               # system updates that undo your work\n│   ├── banner.png                # the banner at the top of this page\n│   └── app\u002F                      # screenshots of the Android app\n├── assets\u002F                       # banner.svg, an earlier banner the README no longer uses\n└── backups\u002F                      # one directory per session, created on your computer\n```\n\n## Contributing\n\nThe most useful contribution is a package from your phone that the database does not know yet, so\nthe next person with that model does not have to rediscover it.\n[CONTRIBUTING.md](CONTRIBUTING.md) has the format and the testing we ask for.\nContributing through a coding agent? [AGENTS.md](AGENTS.md) gives it the same rules.\n\n| How to help | What it means | Start with |\n|---|---|---|\n| **A package entry** | The most useful one. A scan that says \"not in the database\" is a gap you can close. | [Package issue](..\u002F..\u002Fissues\u002Fnew?template=package.yml) |\n| **A correction** | A rating that is too generous, or an `if_removed` that turned out to be wrong. **Worth more than new entries.** | [Package issue](..\u002F..\u002Fissues\u002Fnew?template=package.yml) |\n| **A brand profile** | Sony, ZTE, Nubia, Meizu, Sharp, Lava, anything nobody has described yet. | [Brand issue](..\u002F..\u002Fissues\u002Fnew?template=brand.yml) |\n| **A `special_notes` paragraph** | The thing you learned the hard way about your brand. No tool can derive it. | [Brand issue](..\u002F..\u002Fissues\u002Fnew?template=brand.yml) |\n| **A troubleshooting entry** | A failure you hit and how you got out of it. | [Bug report](..\u002F..\u002Fissues\u002Fnew?template=bug.yml) |\n\nThe one thing we ask: test it on a phone you own, then use that phone for a day. A package that\nbreaks something subtle, such as notifications from one app, a camera mode, or emergency alerts,\nwill not show up in the first five minutes. And `python tools\u002Fvalidate_db.py` has to pass.\n\n```bash\npython tools\u002Fvalidate_db.py     # database integrity\npython tools\u002Fsync_guard.py      # all four copies of the guard still agree\nbash -n scripts\u002F*.sh            # shell syntax\n```\n\nThe [pull request template](.github\u002FPULL_REQUEST_TEMPLATE.md) lists these, plus the four rules from\n[AGENTS.md](AGENTS.md) that a change to the tools cannot break. Be decent while you are here:\n[CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md).\n\n## Contact\n\n| For | Where |\n|---|---|\n| **My phone is misbehaving right now** | [docs\u002FTROUBLESHOOTING.md](docs\u002FTROUBLESHOOTING.md) first — nothing is deleted, so a reboot fixes most of it |\n| **Is it safe to remove X?** | `python tools\u002Fexplain.py \u003Cpackage>` first, then a [Package issue](..\u002F..\u002Fissues\u002Fnew?template=package.yml) |\n| **A package to add or correct** | [Package issue](..\u002F..\u002Fissues\u002Fnew?template=package.yml) |\n| **A brand with no profile** | [Brand issue](..\u002F..\u002Fissues\u002Fnew?template=brand.yml) |\n| **Something went wrong** | [Bug report](..\u002F..\u002Fissues\u002Fnew?template=bug.yml) |\n| **Security issues** | Privately, through the Security tab. See [`SECURITY.md`](SECURITY.md) |\n\n## Legal\n\n- CleanYourMobile is an independent open-source project. It is not affiliated with, endorsed by or\n  sponsored by any phone manufacturer, carrier or platform. Brand and model names are used only to\n  say which phone an entry applies to, and remain the trademarks of their owners.\n- It works only through switches the phone offers its owner: developer options, ADB debugging, and\n  Android's own `pm disable-user` and `pm uninstall --user 0`, the same switch as\n  Settings → Apps → Disable. It does not root the phone, unlock a bootloader, flash firmware, or\n  bypass any lock, DRM or copy protection. This repository contains no manufacturer software or\n  firmware; the only APK is this project's own app.\n- Nothing is deleted, and `scripts\u002Frestore.sh` puts it back. You run it on a phone you own, at your\n  own risk, and changing a phone's software may affect its warranty or support.\n- Everything here is provided as is, without warranty of any kind, under the MIT licence below.\n\n## Licence\n\nMIT, see [`LICENSE`](LICENSE). Copyright 2026 [0xgh0stri13y](https:\u002F\u002Fgithub.com\u002F0xgh0stri13y) and\nClean Your Mobile contributors.\n\nPackage ratings draw on, and credit, the community lists that came first:\n[Universal Android Debloater](https:\u002F\u002Fgithub.com\u002FUniversal-Debloater-Alliance\u002Funiversal-android-debloater-next-generation),\n[MuntashirAkon\u002Fandroid-debloat-list](https:\u002F\u002Fgithub.com\u002FMuntashirAkon\u002Fandroid-debloat-list) and\n[Canta](https:\u002F\u002Fgithub.com\u002Fsamolego\u002FCanta). Where they disagree, this database takes the more\ncautious rating.\n\nInspired by [CleanYourTV](https:\u002F\u002Fgithub.com\u002FGathin23\u002Fcleanyourtv), rebuilt from the ground up for\nphones.\n","这是一款面向Android设备的免Root去臃肿工具，支持通过电脑（USB\u002FWi-Fi）或手机端Shizuku框架直接运行，安全移除预装广告、追踪服务、遥测组件及冗余厂商应用。核心采用adb命令实现包级禁用\u002F卸载（非系统分区写入），所有操作可一键还原，不修改只读分区，具备品牌适配能力（覆盖Pixel、Samsung、Xiaomi、OnePlus等15个厂商家族）。适用于注重隐私保护、希望精简系统但不愿获取Root权限的普通用户和进阶安卓使用者。","2026-11-24 04:51:38","CREATED_QUERY"]