Skip to content

About

Your phone, minus the bloat. Debloat right on your phone via the Shizuku app (no PC needed) or from a computer over Wi-Fi/USB. Strip ads, bloatware, and telemetry—zero root, fully reversible.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

56 stars

Watchers

1 watching

Forks

Repository files navigation

CleanYourMobile. Your phone, minus the bloat. Debloat any Android phone over Wi-Fi. No root, fully reversible.

Your phone, minus the bloat.
Strip the ads, trackers, telemetry and preinstalled junk from any Android phone.
Now Shizuku compatible — run it on the phone itself with the app, or from a computer over USB or Wi-Fi.
No root. Nothing permanently deleted. One-line restore.

Stars Forks Contributors Issues MIT licence No root required Shizuku compatible Download the APK

537 packages across 15 brand families · 207 never-touch entries · nothing to install beyond Python and adb

About

CleanYourMobile is a safety-first debloater for Android phones. It removes carrier bloat, lock screen ad carousels (Glance, magazine feeds), vendor ad services (MIUI MSA), background telemetry and duplicated manufacturer apps, from a computer over USB or Wi-Fi, or from the phone itself through Shizuku. Nothing is touched until you approve the plan.

Inspired by CleanYourTV, it brings the same transparent, reversible approach to phones:

  • No root — standard Android Debug Bridge (adb) commands only: pm uninstall -k --user 0 and pm disable-user --user 0.
  • Nothing permanently deleted — the read-only system partition is never written. A reboot or the restore script undoes a mistake, and a factory reset brings back every system package.
  • An audited offline database — 537 packages across 15 brand families, each saying what it does and what breaks if it goes.
  • A four-layer guard — 207 never-touch entries (phone calls, SMS, emergency alerts, SIM, camera, keyboard, Play Services and more), a protected-name pattern, the launcher and keyboard you are using right now, and system apps only.
  • A restore record first — written before the first package comes off, not after the last.

Start here

There are three ways to use this, in order of how much you have to set up.

You have Go to Effort
Only the phone The Android app — CleanYourMobile.apk runs on the phone through Shizuku, Android 11+ Lowest
A phone and a computer Quick start — a coding assistant does the work in about ten minutes Low
A computer, no assistant Doing it by hand — the same scripts, run by you. The best-tested path Medium
An iPhone Nothing here applies. iOS has no debug bridge of this kind and no preinstalled bloat to remove —
Want to see it first What a scan looks like — output from a real phone —

Use it: The Android app · Quick start · Doing it by hand

Understand it: How it works · What a scan looks like · What you get · Supported phones · Safety

When you need it: Restoring · System updates · When something goes wrong · Questions · Contributing

The Android app

CleanYourMobile.apk runs the same database and guard on the phone itself, with no computer involved once Shizuku is started. The source is in android/.

The app in dark mode: true black background, gold accent, packages listed with what each removal costs The same list in light mode
Dark, true OLED black Light

It is a reference implementation, not a product. It exists to show that the database and the guard port cleanly to Android. For everyday use on a phone, Canta is more mature, more complete and has thousands of users; the honest comparison is in the FAQ.

Installing it

Step What to do
1. Shizuku Install it from the GitHub release, not the Play Store build, which is older and has no Android 16 support.
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.
3. Install the APK Download CleanYourMobile.apk and open it. Android will ask you to allow installs from your browser or file manager.
4. Grant access Open the app and tap Grant access; Shizuku asks you to confirm.

The app needs Android 8.0 (API 26) or newer; starting Shizuku without a computer needs Android 11.

What it does

Reads the same database database/ 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.
Detects the brand The same scoring as tools/cym.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.
Shows what you lose Every row carries its if_removed line, which is the field this whole project exists for.
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.
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.
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.
Disables, never deletes pm disable-user --user 0. Restore all switches everything back on.
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.
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/preset.py reads, so a profile moves between a phone and a computer either way.
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.

What is verified, and what is not

Tested on a OnePlus 10 Pro (NE2213), Android 16, OxygenOS 16.0.3:

Verified on hardware Not yet exercised
Scan, brand detection, the guard holding back 112 packages Uninstall mode — the code exists but the interface only calls disable
All four Shizuku states, and the permission grant Batching at scale: every test run has been a single package
The privileged disable (enabled 0 → 3) and restore (3 → 1) The three-consecutive-failure abort
The backup snapshot and the exported undo file The between-batch health check
The light and dark themes, search, filters, selection Any phone other than the one above

