Side Project · Android App

Political spam texts, gone before you see them.

PoliticalTextKiller is an Android app that detects and removes political and donation-solicitation spam texts. It works quietly alongside your normal messaging app, classifying every incoming message on-device — no cloud, no accounts, nothing leaves your phone.

Runs entirely on your device. No analytics, no ads, no data collection.

How it works

A race through a classification pipeline

Every incoming text passes through a series of checks. The first one that produces a verdict wins — so messages from real people always get through.

  1. Contact check Messages from people in your contacts always pass through, untouched.
  2. Your allowlist and blocklist Numbers you've explicitly allowed always pass; numbers you've blocked are always killed.
  3. Keyword matching Word-boundary matching against a configurable list of political and fundraising keywords.
  4. Heuristic rules Catches shortcode plus donation indicators, campaign names paired with fundraising language, and known fundraising platform links.
  5. On-device machine learning An optional TensorFlow Lite classifier — trained locally and bundled with the app — catches messages that slip past the rules.
  6. When in doubt, let it through If nothing matches, the message is delivered normally. False negatives are cheaper than false positives.
Features

Built to be invisible, and reversible

Once it's running you'll never need to think about it — but everything it does is reviewable and undoable.

Notification killer

Spam notifications are cancelled in real time, so a junk text never buzzes your phone in the first place.

Spam Vault

Every removed message lands in a local quarantine zone. Review it any time before permanent deletion.

One-tap restore

If something legitimate gets caught, restore it to your inbox and allowlist the sender in a single tap.

Inbox scan and purge

Scan your entire existing SMS history and bulk-remove political spam that arrived before you installed the app.

Shizuku Power Mode

Optionally delete spam silently without swapping your default messaging app, using Shizuku for elevated permissions.

Contacts are never flagged

Anyone in your contacts is trusted automatically. The app can't block the people you actually talk to.

Privacy

Nothing leaves your device

There are no analytics SDKs, no crash reporting, no advertising, and no server that your messages are sent to. Classification — including the machine learning model — runs entirely on the phone. Your messages are yours.

Android On-device ML TensorFlow Lite No cloud No accounts No ads No analytics
Requirements

What you need

PoliticalTextKiller is a lightweight Android app that runs alongside your existing messaging app.

Get PoliticalTextKiller

PoliticalTextKiller is a personal project of DMC Inc's founder, published as open source. Build it from source in Android Studio, or read through how the classification pipeline works.

View on GitHub Android 12+ · Kotlin · On-device ML