Skip to main content

CleanYourPhone — your phone, minus the bloat

English · Español · Português (BR) · Français · Deutsch · Italiano · 日本語 · 简体中文 · 繁體中文 · 한국어

CI MIT Python 3.10+ No telemetry 157 profiles release app release

CleanYourPhone

Your phone, minus the bloat. An open-source, reversible debloat skill for Android, built for coding agents. It disables preinstalled apps and services over ADB: no root, no custom ROM, nothing uninstalled, and one command to restore the changes the CLI recorded.

Read the story and the safety model at cleanyourphone.org.

There is also an optional Windows app for people who prefer buttons over prompts: Download the Early MVP. It is a GUI over the same CLI. The skill remains the main product and the path for phones without a profile.

It is the phone version of cleanyour.tv, built the same way: one prompt, one command, reversible, open source, and the person stays in control.

SKILL.md · PROMPT.md · App · Safety · 157 profiles · Feedback · Changelog

Start here

You have Start with
A phone and a coding agent The quick start below.
Prefer buttons over prompts Download the Windows app (Early MVP).
Want to see it first The website.
Need the safety rules docs/SAFETY.md.
Need a model profile Browse the 157 profiles.
Your phone is not listed Use the skill manually, or send a profile request.
Prefer a terminal Install the CLI.
Part Status
Skill Main product, in this repository.
CLI 0.3.4, published on PyPI as cleanyourphone / cyp.
Windows app 0.2.3 Early MVP, optional, unsigned.
Website 10 languages at cleanyourphone.org.
Feedback Optional web/app/skill form to Discord; no automatic telemetry.

Why the skill comes first

An app that disables other apps needs root, Shizuku or device-owner privileges. That is a lot of power and a lot of risk for something a shell command can do. A skill is just text: the person's agent reads it, runs adb, shows a plan, and asks before touching anything. There is nothing to install on the phone, nothing running in the background, and nothing that phones home.

There is now an optional Windows app, but it does not replace the skill. It is a GUI over the same CLI, and it only continues when it can match an exact device profile with a tested build, or a documented profile after an explicit acknowledgement and one package per batch. If it cannot match the phone, it stops and sends the person here. The skill can still inspect the package list, ask about each app and continue manually.

The phone is a daily driver, so the skill is deliberately conservative:

  • Disable, never uninstall. pm disable-user --user 0 only. pm enable is the undo.
  • Back up first. Package lists, settings, roles, IMEs and getprop before the first change.
  • Protected list. Core Android, telephony, Play Services, WebView, permission controller, emergency alerts, IME/telecom, NFC/SE and OEM security packages are refused by the CLI.
  • Role checks. It will not leave you without a dialer, SMS app, Home app or keyboard.
  • Small batches. Five packages at a time, verify, then continue.
  • Ask first. Banking, payments, WhatsApp, camera, alarm, VPN, authenticator, smartwatch, eSIM, VoLTE/Wi-Fi calling and work apps are a checklist, not a default.

How it works

  1. On the phone: enable Developer options. Your agent then guides the connection (QR code over Wi-Fi, or a USB cable).
  2. On the computer: give your agent SKILL.md (or paste PROMPT.md).
  3. Follow along: the agent identifies the phone, backs up, shows a table of packages, asks what you use, disables in batches, reboots and verifies. python tools/phone.py restore undoes it.
$ python tools/phone.py doctor
ADB ......... C:\platform-tools\adb.exe
ADB version . Android Debug Bridge version 1.0.41
Devices ..... <serial> (device)

Device ...... Google Pixel 8 (shiba)
Android ..... 16 (SDK 36)
Managed ..... no
Users ....... 1
Battery ..... 82%
Backup ...... none (run: python tools/phone.py backup)
Profiles .... google-pixel-8
Auto-apply .. google-pixel-8

$ python tools/phone.py plan --profile google-pixel-8
Profile: google-pixel-8 (Google Pixel 8)
Phone:   Google Pixel 8 (shiba), Android 16
Match:   yes
Auto-apply: yes

DISABLE  com.google.android.apps.wellbeing
         why: Digital Wellbeing: screen-time tracking and telemetry
         breaks: Screen-time dashboard and app timers
ASK      com.google.android.apps.turbo
         why: Adaptive Battery and Device Health
         breaks: Adaptive Battery, battery diagnostics

The optional Windows app