Preset export and import and the Unrated list compile, and their validation is covered by the command-line twin, but neither has been run on a phone yet.

The command-line tools are the better-tested path by a wide margin: they have been run against OnePlus and vivo phones, including a real 32-package removal, which is where most of this project's bugs were found.

Building it yourself

gradle -p android assembleDebug      # build only
gradle -p android publishApkRelease  # build, then copy the release APK to the root

Needs JDK 17 or newer, Gradle 8.7 or newer (there is no wrapper), and the Android SDK with platform 35 and build-tools 34 or newer. database/ is read from one level up; the build fails rather than producing an APK with no never-touch list.

Guard.kt holds the fourth copy of the protected-name pattern, generated from scripts/lib.sh. Never edit it by hand: python tools/sync_guard.py --fix regenerates it, and python tools/sync_guard.py checks that all four copies agree.

The published APK is a signed release build. Its signing key is held outside the repository and never committed, so the certificate below identifies builds that actually came from here:

Signer certificate DN:  CN=0xgh0stri13y, OU=CleanYourMobile, O=CleanYourMobile
SHA-256 digest:         bf068b12ebc1c7f97ecaa33f312b19f69f0f97b8d1bfc6f0a164561712ca7782

Check any copy you download with apksigner verify --print-certs CleanYourMobile.apk. A different digest is not this build. publishApkRelease signs only when the key is present; without it the release APK is left unsigned. If you would rather not trust a binary at all, build it from source with the commands above: your build carries your own signature rather than the certificate above, and the current database.

More: android/README.md.

How it works

Every Android phone has the same debug bridge developers use. Switch on USB debugging in the phone's developer options, allow your computer once, and the rest is standard Android tooling:

Step What happens
Measure Every installed package, plus RAM, storage, battery, processes, services, and how many apps hold your location, camera, microphone and contacts permissions.
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.
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.
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.
Measure again The same numbers after a reboot, side by side with the first set.

No root, no system partition written, nothing deleted, and a one-line restore if you change your mind. The restore record is created before the first removal and gets a line the moment each package comes off, so an interrupted run still covers everything removed up to that point.

The bloat differs by brand and by region, so the scan reads your phone rather than trusting a list, and asks before touching anything you might be using.

Quick start

You have Do this
A computer with a coding assistant Use the prompt: the three steps below.
A computer, no coding assistant Run the commands yourself: they are in Doing it by hand.

The computer needs a shell, Python 3.8 or newer, and either a USB cable or the phone on the same Wi-Fi network. No SDK, no JDK, nothing to pip install.

Any of these work: Claude Code, Codex, Gemini CLI, Antigravity or Cursor.

