Have you ever wondered where your SMS go after you delete or reset your phone? Or were you trying to find a way to transfer your message history to a new smartphone, but didn't know where exactly Android stores this data? Unlike photos or documents, which are stored in obvious folders like DCIM or Downloads, SMS messages are hidden deep in the system depths of the device. Their location depends on the version of Android, the shell manufacturer (MIUI, One UI, ColorOS) and even on whether you are using the standard Messages application or a third-party messenger.

In this article we will look all possible storage locations for SMS - from the classic database mmssms.db to Google cloud backups, and also show how extract messages without root access, what tools are needed for this and why some methods stop working on new versions of Android. If you need to recover deleted SMS, transfer them to another phone, or simply understand how the storage system works, you will find here step-by-step guide taking into account all the nuances.

1. Standard storage location for SMS in Android: mmssms.db database

On most devices running Android 10 and below all SMS (as well as MMS) are stored in a database file mmssms.db, which is located along the path:

/data/data/com.android.providers.telephony/databases/mmssms.db

This file is SQLite database, where each table is responsible for a certain type of messages:

  • ๐Ÿ“„ sms โ€” text SMS (sender, recipient, text, date, status)
  • ๐Ÿ–ผ๏ธ mms โ€” multimedia messages (including attachments)
  • ๐Ÿ”„ pending_msgs โ€”messages in the queue for sending
  • ๐Ÿ“Š threads โ€” correspondence flows (grouping messages by contacts)

To view the contents of the database, you will need root access or special utilities like SQLite Browser. Without root privileges, the file will not be accessible due to Android security restrictions. However, even with root it is not always possible to simply copy mmssms.db - on some firmware (for example, MIUI from Xiaomi) the database is additionally encrypted.

โš ๏ธ Attention: Starting from Android 11, Google has tightened its access policy to system folders. Even with root access, the path /data/data/ may be blocked for reading. In such cases, you will need to use ADB with a command pull or specialized backup applications.
๐Ÿ“Š How do you usually save important SMS?
I donโ€™t save at all
I export manually
I use the Google cloud
Third-party applications

2. Alternative ways to store SMS on different firmware

Smartphone manufacturers often modify the standard Android structure, so the location of SMS may differ. Here are the most common options:

Firmware / Brand Path to SMS database Features
Samsung (One UI) /data/user_de/0/com.android.providers.telephony/databases/mmssms.db Uses user_de instead of data. Requires disabling Knox to access.
Xiaomi (MIUI) /data/data/com.android.providers.telephony/databases/mmssms.db The database is encrypted. To decrypt, you need a key from /data/system/users/0/.
Huawei (EMUI) /data/data/com.huawei.android.providers.telephony/databases/telephony.db The file name is different. Some messages may be duplicated in the cloud Huawei Cloud.
Google Pixel (Stock Android) /data/data/com.google.android.apps.messaging/databases/bugle_db Google's Messages application uses its own database bugle_db.

If you use third-party messengers (for example, Textra, Chomp SMS or Pulse SMS), the path to the database will be different. For example, in Textra messages are stored here:

/data/data/com.textra/databases/mms_sms.db

To find out the exact path for your application, check its package name via ADB:

adb shell pm list packages | grep sms
โš ๏ธ Attention: On devices with Android 12+ function "Permissions for files and media" even root access does not guarantee reading system databases. Google has restricted access to /data/data/ through the mechanism Scoped Storage.

3. How to Export SMS Without Root: 4 Working Methods

If you do not have root access, you can still extract SMS using legal methods. Let's consider the most reliable options:

Method 1: Backup via Google Drive

Android has a built-in SMS backup function to the Google cloud. To activate it:

  1. Open Settings โ†’ Google โ†’ Backup.
  2. Enable the option "Backup application data".
  3. Make sure that the list of backup data is Messages (or the name of your SMS application).
  4. Click "Backup now".

You can restore messages when setting up a new device or through Settings โ†’ System โ†’ Backup โ†’ Restore.

Method 2: Applications for exporting SMS

There are utilities that can save SMS in readable formats (.xml, .csv, .txt) without root. The best of them:

  • ๐Ÿ“ฑ SMS Backup & Restore (saves to .xml, supports clouds)
  • ๐Ÿ“ง Super Backup & Restore (exports to .csv and email)
  • ๐Ÿ–ฅ๏ธ SMS to Text (converts correspondence to a text file)

