Review item DL-42 said saved messages "are not locked inside the phone": someone who copies the app's files off a rooted phone can read them. This note says what is protected today, what was fixed, and why the databases are not encrypted by the app itself yet.
- Android file-based encryption.
conversations.db(the message cache andspam_threads, the list of chats shown in Spam),spamless.db(rules, the two automatic allow lists, and older spam not yet moved),files/spamless_decisions.logand the shared prefs live in credential-encrypted app storage. On phones with file-based encryption (required for phones that ship with Android 10 or later; uMessage runs from Android 8) these files are encrypted with a key that only exists after the user unlocks the phone once after boot, so a stolen phone that is off, or has not been unlocked since boot, gives nothing away. Older phones use full-disk encryption, or none if the owner never set a screen lock. - App sandbox. While the phone runs, only uMessage (uid) can read the files. Other apps, USB file transfer and
adb pullwithout root can't. - No backups.
allowBackup="false",fullBackupContentanddataExtractionRulesexclude every domain from cloud backup and device-to-device transfer (checked in this wave). - No message text in logs. Logcat lines describe failures (exception, counts, file names), never message text or numbers; the decision log never holds message text and now keeps entries for 7 days (SU-40).
- Notifications. By default uMessage asks Android to show only the sender on a locked phone (SB-16): the posted notification is private and carries a public version with the sender. Whether Android honours that depends on the phone's own lock-screen setting: when it is set to "show all content", Android draws the private version in full, and no app can prevent that (Settings warns about it). Reply, Copy code and Delete ask for an unlocked phone. Android's own notification history (if the user turned it on) keeps notification text; the app can't opt out of that.
- Exports. The export dialog now says the file is not encrypted.
- Temporary export file (M-D3). A backup is first written in full to a plain temporary file in the app's
private cache, folder
cache/export_tmp, and only then copied (or encrypted) to the place the user chose; the copy is deleted right after. If the app is killed in between, the file is deleted at the next app start. - Google Drive hand-over copy. "Save to Google Drive" writes the backup file to
cache/drive_backupsand hands it to the Drive app. The copy stays until the next hand-over replaces it or the daily cache clean-up removes it (older than a day, so it can stay 24 to 48 hours). It is encrypted only when the user set a password. - Scheduled messages held by a restore (M-SEC2). A restore does not arm scheduled sends. Until the user turns
them on or discards them, their text and numbers wait in plain app-private preferences
(
umessage_scheduled_hold). Settings > Backup and the restore dialog ask about them. - Where spam is kept. New spam is written to Android's own SMS database, marked read and seen, like every other
text; uMessage keeps only the list of chats shown in Spam (
spam_threads: thread id, sender, cause, unread count, date it entered Spam). Nothing new goes intoblocked_messages. A spam MMS is downloaded into the SMS database too (up to 1 MiB, not while roaming). - Older spam. Spam that versions before provider truth kept only in
spamless.db(blocked_messages, with text) and innoBackupFilesDir/blocked_mms/(kept MMS files) is moved to Android's SMS database once uMessage is the default SMS app. The old copies are deleted 30 days after the last row moved. Rows that could not be moved stay as the only copy and are listed under "Older spam kept only in uMessage". - Message migration journal.
umessage_older_spam(app-private preferences) keeps the migration's progress across a kill: row and message ids, times, how each row was written, and thread ids. No text, no number. - Automatic allow lists. The members of "People you wrote to" and "Senders of a verification code" are rows in
spamless.db(allow_group_members: sender number or name, date, source). Senders the user removed from a list are kept in plain app-private preferences (umessage_group_removed), so the history check does not add them back. No message text. - Saved texts, SIM names and numbers. The saved texts list (for example an address or card number the user chose
to keep) and the nicknames and numbers typed for each SIM are plain text in the app's private preferences
(
spamless_composer). They are not encrypted by the app and not uploaded; the app lock does not encrypt them. The saved texts dialog says so and advises against saving passwords. - Shared pictures. Pictures are copied to the app cache before sending; the copy has its location and camera tags removed (Settings > Messages, on by default). The original is untouched.
- Starred messages. A star keeps a copy of the message text in
starred_messages(conversations.db), so a starred message stays when its chat is deleted. The Starred list says so, and Unstar removes the copy. - Search column. The message cache in
conversations.db(database version 15) also keepsbody_folded, the message text with Persian/Arabic letters and digits normalised, so search is fast. It is derived from the cached body, lives and is deleted with it, and is not in backups.
What this does not cover: a phone that is rooted or exploited while unlocked can read any app's files, and Android's SMS database (where every message lives, spam included) is outside the app anyway, so app-level encryption would only cover the copies in uMessage's own databases.
| Protection gained | Only against reading copied files on a rooted/exploited unlocked phone. The key would sit in Android Keystore, which the same attacker can usually use while the phone is unlocked, so the gain is small. All messages, spam included, stay readable in the system SMS database. |
| Migration | Each existing conversations.db and spamless.db must be exported into an encrypted copy (sqlcipher_export) on first start, with the backup/recovery code (DatabaseBackups, MessagesDatabaseRecovery, SpamDatabaseRecovery) taught to handle both formats. A failed migration risks older spam not yet moved and scheduled messages, data the app holds the only copy of. |
| Key handling | Keystore-wrapped key; a Keystore reset (some OEMs after a lock-screen change) would make the databases unreadable, so a recovery story is needed. |
| Performance | SQLCipher costs roughly 5-15% on queries and a slower first open (key derivation), on the SMS receive path where time is limited. |
| APK size | About +3-7 MB of native libraries per ABI. |
| F-Droid | Builds from source; the SQLCipher AAR ships prebuilt native code, which F-Droid accepts only when it can rebuild it, which complicates reproducible builds. |
Do not add database encryption now. Android's file-based encryption plus the sandbox already cover the realistic cases (lost or stolen phone, other apps, USB, backups), and the remaining case (a rooted or exploited unlocked phone) is only partly helped by SQLCipher because the key is usable on that same phone. The migration risk to older spam and scheduled messages, the receive-path slowdown, APK size and the F-Droid build cost outweigh that.
Revisit if uMessage starts keeping message copies outside credential-encrypted storage (for example direct-boot aware storage so it can filter before the first unlock), or if users ask for a separate app-only passphrase. In that case, encrypt only the message text uMessage keeps itself (the cache, stars, notes, scheduled messages) with a Keystore key (field-level, no SQLCipher), which avoids the database migration and native libraries.