For people who prefer buttons, the app wraps the same CLI in a guided Windows flow: connect, check, backup, review, apply, verify and undo.

CleanYourPhone app review screen with a documented profile warning and one selected app

  • Connect by Wi-Fi or USB. The app finds the phone, checks the build and shows the exact profile.
  • Exact device profiles follow the tested path. documented profiles are manual: visible warning, explicit acknowledgement and one app per batch. No profile means stop and use the skill.
  • Backup is mandatory. Review every package, apply in batches, verify and undo the whole journal.
  • Optional extras: Private DNS ad blocking (not YouTube) and a local before/after benchmark.
  • Optional feedback: an editable checklist can be sent to the maintainer after consent. No automatic telemetry.
  • No root, no uninstall, no app installed on the phone. The installer is unsigned; verify the SHA-256 before running it.

Download v0.2.3 · Source · Connection guide.

Quick start

1. Install ADB

Download Android SDK Platform-Tools for Windows, macOS or Linux, unzip it, and add it to PATH. Check with:

adb version

2. Prepare the phone

Settings → About phone → tap Build number 7 times → back → Developer options. Keep the phone unlocked and above 30% battery. Your agent guides the rest and connects with one command:

  • Android 11 or newer (Wi-Fi): turn on Wireless debugging, tap its name, choose Pair device with QR code, then run cleanyourphone connect --qr and point the phone at the code that opens on the computer.
  • Cable, or Android 10 and older: turn on USB debugging, plug in a data cable, then run cleanyourphone connect --usb. It says in plain words what is wrong if the phone does not show up.

connect is available from CLI 0.4.0. See docs/CONNECT.md for the walkthrough and the manual pairing fallback.

3. Clone and check

git clone https://github.com/jparedesDS/cleanyourphone
cd cleanyourphone
python tools/phone.py connect --qr   # or --usb
python tools/phone.py doctor

The CLI is optional. The raw adb commands are in references/manual-adb.md, so an agent can work without Python. The CLI exists so the agent does not improvise the guardrails.

Prefer a terminal? Install the command with pipx:

pipx install cleanyourphone
cleanyourphone doctor

This adds cleanyourphone and the short alias cyp. docs/CLI.md covers the wizard, the installed file locations and the safety rules. python tools/phone.py keeps working.

4. Give the skill to your agent

Agent Where to put it
Claude Code ~/.claude/skills/cleanyourphone/SKILL.md (personal) or .claude/skills/cleanyourphone/SKILL.md (project)
OpenCode ~/.config/opencode/skills/cleanyourphone/SKILL.md (global) or .opencode/skills/cleanyourphone/SKILL.md (project)
Codex AGENTS.md in the project, or ~/.codex/AGENTS.md; paste PROMPT.md if your build does not load skills
Cursor .cursor/rules/cleanyourphone.mdc with the contents of SKILL.md
Gemini CLI GEMINI.md in the project
Any chat agent Paste PROMPT.md, then paste SKILL.md when it asks

Spanish prompt: PROMPT.es.md. The skill answers in the language the person writes in.

The simplest setup is to clone the repo and open your agent in that folder: SKILL.md is already at the root, so python tools/phone.py works. If your agent loads skills from a global folder, copy SKILL.md there; install the CLI with pipx (above) and you do not need to keep the repo cloned:

mkdir -p ~/.claude/skills/cleanyourphone
cp SKILL.md ~/.claude/skills/cleanyourphone/SKILL.md

Without the repo, the skill still works: it points the agent to references/manual-adb.md for the raw adb commands. If the agent only has SKILL.md, it reads the other files from GitHub.

Then ask: "Clean my phone" or "Use cleanyourphone on my Pixel".

What it does

  • Disables OEM telemetry, ad surfaces, recommendation rows, duplicate browsers/stores and unused preloads.
  • Optionally sets Private DNS with presets (adguard, adguard-family, controld, mullvad) or your own resolver, and checks whether ads are actually blocked. Not a YouTube ad blocker; see docs/ADS.md.
  • Produces a report: what changed, why, what was kept, the backup path and the undo command.
  • Treats documented profiles as manual evidence: no disable list, no auto-apply, one package at a time after review.
  • Offers an optional Windows GUI for the same flow (device profiles automatic, documented manual, everything else stops and links here).
  • Measures free RAM, processes and package counts before/after with bench snapshot and bench compare; approximate, local and not causal. See docs/BENCH.md.
  • Measures a battery baseline before/after (docs/BATTERY.md), without promising miracles.

