pSMS

pSMS guide

The full reference. For an overview, see the README. Tiny. Private. Just SMS.

pSMS is an ultralight SMS app for Android. The whole release APK is about 120 KB. It is built only on the Android framework and the Kotlin standard library: no AndroidX, no Google Play Services, no analytics, no ads. The app doesn't request the INTERNET permission at all.

Download a test build

Open Android CI builds, select the latest successful run on main, and download pSMS--release-apk from its Artifacts section. You must be signed in to GitHub to download the artifact.

On your Android phone, extract the downloaded ZIP and open pSMS-<version>-release.apk. If prompted, allow installation from the browser or file manager you used. CI signs with the release key when the repository's signing secrets are set; otherwise with a throwaway key, which prevents installing it as an update of an already installed copy.

The workflow link above stays the same across builds. Individual run and artifact links identify a specific build, and artifacts expire according to GitHub's retention settings (90 days by default). See GitHub's artifact download instructions.

Features

Not supported

How filtering decides

For each incoming SMS, pSMS checks these in order (paused rules are skipped):

  1. Does any whitelist rule match? If so, the message is delivered.
  2. Does any blacklist rule match? If so, it goes to quarantine.
  3. Is whitelist mode on? If so, it goes to quarantine, unless "Always allow contacts" is on and the sender is a saved contact.
  4. Otherwise the message is delivered.

A rule matches when its sender condition (if any) and its text condition (if any) both match. Within a condition, any entry may match.

Building

Requirements: JDK 17+ and an Android SDK with platform 36.

./gradlew assembleRelease        # app/build/outputs/apk/release/
./gradlew bundleRelease          # app/build/outputs/bundle/release/ (for Google Play)

Release builds use R8 in full mode with code and resource shrinking (isMinifyEnabled, isShrinkResources). Other size settings:

Versioning and signing

Versioning and signing come from gradle/android-common.gradle, the same shared script used across projects:

Project layout

app/src/main/java/x/vladgba/sms/
  MainActivity.kt     conversation list, label chips, default-app and permission requests
  SettingsActivity.kt settings screen with tabs; Page.kt is the base class of each tab
  BackupPage.kt       Backup tab (message backup/restore, settings export/import)
  AboutPage.kt        About tab
  ThreadActivity.kt   chat view + compose (sms:/smsto: links, share, contact picker)
  RulesPage.kt        Filters tab: white/black list rules, live preview, apply to existing messages
  PickersPage.kt      Quick pick tab: OTP switch + regex pickers with live preview
  Apply.kt            preview/apply a rule against existing messages
  Labels.kt           label (folder) matching by sender and/or words
  Picks.kt            OTP detection, regex pickers, clipboard copy
  Backup.kt           settings export/import (JSON)
  SmsBackup.kt        SMS backup/restore against the system message store
  SmsFormats.kt       streaming XML (SMS Backup & Restore) and JSON readers/writers, AES-GCM encryption
  BlockedPage.kt      Blocked tab: quarantine for blocked messages
  Receivers.kt        SMS_DELIVER, WAP_PUSH (MMS stub), sent status, notification actions,
                      HeadlessSmsSendService (respond via message)
  Sms.kt              wrapper around the system SMS provider
  Sender.kt           SmsManager sending (multipart, status tracking)
  Rules.kt            filter engine
  Db.kt               app-private SQLite: rules + quarantine
  Notifier.kt         notifications with reply / mark-read actions
  Widget.kt           home screen widget
  Contacts.kt         number → contact name lookup (cached)
  Ui.kt               background executor, edge-to-edge insets, formatting
store/                Play Store icon (512×512) and feature graphic (1024×500), with SVG sources

Google Play notes

Privacy

pSMS has no network access, and it collects and shares nothing. See PRIVACY.md.

License

MIT © 2026 vladgba