Long story short : I needed to get my sms from my old motoG and transfer them to my new motoG5. Here is how:
This can be done without any third part app, only a capable recovery and adb is needed.
Get your old SMS
- take you Nand backup you hopefully did before your device died.
- find the mmssms.db file that you can find in :
-
Use :Code:
data.f2fs.win000
Android 6:Code:tar –xf data.f2fs.win000.tar.gz
Android 7:Code:/data/data/com.android.providers.telephony/databases/
Code:/data/user_de/0/com.android.providers.telephony/databases/ - Copy mmssms.db to your computer.
Import your database to your new device
==> root is needed for that operation
- Push mmssms.db to your device (depending on you android version, see above)
e.g.:
Code:adb push ./mmssms.db /data/user_de/0/com.android.providers.telephony/databases/mmssms.db - Delete any journal.db you may find in the same folder.
- Wipe cache and art-cache
- Reboot.
- Delete sms-mms application data
- Start the sms-mms app
- Voilà!
An alternative way that doesn't require root is available here. (thx to @Mirhawk)
also thx to @dlegit for the new directory.