Feedback and profile requests

If a phone is not covered, the person can ask for a profile or report a bug without sharing a serial number, IP address, IMEI or MAC address:

  • Web: cleanyourphone feedback form.
  • App: Feedback in the header; the checklist is prefilled and editable.
  • Skill: python scripts/feedback.py --kind profile --checklist-file feedback.txt previews the payload; add --yes only after the person approves.

The message goes to a Cloudflare Worker and then to the maintainer's Discord. Nothing is sent at startup or during a scan. The app/website use the same Worker; tools/phone.py stays network-free. See docs/FEEDBACK.md for the payload, redaction and rate limit.

Block ads (optional)

Private DNS can block many in-app ad and tracker domains. It is not a YouTube blocker, not a VPN, and it can break captive portals. The presets are:

python tools/phone.py dns providers
python tools/phone.py dns set adguard
python tools/phone.py dns check
python tools/phone.py dns restore

dns check distinguishes “blocked” from “cannot test” when the control domain does not resolve. See docs/ADS.md for the OEM ad-switch checklist and caveats.

Measure the result

Record a local before/after snapshot; no serial or fingerprint is stored:

python tools/phone.py bench snapshot --label before
# apply, reboot and verify
python tools/phone.py bench snapshot --label after
python tools/phone.py bench compare <before.json> <after.json>

The comparison is approximate and not causal. See docs/BENCH.md.

What it does not do

  • No app installed on the phone. The optional Windows app runs on the computer; the phone only receives pm disable-user / pm enable.
  • No root, no Magisk, no Shizuku requirement.
  • No custom ROM, no bootloader unlock, no flashing.
  • No uninstall. pm disable-user is reversible; pm uninstall is not.
  • No work profile or MDM changes. If the phone is managed, it stops.
  • No YouTube ad blocking. Private DNS does not touch same-domain ads. docs/FAQ.md explains.
  • No automatic telemetry. The CLI is local; the optional feedback form sends only when a person presses Send. A hosted agent still receives the session (model, package names, fingerprint), so use a local model if that matters.
  • No "double battery" claims. Realistic standby gain from debloat is 0–10%; the big wins are background restrictions, brightness/refresh rate and DNS.

Safety

Read docs/SAFETY.md before your first run. The short version:

  • The CLI refuses packages on the protected list, packages that hold a role, and any change without a backup.
  • Every disable is recorded. python tools/phone.py restore re-enables exactly what the tool disabled, and leaves alone anything you had already disabled.
  • If the phone boot-loops, docs/RESTORE.md has the recovery path. Do not factory reset as a first move.
  • Debloating is reversible, but your OEM may see it differently. It does not void a legal warranty by itself in the EU, but a repair centre can refuse to work on modified software. Be honest with the person.

Profiles

A profile is either a package list tested on a real phone (device) or a list built from a primary firmware dump (documented). Documented profiles never auto-apply and have no disable list; use them to ask per package. apply only runs for a device profile on a build listed in tested. Tablet profiles set form_factor: tablet; a missing dialer/SMS role is a warning, not a failure.

The Windows app follows the same rule: device profiles can use the tested flow, documented profiles require a warning and an explicit acknowledgement and run one package per batch. If no profile matches, the app stops and links to this skill instead of guessing.

The full, model-by-model catalog is in docs/PROFILES.md.

Brand Profiles Device-tested Tablets
Google 5 1 0
Samsung 55 1 7
Xiaomi 15 1 2
Redmi 56 0 1
POCO 16 0 0
OnePlus 8 1 0
Motorola 1 0 0
Generic 1 0 0

Want to add yours? Read profiles/README.md. A device profile needs a real test; a documented profile needs a primary firmware dump or an owner-collected device inventory, plus at least one source URL.

The open-source OS question

Yes, it exists. No, it is not the first thing to do. docs/ROMS.md explains the real trade-offs:

  • GrapheneOS is excellent, but only on Pixel 6–10 (October 2026). Best security and privacy; sandboxed Play Services; locked bootloader.
  • /e/OS has the widest easy-install list, with microG instead of Google.
  • LineageOS is broad but higher-maintenance; official builds vary by device.
  • CalyxOS covers Pixel, Fairphone and some Motorola models.