Example of working with SMS Backup & Restore:

Install the application from Google Play|Open it and click "Set up backup"|Select the format (.xml or .json)|Specify the folder to save (for example, SD card)|Click "Backup" and wait for completion-->

The finished file can be opened to a PC or transfer to another phone.

Method 3: ADB commands to extract SMS

If you have USB debuggingenabled, you can use ADB to copy the SMS database. Connect your phone to the PC and do:

adb backup -f sms_backup.ab -noapk com.android.providers.telephony

This command will create a file sms_backup.abwhich can then be unzipped using Android Backup Extractor.

Method 4: Synchronizing with Gmail (legacy method)

Previously, Android had a function for automatically forwarding SMS to Gmail via Settings โ†’ Wireless networks โ†’ More โ†’ SMS via Gmail. Now this method does not work on most devices, but on older firmware (Android 4.xโ€“7.x) it can still be found.

๐Ÿ’ก

If you use Google Messages, enable the "Web version" function (Settings โ†’ Messages for web). This will allow you to read and save SMS via a browser on your PC without exporting.

4. Where are deleted SMS stored and can they be restored?

When you delete an SMS in the standard application, the entry is not immediately erased from the database - it is marked as deleted (in the field deleted put 1). This means that with the quick action of the message you can restore using special utilities. However, there are nuances:

  • โณ Time limit: After 30 days (or after clearing the application cache), the entry is physically deleted from the database.
  • ๐Ÿ”„ Data overwriting: If the phone has received a lot of new SMS, the old ones may be overwritten.
  • ๐Ÿ”’ Encryption: On MIUI and some other firmware it is almost impossible to restore SMS without root.

Suitable for recovery:

  • ๐Ÿ› ๏ธ Dr.Fone (paid, but supports most brands)
  • ๐Ÿ“ฑ GT Recovery (requires root)
  • ๐Ÿ’ป EaseUS MobiSaver (works via PC)

If SMS were deleted a long time ago, the chances of recovery are minimal. In such cases, only backup copymade in advance will help.

How does the mechanism of "soft" deletion of SMS work?

When deleting an SMS in the database mmssms.db there is no entry is erased and marked with a flag deleted=1. The application stops displaying it, but physically the data remains until the cache is cleared or overwritten. This mechanism is similar to the โ€œrecycle binโ€ in the file manager, but with a strict time limit (usually 30 days).

5. Cloud storage of SMS: Google Messages and alternatives

Modern instant messengers increasingly offer cloud SMS synchronization. The leader here is an application Google Messagesthat automatically reserves messages in your Google account. To enable this feature:

  1. Open Google Messages.
  2. Tap on your profile avatar โ†’ Message settings.
  3. Select Backup and restore.
  4. Enable "Backup messages" and specify your Google account.

Advantages of cloud storage:

  • โ˜๏ธ Automatic synchronization between devices.
  • ๐Ÿ”’ Data encryption during transmission.
  • ๐Ÿ“ฑ Easy recovery on a new phone.

However, there are also disadvantages:

  • ๐Ÿšซ Not all manufacturers support Google Messages as the default application (for example, Samsung and Huawei use their messengers).
  • ๐Ÿ“ถ Requires a stable Internet connection for synchronization.
  • ๐Ÿ” Google can analyze the content of messages for targeted advertising (unless personalization is disabled).

Alternatives:

  • ๐ŸŽ iMessage (only for switching from Android to iPhone via Move to iOS).
  • ๐ŸŒ Pulse SMS (synchronizes messages through its own cloud service).
  • ๐Ÿ“ง Mysms (allows you to manage SMS from a PC and backup them on the developerโ€™s servers).
โš ๏ธ Attention: Cloud services can change the data storage policy. For example, in 2023, Google has reduced the free storage period for backups from unlimited to 1 year for inactive accounts. settings of your cloud service.

6. How to transfer SMS to a new phone: step-by-step guide

Transferring message history is one of the most popular tasks when changing a smartphone. Let's consider a universal method that works on most devices:

Step 1: Create a backup on your old phone

Use SMS Backup & Restore:

  1. Install the application and open it.
  2. Click "Create a backup".
  3. Select the format .xml and specify the folder (for example, Downloads).
  4. Confirm the creation of the copy.

Step 2: Transfer the file to the new phone

