Joke Collection Website - Public benefit messages - How to retrieve previous text message content

How to retrieve previous text message content

Android (the implementation may be different in different versions) smartphones use Sqlite database to save short messages.

Short messages are generally stored in: /data/data/com.android.providers.telephony/databases/mmssms.db

database file.

When your text message disappears inexplicably or is indeed deleted, in the Sqlite file, Sqlite will modify the Header information of the CellPayload that saves the text message content in the CellContent area, and modify the CellPayload in the corresponding index. The index number (so the index is actually still there, but the index number has been -1), so that the program can no longer read this information.

When this process just happened, the content of your text message still existed, but the CellPayload Header and corresponding CellPayload Index area of ??that message were modified. At this time, you can use the recovery program to traverse the text messages (I did this) to get the index of the deleted text message, then reposition it, and finally restore the text message content manually.

However, if this process occurs after a period of time, Sqlite will offset the data to organize the data.

At this time, your text messages are almost hopeless.

Suggestions: 1. Immediately copy your mmssms.db file backup, do not let the mobile phone system operate this db file again to ensure that Sqlite will not perform data offset processing on this file.

Suggestion: 2. Search for professional Sqlite recovery software for recovery.