The costs are real: bootloader unlock wipes the phone, Play Integrity can break banking/Wallet and drop Netflix to SD, some carriers lose VoLTE/Wi-Fi calling, and you become the maintainer of the security patches. On Samsung, unlocking trips Knox permanently. That is why the skill stays on the stock ROM: it removes the ad and telemetry surface most people notice, without those costs. It is not a hardened OS and it is not a substitute for GrapheneOS on a Pixel.

FAQ

Does it void my warranty? Debloating is software configuration, not hardware modification, and it is reversible. In the EU a legal guarantee is not automatically voided, but a repair centre may refuse modified software. The skill does not unlock the bootloader.

Can I brick my phone? Disabling the wrong core package can cause a boot loop. That is why the CLI refuses a protected list, checks roles, backs up first and verifies in batches. restore undoes exactly what the tool disabled; if its journal is lost, restore --from-backup reconstructs the change from the backup. The full recovery path, including safe mode, is in docs/RESTORE.md.

Does it remove ads from YouTube? No. An ad-blocking resolver over Private DNS blocks many in-app ads and trackers, but YouTube serves ads from the same domain as the video. The skill does not install patched apps.

Does it work on a work phone? No. If dumpsys device_policy shows a device or profile owner, or pm list users shows more than one user, the skill stops.

Does it work on Samsung/Xiaomi/Huawei? The method works on any Android 8+ phone. The package names and the safe list differ. Use a profile for your exact model, or let the agent classify manually and ask before each package. On Huawei/Honor without Google services, many com.google.* packages do not exist.

Do I need Python? No. references/manual-adb.md has the raw adb commands. The CLI is a guardrail and a convenience; it is stdlib-only and has no dependencies. The Windows app bundles the CLI and does not require Python.

Is there a GUI? Yes, an optional Windows app in cleanyourphone-app. It is an Early MVP, not code-signed, and only continues on a known profile. The skill remains the path for every other phone.

How do I report a phone or send feedback? Use the web form, Feedback in the app, or scripts/feedback.py from the skill. It is opt-in, previews the payload and excludes serial, IP, IMEI and MAC addresses. See docs/FEEDBACK.md.

Contributing

  • A tested (device) profile for a new model: open a PR with profiles/<brand>/<model>.json and the test details.
  • A documented profile: use scripts/dump_inventory.py, cite the primary dump in sources, and keep disable empty.
  • A guard, parser or CLI fix: add a test in tests/.
  • A safety rule change: open an issue first. Those rules are the product.
  • A phone you cannot test yourself: send a profile request with model, Android, build and fingerprint. No serial or IP.
  • Brand or logo changes: read docs/BRAND.md before changing assets.
  • Read AGENTS.md before changing the repo.

❤️ Support

If this project is useful to you, you can support my work on Ko-fi or Buy Me a Coffee ☕

Support me on Ko-fi Buy Me A Coffee

License

MIT. See LICENSE.


Built and maintained by jparedesDS.com · Hugging Face · GitHub

Metadata

Release files for cleanyourphone 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cleanyourphone 0.5.0
File Size Uploaded Provenance Actions
cleanyourphone-0.5.0.tar.gz 280.1 kB With provenance Details for cleanyourphone-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cleanyourphone 0.5.0
File Interpreter ABI Platform Actions
cleanyourphone-0.5.0-py3-none-any.whl Python 3 none any Details for cleanyourphone-0.5.0-py3-none-any.whl

Total release size: 840.7 kB

Release files / cleanyourphone-0.5.0.tar.gz

Download URL cleanyourphone-0.5.0.tar.gz
Size 280.1 kB
Tags Source
SHA-256 checksum
How to use checksums
bc5a253745e9b5413cfbac8edfa569742b18187a599c7105eddcb96839118933
BLAKE2b-256 checksum
How to use checksums
16d253b867b57eedfa17df12672d2cb886ecd24c7f32f9d0a2b1c93bd6d16ecd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Release files / cleanyourphone-0.5.0-py3-none-any.whl

Download URL cleanyourphone-0.5.0-py3-none-any.whl
Size 560.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5df46c600f8a42e21782c2676a3c4c639c6f4d3cc7677f00ab796ff1d04ed995
BLAKE2b-256 checksum
How to use checksums
ffd3a517b5fce723d752ca06f6926c3e66b3d5d37ad29db57d51d064ebad04c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Security for cleanyourphone 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cleanyourphone-0.5.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page