Copy the backup file (sms-YYYYMMDD.xml) to the new device via:

  • ๐Ÿ“ Explorer (via cable or via the cloud).
  • ๐Ÿ“ง Email (send the file to your email).
  • ๐ŸŒ Google Drive/Dropbox.

Step 3: Restore SMS on a new phone

Install SMS Backup & Restore on a new device and:

  1. Select "Recover".
  2. Specify the file backup copy.
  3. Confirm the restoration (the application will offer to make it a standard SMS client temporarily).

If you use Google Messages, you can use the built-in transfer function:

  1. On the new phone, open Google Messages.
  2. Sign in to the same Google account as on the old device.
  3. The application will offer to restore messages from the backup.
๐Ÿ’ก

When transferring SMS to a phone of another brand (for example, from Samsung to Xiaomi) use universal formats (.xml or .csv) and third-party applications. Built-in backup copies of manufacturers are often incompatible with each other.

7. Problems with accessing SMS: why you canโ€™t retrieve messages

Even following the instructions, you may encounter errors:

Problem Possible cause Solution
File mmssms.db not found Wrong path or firmware with custom storage location Check the path via ADB shell ls /data/data/ or use Root Explorer
No access to /data/data/ Limitations Scoped Storage in Android 11+ Use ADB backup or applications with rights android.permission.READ_SMS
SMS database is encrypted Firmware MIUI, EMUI or ColorOS Try TWRP + Disable DM-Verity or specialized utilities like MIUI Unlock Tool
The application does not see SMS No permission READ_SMS in AndroidManifest Check permission settings or use alternative utilities
Recovered SMS are not displayed Conflict with standard SMS application Make SMS Backup & Restore temporarily the default application

If none of the methods worked, try:

  • ๐Ÿ”ง Reset network settings (Settings โ†’ System โ†’ Reset โ†’ Reset mobile network).
  • ๐Ÿ“ฒ Install custom Recovery (for example, TWRP) to access system files.
  • ๐Ÿ’ป Contact the manufacturer (some brands, for example Samsung, provide official utilities for backup copying).

FAQ: Frequently asked questions about storing SMS in Android

Can I read another person's SMS if I have their phone?

Technically, yes, if the phone is unlocked. However:

  • On devices with encrypted (for example, Samsung Knox), you will need to enter your account password.
  • In some countries unauthorized access to other people's messages prosecuted by law.
  • Applications like WhatsApp or Signal store messages in encrypted form separately from SMS.
Why did all SMS disappear after updating Android?

This is a typical problem when upgrading to a new version of the OS. Reasons: Messages application during update. Data reset data-i="279">Database incompatibility

  • ๐Ÿ”„ Reset data Messages app during update.
  • ๐Ÿ“ฑ Database incompatibility (for example, transition from Android 10 on Android 13 may break the structure mmssms.db).
  • โ˜๏ธ Cloud backup conflict (if synchronization with Google was enabled, but the restoration was incorrect).

Solution: try restoring SMS from a backup (if you have one) or use utilities like Dr.Fone to scan the device.

How to save SMS in a format that can be printed?

For printing, it is most convenient to export messages to .PDF or .HTML. You can do this like this:

  1. Use SMS Backup & Restore to export to .xml.
  2. Open the file in a text editor (for example, Notepad++) and format it.
  3. Import data to Excel or Google Sheets to create a table.
  4. Save as .PDF via File โ†’ Print โ†’ Save as PDF.

Alternative: The application SMS to Text can immediately save correspondence in text form with date markings.

Is it possible to restore SMS after resetting the phone to factory settings?

The chances are extremely small, but they are there if:

  • ๐Ÿ”„ You made a backup copy before the reset (via Google, SMS Backup & Restore or the manufacturer).
  • ๐Ÿ› ๏ธ You had TWRP Recovery enabled and you made a backup of the partition /data.
  • โ˜๏ธ Messages were synchronized with the cloud (for example, Google Messages or Samsung Cloud).

If none of this was done, restore the SMS after a full reset almost impossible โ€”the data is physically deleted from the device memory.

Where are SMS stored in Dual SIM phones?

In devices with two SIM cards, messages are stored in the same database mmssms.db, but each message has an additional field subscription_id, which indicates the SIM number (for example, 1 for the first card and 2 for the second).

To separate messages by SIM, you can:

  • Use a filter in SMS Backup & Restore by phone number.
  • Export the database to .csv and sort by column subscription_id.