Skip to content
Projets

À propos

短信清理工具

Design et médias

Comment ces chiffres sont mesurés

What you can do

  • Filter & search: keyword, date range, type (inbox / sent / MMS-only), same number, same SIM
  • Multi-select: long-press to enter, selection aligned by uid (SMS/MMS ids never collide); select all visible
  • Delete: swipe / action sheet / multi-select / FAB batch (all confirm first); routed by is_mms, never cross-table
  • Hide from list: local-only hide, system data untouched, resettable

Progression mesurée des étoiles

in 24h
+2
in 7 days
+3
in 15 days
+4
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

LOGO

SMS Cleaner

English | 简体中文 | 繁體中文

Local-first Android SMS / MMS cleanup tool (Flutter + Kotlin). Browse, filter, multi-select, export, and delete SMS/MMS. Everything stays on your device — nothing is uploaded or collected.

Features

  • Message list: grouped by date, cards show number / body / time / SIM; MMS badge and attachment hint
  • Filter & search: keyword, date range, type (inbox / sent / MMS-only), same number, same SIM
  • Multi-select: long-press to enter, selection aligned by uid (SMS/MMS ids never collide); select all visible
  • Delete: swipe / action sheet / multi-select / FAB batch (all confirm first); routed by is_mms, never cross-table
  • Hide from list: local-only hide, system data untouched, resettable
  • Export CSV: all or selected, RFC 4180 + BOM, system share; includes is_mms column
  • Import CSV: same format as export; insert-only into the system SMS store (requires default SMS app); MMS rows skipped
  • Permission center: read SMS, default SMS app, one-tap check & repair; MIUI “notification SMS” guide
  • Theme: 8-color palette + light / dark / follow system
  • i18n: Simplified Chinese, Traditional Chinese, English

MMS support scope

Covered by the unified data plane: browse / filter / delete / export. Body summary is taken from text parts (content://mms/part); placeholder “[MMS]” when empty, “attachment” hint when media parts exist. No full rendering (smil / image / audio playback).

New MMS while this app is the default: MmsReceiver stores notification metadata (sender / time / subject / Message-ID / Content-Location) into content://mms/inbox + addr, so messages are not lost. Full smil/media is not downloaded (depends on non-public PduPersister). For complete MMS content, temporarily switch the default SMS app back to the system “Messages”.

Screenshots

UI

Permissions & system requirements

Capability Depends on Notes
Read SMS/MMS READ_SMS List, search, export
Delete SMS/MMS Default SMS app (ROLE_SMS) Android 10+ via RoleManager
Write / new SMS Default SMS app SmsReceiver inserts when default
New MMS metadata Default SMS app MmsReceiver notification skeleton

No system permission dialog on cold start; request from Settings or the empty state.

MIUI note

MIUI adds a private “Notification SMS” toggle (App info → Permissions → Other). Without it, only person-to-person SMS is visible — 10086 / bank alerts stay hidden.

This toggle cannot be granted via public API. After READ_SMS is granted the app shows a one-tap guide to the MIUI permission editor; the home page also shows a dismissible hint.

Build & run

flutter pub get
flutter run
flutter test
flutter analyze
cd android && ./gradlew :app:testDebugUnitTest
flutter build apk --debug
flutter build apk --release

Requires Flutter 3.50.1 / Dart 3.14 (pinned in .github/flutter-version), Android minSdk 29.

Release signing

Release builds use the keystore in the repo, the same certificate as 1.9.0 (CN=sms):

  • android/key.properties
  • android/app/key/sms.keystore (storeFile is relative to android/app/)
flutter build apk --release

If those files are missing, a local release falls back to the debug signature. A version-tag build does not: it fails unless the APK certificate SHA-256 is 172fa47b456bfc4667320ae6d87b33c8791b8b2ade48b412dbd5005525909ce3.

Actions secrets KEYSTORE_BASE64, STORE_PASSWORD, KEY_PASSWORD, and KEY_ALIAS, when all four are set, replace the in-repo key for that job. The certificate check still applies. See docs/distribution.md.

Project structure

lib/
  main.dart                 # entry
  app.dart                  # theme + MaterialApp
  theme/tokens.dart         # palette
  models/sms_item.dart      # SMS/MMS model
  services/                 # channel / CSV / hidden list
  features/
    list/                   # home, cards, action sheet
    filter/                 # filter model + sheet
    delete/                 # delete confirm
    settings/               # settings / theme / permission
    widgets/                # empty states
android/app/src/main/kotlin/com/dc16/sms/
  MainActivity.kt           # MethodChannel dispatch
  SmsAccess.kt              # query / delete / permission / MIUI
  SmsReceiver.kt            # insert new SMS when default

Privacy

SMS content is used only for on-device display, filtering, and export. No network upload, no analytics.

License

MIT License

Explorer des projets similaires

Chargement…