How to manually backup your SMS/MMS on Android?

How to manually backup your SMS/MMS on Android?

If you are going to change a phone or upgrade your system, it is vital to back up your data. One of the places where we store important data is our SMS/MMS, whether it is sentimental value or practical value, it is useful to back them up.

However, unlike photos, videos or audio files which can be transferred and backed up relatively easily, backing up SMS/MMS messages is more complicated and usually requires the use of a third-party app or service.

[[179684]]

Why do you need manual backup?

Although there are many different apps that can help you back up SMS/MMS, you may consider backing them up yourself for the following reasons:

  1. The app may not work on all devices and Android versions.
  2. The app may upload your backup data to the cloud, which may compromise the security of your content.
  3. By manually backing up, you can fully understand where your data goes and where it goes, reducing the risk of spyware snooping during the backup process.
  4. Manual backup is more time-saving, labor-saving and direct than other methods.

How to manually back up SMS/MMS?

To manually back up your SMS/MMS messages, you need to install an Android tool called adb on your computer.

Now, it's important to know that Android usually stores SMS/MMS messages in a database called mmssms.db.

Because the location of this database may be different on different devices, and other SMS apps will create their own databases, such as GO SMS will create the gommssms.db database, so the first thing you need to do is search for these databases.

Open a command line tool (I used Linux Terminal, you can also use Windows CMD or PowerShell) and run the following command:

NOTE: Below is a series of commands to accomplish this task, followed by an explanation of what each command does.

  1. adb root
  2. adb shell
  3. find / - name   "*mmssms*"  
  4. exit
  5. adb pull /PATH/ TO /mmssms.db /PATH/ TO /DESTINATION/FOLDER

explain

We start by using the adb root command to start adb in root mode - this gives us permission to read system protected files.

adb shell is used to enter the device's shell.

Then, find command is used to search the database. (In my case, I found the database at /data/data/com.android.providers.telephony/databases/mmssms.db)

Suggestion: If your terminal outputs too many irrelevant results, try using find parameters to streamline the results. (You can check the specific parameters on the search engine)

Android SMS/MMS Database

We then use the exit command to exit back to our local system directory.

***, use adb pull to copy the database file to a folder on our computer.

Now, when you want to restore SMS/MMS, whether it is to a new device or a new system version, just search for the specific location of SMS/MMS in the new system again and replace it with our backed up database.

Use adb push to replace it, for example:

  1. adb push ~/Downloads/mmssms.db /data/data/com.android.providers.telephony/databases/mmssms.db

<<:  Android Chronicles (14): Android 2.3 Gingerbread — The first major UI change

>>:  Essential for lazy people: multiple pull-down refresh, pull-up to load more, and configure custom header ad space library

Recommend

Hmm? Have I been spelling “嗯” wrong for so many years?

In daily life and chatting, the word "嗯"...

Game apps on the App Store paid list were punished!

Friends who are familiar with the paid list know ...

Is it good or bad for tea trees to bloom?

Are the tea trees in our tea garden blooming? Som...

Content Operations: How to achieve sustainable growth through content?

This article uses four steps to help newbies in e...

How should I consecrate the Wenchang Pagoda I purchased?

Speaking of Wenchang Tower, I believe many people...

How to design a high conversion landing page? Focus on these three aspects

Previously, the editor summarized 4 misunderstand...

Schwinger: The QED knocker who hides during the day and comes out at night

Schwinger is a low-key genius physicist. Yang Zhe...

Everything about Bitcoin in 2014 is in this report

Overall, 2014 can be described as a “Tale of Two ...

Zhihu brand promotion strategy!

Brand marketing on the Internet has always been a...