Where What to do
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.
2. On your computer Clone the repository and open that folder in your assistant (git clone https://github.com/0xgh0stri13y/Clean-Your-Mobile), then paste PROMPT.md and fill in your phone's model.
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.

Cloning matters: the assistant reuses this repository's scripts/debloat.sh and tools/scan.py instead of writing its own, and that is where the never-touch guard, the batching, the health checks and the restore record live. An assistant improvising pm uninstall loops has none of them. With this repository as context it takes about ten minutes.

Doing it by hand

Everything the assistant does, you can run yourself. The only requirement is Python 3.8 or newer; the tools in tools/ import nothing outside the standard library. The first script installs the Android platform tools if they are missing. Nothing below needs root, and --dry-run changes nothing on the phone.

git clone https://github.com/0xgh0stri13y/Clean-Your-Mobile
cd Clean-Your-Mobile

bash scripts/setup_adb.sh                 # install the platform tools if missing
bash scripts/connect.sh                   # USB; --wireless to pair over Wi-Fi
bash scripts/snapshot.sh before           # measure, and open a session

python tools/scan.py --plan               # match the database, write plan.txt
                                          # --level recommended | advanced | expert

bash scripts/debloat.sh backups/<session>/plan.txt --dry-run   # read this first
bash scripts/debloat.sh backups/<session>/plan.txt             # apply it

adb reboot && adb wait-for-device
bash scripts/snapshot.sh after
python tools/report.py                    # report.md, report.json, report.txt

Use python3 where python is not on the path, as on macOS and many Linux systems.

Tool What it does
scripts/setup_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.
scripts/connect.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.
scripts/snapshot.sh Measures packages, RAM, storage, battery, processes, services and permission holders into one session directory, as readable text and as JSON.
tools/explain.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.
tools/scan.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.
tools/preset.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.
scripts/debloat.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.
scripts/restore.sh Puts a session back, all of it or one package or every session on record, and verifies each one.
tools/report.py Compares the two snapshots and the two package lists. Spots packages that came back on their own, and says which numbers are real.
tools/check.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.
tools/validate_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.

Your own plans can live outside the repository: plan paths are relative to the directory you run from, and absolute paths work too.

Windows (PowerShell)

Every device script has a PowerShell twin next to it. The Python tools are the same everywhere.

powershell -ExecutionPolicy Bypass -File scripts\setup_adb.ps1 -Persist
powershell -ExecutionPolicy Bypass -File scripts\connect.ps1
powershell -ExecutionPolicy Bypass -File scripts\snapshot.ps1 before

python tools\scan.py --plan

powershell -ExecutionPolicy Bypass -File scripts\debloat.ps1 backups\<session>\plan.txt -DryRun
powershell -ExecutionPolicy Bypass -File scripts\debloat.ps1 backups\<session>\plan.txt

adb reboot; adb wait-for-device
powershell -ExecutionPolicy Bypass -File scripts\snapshot.ps1 after
python tools\report.py

Restore with scripts\restore.ps1, which takes -Package <name> for one app, -List to see what is on record, or -All for every session.

These are written for Windows PowerShell 5.1, so they also work on PowerShell 7. They are plain ASCII on purpose: 5.1 reads a script without a byte-order mark as ANSI, and one emoji in the file breaks the parse before a single line runs.

How the scripts protect your phone

Four checks stand between a plan and a package, and a package has to clear all four.

1. The never-touch list. database/essential_packages.json holds 207 entries covering phone calls, SMS, emergency alerts, SIM services, Wi-Fi, Bluetooth, camera, keyboard, launcher, Settings, Play Store, Play Services, keystore, system UI, the setup wizard and permission management. A package on it is refused. There is no flag to override this, and the scripts refuse to run at all if the file is missing or parses as empty, rather than proceeding without a guard.

2. The protected-name pattern. An unusual ROM has packages no list has seen. Anything whose name matches a protected category is also refused: systemui, telephony, dialer, incallui, inputmethod, keystore, launcher, setupwizard and twenty more, plus build-time infrastructure such as runtime resource overlays, framework resources, GPU drivers and graphics layers. A OnePlus 10 Pro carries more than thirty of those, none of them an app anyone installed.

CYM_ALLOW_PROTECTED=1 relaxes this one check in debloat.sh and debloat.ps1, for the rare ROM that names a theme store ...launcher.themes. The scan still leaves such a package out of the plan, so add its line by hand. It does not relax the never-touch list.

The pattern is written out in four files on purpose: scripts/lib.sh, scripts/lib.ps1, tools/cym.py and the app's Guard.kt. No single file being wrong or missing can disarm the guard, and tools/sync_guard.py checks that they agree.

3. What the phone is using right now. tools/scan.py asks the phone which launcher owns HOME and which keyboard is the active input method, and drops both from the plan whatever the database says about them. scripts/debloat.sh checks that something answers HOME before it starts, warning if it cannot confirm it, and again after it finishes, reinstalling a launcher straight away if nothing does.

4. System apps only. A package that is not a system app was installed by the owner, or placed in /data by the manufacturer as an ordinary app. There is no system copy underneath it, so pm uninstall -k --user 0 would delete the only one and cmd package install-existing could not bring it back. tools/scan.py lists those and leaves them out of the plan, and scripts/debloat.sh reports them as "Left alone" if a hand-written plan names one.

While it runs: batches of five with a health check between each, which sends HOME and then confirms the package service still answers, because a phone that cannot run cmd package cannot be restored either; an automatic attempt to put the last batch back if that check fails; and a stop after three consecutive failures, since that means something systemic changed rather than one awkward package.

python tools/validate_db.py enforces the consistency these rely on. An entry on the never-touch list rated anything but Unsafe is an error rather than a warning, because a tool that looked it up and saw Expert would offer to remove what the other guard refuses.

What a scan looks like

Output from a OnePlus 10 Pro running OxygenOS 16 with 439 packages installed, shortened, from an earlier version of the tools. Today's scan also reports regular apps it leaves alone and packages already removed before the scan. Nothing is changed at this stage:

$ python tools/scan.py --plan

 Device : OnePlus NE2213 (OP516FL1), Android 16 / API 36
 Installed packages : 439
 Already disabled   : 3
 Brand profile      : OnePlus  (OxygenOS / ColorOS)
 Plan level         : recommended

What the database recognises on this phone
  Recommended    28   safe for everyone
  Advanced       71   safe for most, may touch minor OEM features
  Expert         17   power users, have replacements ready
  Unsafe         15   never removed, shown so you know they were seen
  Unknown       213   not in the database, never planned automatically

The plan: 28 package(s) at level 'recommended'

  Telemetry and analytics (7)
    * com.oplus.stdid
      Standard ID Service - Serves a tracking identifier to preinstalled apps
      If removed: Preinstalled apps lose a device-level advertising identifier.
    ...

  Partner and third-party preloads (4)
    * com.teamviewer.quicksupport.market
      TeamViewer QuickSupport - Lets a helper view your screen remotely
      If removed: Remote support sessions stop being possible. Nothing else changes.
    ...

  Advertising (1)
    * com.heytap.pictorial
      Lock Screen Magazine - Pushes sponsored wallpapers to the lock screen
      If removed: The lock screen stops rotating sponsored wallpapers.

Kept back: 112 package(s)
  x android                                        on the never-touch list
  x com.android.cellbroadcastreceiver              on the never-touch list
  x com.android.launcher                           on the never-touch list
  x com.oplus.securitykeyboard                     on the never-touch list
  ...

Every line says what you lose, not just what goes. Then the dry run, which also changes nothing on the phone:

$ bash scripts/debloat.sh backups/<session>/plan.txt --dry-run

 In the plan        : 28
 Will be processed  : 28
 Refused (protected): 0

 Method  : pm uninstall -k --user 0 (data kept, system copy kept)
 Batches : 28 packages, 5 per batch, health check after each

Batch 1 of 6
  [ 1/28] com.heytap.pictorial                             would uninstall
  [ 2/28] com.coloros.compass2                             would uninstall
  ...

 DRY RUN - nothing on the phone was changed
And the report it writes at the end

tools/report.py compares the two snapshots and writes report.md, report.json and report.txt. The figures below are an example, not a measurement of the phone above, and show six of the twelve rows:

$ python tools/report.py

Measured
                                       before         after            change
  Installed packages                      412           365        -47 (-11%)
  RAM available                      2,539 MB      3,271 MB       +732 (+29%)
  Running services                         96            74        -22 (-23%)
  Apps with location access                31            24         -7 (-23%)
  Apps with microphone access              22            16         -6 (-27%)
  Apps with contacts access                26            19         -7 (-27%)

Honest reading of these numbers
  47 fewer packages is the one number that is exactly true.
  More free RAM is real, but Android fills free RAM with cache by
  design, so this figure drifts on its own. Measure it twice.
  Fewer apps holding location, camera, mic and contacts is the
  most meaningful privacy change here.
  Battery life cannot be measured in minutes. Fewer background
  services means less wakeup work, but judge it over a few days.

That last section is printed by the tool, not written by hand.

What you get

A phone that stops working against you.

Gone What that means in practice
Lock screen advertising Xiaomi's wallpaper carousel, the vivo and OPPO magazine, Glance. The lock screen stops selling you things.
Advertising inside system apps MIUI's MSA framework, OPPO's ad service, the sponsored cards in the swipe-right panel.
Advertising notifications On Tecno, Infinix and itel phones most of it comes from one game portal, net.bat.store, and the preinstalled browsers.
Telemetry Analytics, usage reporting, diagnostic uploads and crash telemetry going to the manufacturer.
Duplicated apps The manufacturer's browser, gallery, music player, file manager, notes and calculator that you never open because you already have better ones.
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.
Carrier apps Account apps, support apps, and the folder of sponsored apps on the home screen.

And a measurement of what changed rather than a claim about it:

Measured exactly Measured, but noisy Not claimed at all
Packages removed Free RAM, because Android fills it with cache by design Battery life in hours
Apps holding location, camera, microphone, contacts and SMS permissions Running services and processes Any multiple of "faster"
Which advertising is gone Free storage, which barely moves because the system copy stays A benchmark score

The report's closing "Honest reading of these numbers" is printed by the tool rather than written by hand, so it cannot drift into marketing: it calls the package count the one exact number, warns that free RAM and the process count drift, and says battery life cannot be measured in minutes.

Supported phones

Anything running Android 7 or newer with developer options available; the app needs Android 8. The database covers these brand families by name:

Brand Packages OS Main targets
Samsung 92 One UI Bixby, AR Zone, AR Emoji, Samsung Free, Galaxy Store
OnePlus 81 OxygenOS Shelf, HeyTap remnants, ColorOS telemetry, factory test tools
Xiaomi, Redmi, POCO 62 MIUI, HyperOS MSA ad framework, wallpaper carousel, App Vault, analytics
Google, Pixel 53 Stock Android Unused Google apps, Android System Intelligence, Chrome
OPPO 63 ColorOS HeyTap, lock screen magazine, ad service, Theme Store
vivo, iQOO 36 Funtouch OS, OriginOS Jovi, V-Appstore, magazine, EasyShare
Motorola, Lenovo 19 Near-stock Moto Genie, Gametime, Device Help, Moto Voice
Huawei, Honor 19 EMUI, MagicOS Huawei Video, Huawei and Honor Reader, SkyTone, AppGallery, Honor App Market
realme 13 realme UI HeyTap, realme Store, Game Space
ASUS 12 ZenUI Game Center, log uploader, duplicated apps
Tecno, Infinix, itel 9 HiOS, XOS Game portal, Phoenix Browser, Carlcare
Nothing 1 Nothing OS Very little. Nothing OS is already clean
Carrier 21 any Verizon, T-Mobile, AT&T, Jio, Airtel, Vodafone
Universal 69 any Facebook services, Microsoft Office, preinstalled games and shopping

The rows add up to 550 rather than 537 because a few packages shared between brands, such as the HeyTap apps, are listed under each of them.

Your brand not listed? The universal, Google and carrier entries still apply. The scan counts every package it does not recognise, lists the ones whose names look suspicious with the reason, and prints them all with --show-unknown: evidence for you to judge, never something it removes on its own. Add your brand afterwards and the next person with your phone skips that step: CONTRIBUTING.md.

Not supported: iPhones, and any phone where an employer's management profile has removed developer options. On a work-managed phone, don't: see Safety.

Safety

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.
System apps only An app that is not a system app, one you installed or one the manufacturer dropped into /data 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.
No root, ever No su, no exploit, no bootloader unlock, no system partition write, no boot image touched. This cannot brick a phone.
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.
A factory reset is the floor It always works, and every system package comes back, because none of them were ever deleted.
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.
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

Every package carries a rating, and you choose how far a plan goes:

Rating Means Enters a plan at
Recommended No side effects for anyone. Advertising, telemetry, dead weight. --level recommended and up
Advanced Safe for most people. A minor manufacturer feature goes with it. --level advanced and up
Expert An ecosystem feature goes with it, or data has to be moved first. --level expert only
Unsafe Never removed. Listed so a scan can report that it saw it. never

Two cases where you should not do this. A phone managed by your employer, or with a work profile: removing Device Policy components breaks the management and may breach their policy. Android Device Policy is rated Expert, and Samsung's Knox work-profile container is on the never-touch list. And a phone under warranty where you are about to make a claim: changing a phone's software can affect support.

Two things a restore cannot undo, both rated Expert and both saying so in the database: data left inside Samsung's Secure Folder when you remove it, and NFC transit or access cards provisioned to a manufacturer's wallet, such as Mi Pay transit cards. Move those out first. The full list is in docs/RESTORE.md.

Restoring your phone

Keep the session. One line puts the phone back the way it was:

bash scripts/restore.sh                            # the newest session
bash scripts/restore.sh --package com.foo.bar      # one app
bash scripts/restore.sh --list                     # every session on record
bash scripts/restore.sh --all                      # all of them, oldest first
What How
A record comes first Before scripts/debloat.sh removes anything it creates the session record under backups/, and each package is added the moment it comes off.
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.
It reads the record Not a generated script, so it still works if that was edited or lost.
It tries both routes A package may have been uninstalled or disabled, and running the wrong undo is a no-op.
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.
Factory reset The guaranteed floor; see Safety.

More: docs/RESTORE.md has what the record holds, why this is reversible at all, what to do when a package will not come back, and the handful of things a restore genuinely cannot undo.

After a system update

A system update installs a fresh system image over the cleaned-up one: the packages you removed come back, disabled ones are often re-enabled, and new preloads appear that no plan mentions. This is expected rather than a failure. Compare the phone with the plan you applied, and --fix puts it back:

python tools/check.py           # what came back
python tools/check.py --fix     # re-apply the same plan
python tools/check.py --quiet   # exit code only, for a scheduled job

--fix goes through the same guard, so a hand-edited plan still cannot reach a protected package. Run against a session, its result is appended to that session's log with the new patch level, so a phone's history stays in one place.

A few database entries remove the manufacturer's updater, among them Motorola's com.motorola.ccc.ota and OnePlus's com.oplus.ota, plus com.oplus.sau, which updates the preinstalled apps. They are rated Expert, they say so in their if_removed text, and they only enter a plan at --level expert. Removing one means the phone stops receiving security patches, not just features.

More: docs/FIRMWARE.md has the exit codes, a weekly check, and finding the new preloads an update added that no plan mentions.

When something goes wrong

The full list of things that bit us is in docs/TROUBLESHOOTING.md. The three that matter most:

  • The phone shows as unauthorized. The "Allow USB debugging?" dialog has not been accepted, and it cannot appear while the screen is locked. Unlock it, replug, and watch the screen. If the dialog never comes, use Developer options → Revoke USB debugging authorizations and try again.
  • Notifications from one app stopped. A manufacturer push service went with the removal: com.heytap.mcs on OPPO and other ColorOS-based phones that ship it, com.vivo.pushservice on vivo. Xiaomi's com.xiaomi.xmsf is on the never-touch list, so it is never removed. Apps that use Firebase are unaffected, which is why this only ever hits preinstalled ones. Put the one package back with bash scripts/restore.sh --package com.heytap.mcs.
  • Failure [DELETE_FAILED_INTERNAL_ERROR]. The ROM is refusing. Usually the app is a device administrator, which you turn off in Settings → Security first, or a work profile owns it. Try --disable instead, which some ROMs accept where uninstall is blocked.

Nothing here can brick a phone, and adb reboot fixes most of it.

Questions people ask

Will this brick my phone?

No, and the reason is structural rather than a promise. Nothing is deleted: pm uninstall -k --user 0 removes an app for your user profile only, and the copy on the read-only system partition stays exactly where it was. No root is used, no partition is written, and no boot image is touched.

Worst realistic case: the phone misbehaves, you reboot it, and if that is not enough you run the restore script. If the phone will not talk to a computer at all, its own Settings → Apps page, with system apps shown, can re-enable a disabled app and often reinstall a removed one. A factory reset is a guaranteed floor and brings back every system package, because none were ever removed from the system image.

Do I need root?

No, and this project will not use it. Everything works through switches Android offers the owner of the device: developer options, ADB debugging, and pm disable-user or pm uninstall --user 0, the same mechanism as Settings → Apps → Disable, driven from a shell instead of a screen.

Rooting would let you delete packages properly, and it would also void warranties, trip hardware security keys such as Samsung Knox, break banking apps, and make a mistake permanent. That trade is not worth it for removing Bixby.

Will my phone actually be faster?

Some of it is real and some of it is not, and the report separates the two rather than flattering you.

Real and measured: fewer packages, fewer apps holding your location, camera, microphone, contacts and SMS permissions, and the specific advertising that is now gone. You notice the last one the same day. Fewer running services is real too, but noisy: the after snapshot is taken on a freshly booted phone.

Real but slow: battery life. Fewer background services means less wakeup work, but it cannot be measured in an hour. Judge it over a few days.

Mostly not real: free RAM, as a number. Android fills spare RAM with cache on purpose, so the figure moves on its own, and it often drops right after a reboot while caches warm. Storage barely changes, because the system copy of every removed app is still there, which is exactly why all of this is reversible.

Anyone promising a multiple of "faster" is selling something.

Will banking and payment apps still work?

Normally yes. Removing apps for your user profile does not change the system image and does not trip Play Integrity by itself. What can cause trouble is removing Samsung Knox components, rated Expert or Unsafe here, or Play Services, which the guard's name pattern refuses outright. Neither is ever in a plan at the default recommended level.

If a banking app starts refusing after a run, restore the session and re-run at --level recommended.

What about my work phone?

Don't. A phone managed by your employer has a device policy controller that this would interfere with, removing Device Policy components breaks the management, and it may be against the policy you agreed to. A personal phone with a work profile gets the same treatment: the prompt asks about both and offers only the most conservative level when the answer is yes. The tools only ever act on your own user (--user 0), never on the work profile.

Will a system update undo everything?

Mostly, yes. A system update reinstalls the system image over the cleaned-up one. That is expected and is not a failure.

python tools/check.py tells you exactly what came back, and --fix re-applies the same plan in one command. See After a system update.

Can I speed up the animations too?

Yes, if you ask during the run. It is a display setting rather than a speed-up: the phone is not faster, it just stops waiting.

adb shell settings put global window_animation_scale 0.5
adb shell settings put global transition_animation_scale 0.5
adb shell settings put global animator_duration_scale 0.5

The before snapshot records your original values under Animation scales. The restore script does not revert these, because they are not package changes, so put them back by hand with the recorded values; the stock value is 1.0.

I already debloated my phone by hand. Is there anything here for me?

Yes. pm list packages does not list what you uninstalled, so you have no record of what came off. tools/scan.py shows an Already removed count, and

python tools/preset.py save my-phone --from-device
python tools/preset.py show my-phone

turns those removals into a named preset: every system package uninstalled for your user, with the database's name and if_removed line beside each one, and the ones the database does not know marked as such. Regular apps you uninstalled are left out, because they have no system copy and this project never touches them. Add --include-disabled to take the system apps you switched off as well.

To use it on a second phone, python tools/preset.py apply my-phone --device --out plan.txt writes a plan for that phone, which you then run through scripts/debloat.sh plan.txt --dry-run as usual. Or share the preset.

Is there an app that does this on the phone itself?

Yes, and this project has one: CleanYourMobile.apk, described in The Android app. It is a reference implementation, though, and the command-line scripts are the main, better-tested path.

Removing a system app needs shell-level privileges. An app on the phone gets them one of two ways: root, or Shizuku, which on Android 11 and newer starts from the phone's own Wireless debugging with no computer and no second device involved. The catch is that Android clears it on every reboot, so you restart Shizuku each time you restart the phone unless you are rooted.

For everyday use, Canta is the more mature app, and it also has a web version that drives a phone over USB from a Chromium browser with nothing installed at all. Universal Android Debloater is the desktop equivalent. Both are independent projects, not affiliated with this one, and this database credits their lists as a source.

See how they compare for which to pick.

How does this compare to Canta and Shizuku?

They solve the same problem from opposite ends, and for a lot of people Canta is the better answer. Canta is an Android app (LGPL-3.0, Android 9+) that uses Shizuku for shell privileges and runs on the phone. This is mainly a scripted toolkit that drives ADB from a computer, with a reference Android app that runs the same database and guard on the phone.

Canta CleanYourMobile
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
Needs a computer No, on Android 11+ For the scripts, yes. For the app, no on Android 11+
Interface A GUI you tap through A CLI, a coding assistant driving it, or the reference app
Setup Install the app, start Shizuku, restart it after each reboot Scripts: enable USB debugging, clone the repo. App: install it and start Shizuku
Package data The Universal Debloat List This repository's own database, with an if_removed line per package
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
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
Before and after measurement No RAM, storage, services, and permission-holder counts, with the noisy figures labelled as noisy
Post-update drift Detects apps you previously removed tools/check.py diffs against the applied plan and --fix re-applies it
Maturity Thousands of users, on F-Droid and Play Much newer and far less battle-tested

Pick Canta if you want this done in ten minutes with no computer, you are comfortable deciding for yourself what is safe, or you are doing one phone once.

Pick this if you want to read what each removal costs before approving it, you want the guard to refuse rather than warn, or you want a measured before-and-after and a restore record you can replay.

They are not really competitors. Canta is more accessible; this is more cautious and more instrumented. Using Canta on your own phone and this on a relative's would be a perfectly sensible combination.

How is this different from CleanYourTV?

CleanYourTV does this for Android TV, and installing a replacement launcher is the main event there. This is the same idea pointed at phones, where the problem is different: no launcher replacement is needed, the brands and packages are entirely different, and the cost of removing the wrong thing is much higher. A TV with no dialer is fine; a phone with no dialer is not.

So the emphasis here is the guard and the database rather than a new home screen. Credit where it is due: CleanYourTV is why this exists.

Project layout

Clean-Your-Mobile/
├── PROMPT.md                     # paste this to your coding assistant
├── AGENTS.md                     # the rules an agent must follow, binding
├── CONTRIBUTING.md               # how to add packages and brand profiles
├── CODE_OF_CONDUCT.md            # be decent
├── SECURITY.md                   # what counts as a vulnerability, and how to report it
├── .github/                      # issue templates and the pull request checklist
├── database/
│   ├── debloat_db.json           # 537 packages: what they are, what you lose
│   ├── essential_packages.json   # 207 never-touch entries, no override
│   ├── brand_profiles.json       # 13 brand profiles and their quirks
│   └── schema/                   # JSON Schemas for debloat_db and essential_packages
├── scripts/                      # anything that talks to the phone
│   ├── lib.sh / lib.ps1          # the adb wrapper, sessions, and the guard
│   ├── setup_adb.sh / .ps1
│   ├── connect.sh / .ps1
│   ├── snapshot.sh / .ps1
│   ├── debloat.sh / .ps1
│   └── restore.sh / .ps1
├── tools/                        # cross-platform Python, standard library only
│   ├── cym.py                    # shared: adb, database, sessions
│   ├── explain.py                # look up one package, no phone needed
│   ├── preset.py                 # portable, shareable removal profiles
│   ├── scan.py                   # scan and build a plan
│   ├── report.py                 # before and after
│   ├── check.py                  # what a system update put back
│   ├── validate_db.py            # database integrity
│   └── sync_guard.py             # keeps the four copies of the guard in step
├── presets/                      # shared removal profiles, read by preset.py
├── CleanYourMobile.apk           # the Android app, built and ready to install
├── android/                      # its source: Kotlin, Shizuku, the 4th guard copy
├── docs/
│   ├── TROUBLESHOOTING.md        # every failure mode and how to get out of it
│   ├── DATABASE.md               # the schema, the safety ratings, the guard
│   ├── RESTORE.md                # why this is reversible, and the four ways back
│   ├── FIRMWARE.md               # system updates that undo your work
│   ├── banner.png                # the banner at the top of this page
│   └── app/                      # screenshots of the Android app
├── assets/                       # banner.svg, an earlier banner the README no longer uses
└── backups/                      # one directory per session, created on your computer

Contributing

The most useful contribution is a package from your phone that the database does not know yet, so the next person with that model does not have to rediscover it. CONTRIBUTING.md has the format and the testing we ask for. Contributing through a coding agent? AGENTS.md gives it the same rules.

How to help What it means Start with
A package entry The most useful one. A scan that says "not in the database" is a gap you can close. Package issue
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
A brand profile Sony, ZTE, Nubia, Meizu, Sharp, Lava, anything nobody has described yet. Brand issue
A special_notes paragraph The thing you learned the hard way about your brand. No tool can derive it. Brand issue
A troubleshooting entry A failure you hit and how you got out of it. Bug report

The one thing we ask: test it on a phone you own, then use that phone for a day. A package that breaks something subtle, such as notifications from one app, a camera mode, or emergency alerts, will not show up in the first five minutes. And python tools/validate_db.py has to pass.

python tools/validate_db.py     # database integrity
python tools/sync_guard.py      # all four copies of the guard still agree
bash -n scripts/*.sh            # shell syntax

The pull request template lists these, plus the four rules from AGENTS.md that a change to the tools cannot break. Be decent while you are here: CODE_OF_CONDUCT.md.

Contact

For Where
My phone is misbehaving right now docs/TROUBLESHOOTING.md first — nothing is deleted, so a reboot fixes most of it
Is it safe to remove X? python tools/explain.py <package> first, then a Package issue
A package to add or correct Package issue
A brand with no profile Brand issue
Something went wrong Bug report
Security issues Privately, through the Security tab. See SECURITY.md

Legal

  • CleanYourMobile is an independent open-source project. It is not affiliated with, endorsed by or sponsored by any phone manufacturer, carrier or platform. Brand and model names are used only to say which phone an entry applies to, and remain the trademarks of their owners.
  • It works only through switches the phone offers its owner: developer options, ADB debugging, and Android's own pm disable-user and pm uninstall --user 0, the same switch as Settings → Apps → Disable. It does not root the phone, unlock a bootloader, flash firmware, or bypass any lock, DRM or copy protection. This repository contains no manufacturer software or firmware; the only APK is this project's own app.
  • Nothing is deleted, and scripts/restore.sh puts it back. You run it on a phone you own, at your own risk, and changing a phone's software may affect its warranty or support.
  • Everything here is provided as is, without warranty of any kind, under the MIT licence below.

Licence

MIT, see LICENSE. Copyright 2026 0xgh0stri13y and Clean Your Mobile contributors.

Package ratings draw on, and credit, the community lists that came first: Universal Android Debloater, MuntashirAkon/android-debloat-list and Canta. Where they disagree, this database takes the more cautious rating.

Inspired by CleanYourTV, rebuilt from the ground up for phones.

About

Your phone, minus the bloat. Debloat right on your phone via the Shizuku app (no PC needed) or from a computer over Wi-Fi/USB. Strip ads, bloatware, and telemetry—zero root, fully reversible.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

56 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages