Yes, Android text messages are stored on your phone, but not as a tidy folder of readable files you can browse to. They live in a protected SQLite database inside the phone's internal storage, managed by whichever messaging app you use, and the default app decides whether the data stays only on-device or also syncs to a cloud account.
Understanding that structure explains why messages survive some events, vanish after others, and why backups behave differently across brands.
The database behind every SMS and MMS
Android stores SMS and MMS messages in a SQLite database that the system's telephony provider exposes through a content provider. The database file is typically named mmssms.db, and it holds message bodies, timestamps, thread groupings, phone numbers, read status, and MMS attachment metadata.
A separate part of the same storage area holds the actual MMS media files, because a photo or audio clip attached to a message is far too large to sit inline in the database rows.
You cannot normally see this database through a file manager. It sits under /data/data/com.android.providers.telephony/databases/ on stock Android, a path that requires root access to read. That protection is deliberate: message bodies are among the most sensitive data on a phone, so Android isolates the store behind app sandboxing and permission checks. Apps with the SMS permission role can query it through the content provider; ordinary apps cannot open the file directly.
The practical consequence is that "where are my texts stored" has two answers. Physically, they are in an app-private database on internal storage. Logically, they are in a system-level message store that the default SMS app reads and writes. If you switch default messaging apps, the new app usually inherits the same database rather than starting empty, which is why your history follows you between Google Messages, Samsung Messages, and most third-party SMS apps.
The default app decides what syncs and what stays local
The single most important variable on modern Android is which app is set as the default SMS handler, because that app controls backup and cloud behavior. Android itself does not push your SMS to a Google account by default. Sync is a feature of the messaging app, not the operating system.
Google Messages, when installed and set as default, can back up SMS and MMS to your Google account through Android's backup system. On many phones this runs as part of Google One backup, and the messages are restored when you sign into a new device with the same account, provided the backup was current and the restore is offered during setup.
Samsung Messages and the Samsung ecosystem on Galaxy phones instead lean on Samsung Cloud and Smart Switch, so a Samsung backup does not automatically appear in a Google-account restore, and vice versa.
Third-party messaging apps vary widely. Some store messages only in the shared system database with no cloud backup of their own; others run their own encrypted servers, particularly apps built around RCS or proprietary messaging rather than plain SMS.
The label matters: an app that handles SMS as the default can read the system store, but an app that only offers its own chat protocol may keep conversations entirely on its servers. Check the app's own settings for a backup or sync toggle rather than assuming the operating system handles it.
A phone with no Google account, or with backup disabled, keeps messages purely local. They remain on internal storage until the app or system deletes them. That is a real and common configuration, not an edge case.
Does deleting a message or thread really remove it?
When you delete a message in your messaging app, the app removes the row from the database and the thread disappears from the interface. The underlying storage blocks are not necessarily overwritten immediately, which is why forensic recovery tools can sometimes resurrect deleted messages from a phone that has not been heavily used since deletion.
On encrypted, modern Android devices this recovery is much harder than on older hardware, but "deleted from the app" and "physically erased from the flash chip" are not the same event.
Deleting a whole conversation works the same way at larger scale. The thread's rows and its associated MMS media are removed, but the media files in the MMS parts store can linger until the system reclaims that space. Factory reset is the operation that actually wipes the user data partition and, on encrypted devices, destroys the keys needed to read it.
If your goal is to make messages unrecoverable, a factory reset is the reliable step; clearing a thread is not.
Auto-delete settings complicate the picture. Google Messages and some manufacturer apps offer automatic deletion of one-time password messages after a set period, and RCS conversations may have disappearing-message timers. In those cases the app is deleting rows on a schedule, so a message you saw yesterday may genuinely be gone from the database today.
Where the media attached to messages lives
MMS attachments follow the same pattern but with a split. The message record in the database points to a stored file, and that file sits in an app-managed directory on internal storage, typically under the telephony provider's files area rather than the user-visible Pictures folder. When you save an image from a message to your gallery, the messaging app copies it out to shared storage; the original stays in the MMS store.
This split explains a common frustration. Clearing the messaging app's cache or data can remove media that was never copied to the gallery, even though the text of the conversation might be restored from a backup that included only the database. Backup systems that capture SMS often capture the database and its media store together, but a partial restore can leave conversations with missing images.
If a photo in a text matters to you, saving it to the gallery or a cloud photo service is the durable move.
RCS messages, which many carriers and Google Messages now use instead of SMS, are a different store. Chat messages sent over RCS may be held by the RCS provider's servers and synced to the app on your device, so their persistence depends on that service's retention and your account, not solely on the phone's local database.
SIM cards, carriers, and what is not on your phone
SMS was designed with the network in mind, so it is worth separating three locations. The message as delivered passes through your carrier's Short Message Service Center, which routes it and may retain it briefly for delivery retries. Carriers generally do not offer consumers a message archive; the network copy is operational, not a personal backup, and retention varies by carrier and jurisdiction.
The SIM card can store a small number of SMS messages in a legacy format, and some phones still expose a "copy to SIM" option. This is a tiny capacity, text-only store with no MMS support, and most modern phones and carriers do not rely on it. If you have ever moved a SIM between phones and seen a handful of old texts appear, that is the SIM store, not your full history.
Your phone's internal database is therefore the primary store, the carrier network is a transient routing layer, and the SIM is a negligible legacy slot. Cloud backup, where enabled, is a copy of the phone's store held by Google, Samsung, or the messaging app's provider.
Finding and exporting your own messages
You cannot open mmssms.db without root or a debugging setup, but you have legitimate routes to your data. The built-in backup features of Google or Samsung produce a restore file for a new device, not a human-readable export.
For a readable archive, third-party SMS backup apps request the SMS permission and export conversations to XML, JSON, or PDF on your own storage; those exports are copies, not the live store, and they should be treated with the same care as the messages themselves.
On a computer, adb can pull a backup of app data only if the app permits backup and you authorize it, and the telephony provider's database is generally excluded from that path on modern Android. The realistic consumer answer is: use your messaging app's built-in export or backup, or a reputable SMS backup app, and store the resulting file somewhere you control.
Manufacturer desktop tools like Samsung Smart Switch can also transfer messages between a phone and a PC as part of a device migration.
Why messages survive a new phone but vanish after a reset
The behavior people find confusing usually traces to which backup was active. A phone that restores texts on a new device after signing into Google had Google backup enabled with SMS included, and the restore happened during setup. A phone that arrives empty either had backup off, backed up to a different account, used a manufacturer cloud that the new phone doesn't query, or was restored without selecting messages.
Factory reset without a backup erases the database, the MMS store, and the encryption keys together, so nothing remains to restore. Removing and re-adding a Google account does not delete locally stored messages, but it can sever the link to a backup made under that account.
Switching default messaging apps generally preserves the shared database, though some apps import history only on first launch and can appear to lose messages if the import step is skipped.
The reliable rule: messages persist across app changes and account changes as local data, but they persist across devices only if a backup that includes SMS was enabled, current, and restored under the same account and ecosystem.
How long messages stay, and what controls it
There is no universal Android retention period. Messages remain until something deletes them: you, an auto-delete rule in the app, storage pressure under aggressive cleanup settings, a factory reset, or the app's own data being cleared. A phone with plenty of free storage and no auto-delete will keep years of texts. A phone set to delete one-time passwords after a few minutes will not.
Carrier-side retention is separate and not user-visible. If you need messages for legal, medical, or financial records, do not rely on the phone or the carrier to keep them; export them to a format you control and back that up independently. That is a records-management decision, not a phone setting, and it is the only approach that survives a lost, broken, or reset device.
Quick reference: where each copy lives
| Location | What it holds | Who can access it | Survives factory reset |
|---|---|---|---|
Phone internal database (mmssms.db) |
All SMS/MMS text, threads, metadata | Default SMS app; root only for direct file access | No |
| MMS media store on internal storage | Photos, audio, video attached to messages | Messaging app; copies saved to gallery are separate | No |
| Google account backup | Copy of SMS/MMS if enabled in Google backup | You, via restore on a new device | Yes, if restored |
| Samsung Cloud / Smart Switch | Copy of messages on Galaxy devices | You, within Samsung ecosystem | Yes, if restored |
| Carrier SMSC | Transient routing copy | Carrier only, not a consumer archive | Not applicable |
| SIM card | Small legacy set of text-only SMS | Phone with SIM access | Depends on SIM |
The table makes the practical point clear: the phone is the primary store, the cloud is an optional copy that depends on settings and ecosystem, and the carrier and SIM are not backups. If you want your messages to exist somewhere after the phone is gone, the copy has to be one you enabled and can restore.
Frequently Asked Questions
Are Android text messages stored on the SIM card?
Only a small legacy set, and only if you or your phone copied them there. The SIM's SMS capacity is tiny, text-only, and unsupported for MMS. Your real message history lives in the phone's internal database, not the SIM.
Can I read the Android message database file directly?
Not on a normal, unrooted phone. The database sits in app-private internal storage protected by Android's sandbox, and only apps holding the SMS role can query it through the system content provider. Root access or a specialized forensic setup is required to open the file itself.
Do my texts back up automatically to Google?
Only if a messaging app with SMS backup enabled is set as default and Google backup is turned on for your account. Android does not sync SMS to Google by default, and a phone without a Google account or with backup off keeps messages entirely local.
Why did my messages disappear after switching phones?
The most common cause is that no backup including SMS was enabled, or the restore happened under a different account or ecosystem than the one that made the backup. A Google backup does not restore through Samsung Cloud, and a backup made with backup disabled does not exist to restore.
Are RCS chats stored the same way as SMS?
Not exactly. RCS conversations may be held on the RCS provider's servers and synced to the app, so their persistence depends on that service and your account rather than solely on the phone's local database. Plain SMS and MMS depend on the on-device store and whatever backup you enabled.