How to recover previous SMS/MMS on NexusOne backup archive

Make sure you had the backup archive downloaded to somewhere safe before doing anything with the phone’s

There is one app inside the market that allow the full backup.
search for “Titanium Backup”.
But that may need “root” (can be either “SoftRoot” first).

Transfer the archive files from sdcards into your pc/laptop.
It would be something like “data.img”.

Then download the “extractor” from below :

It may need to recompile first.
would be something like ..

gcc -o unyaffs unyaffs.c

or if you had svn client ..

svn checkout unyaffs
cd unyaffs
gcc -o unyaffs unyaffs.c

then to extract the data.img is just

./unyaffs /home/namran/data/data.img

(path to file should reflect the path to file ..)

it shall then created the folder and extracting all the content inside that archive.

something like below :

namran@nb-namran:~/nexus-one-data$ ls -l
total 175368
drwxr-xr-x   2 namran namran      4096 2010-09-19 03:43 anr
drwxr-xr-x   2 namran namran      4096 2010-09-19 03:43 app
drwxr-xr-x   2 namran namran      4096 2010-09-19 03:43 app-private
drwxr-xr-x   5 namran namran      4096 2010-09-19 03:43 backup
drwxr-xr-x   2 namran namran     16384 2010-09-19 03:43 dalvik-cache
drwxr-xr-x 179 namran namran     12288 2010-09-19 03:43 data
-rw-r--r--   1 namran namran 179055360 2010-09-19 03:42 data.img
drwxr-xr-x   2 namran namran      4096 2010-09-19 03:43 dontpanic
drwxr-xr-x   3 namran namran      4096 2010-09-19 03:43 local
drwxr-xr-x   2 namran namran      4096 2010-09-19 03:43 lost+found
drwxr-xr-x   9 namran namran      4096 2010-09-19 03:43 misc
drwxr-xr-x   2 namran namran      4096 2010-09-19 03:43 property
drwxr-xr-x   8 namran namran      4096 2010-09-19 03:43 system
drwxr-xr-x   2 namran namran      4096 2010-09-19 03:43 tombstones

the SMS/MMS database reside somewhere under the following folders.

and all the attachment from MMS is stored under

namran@nb-namran:~/nexus-one-data/data/$ find .

and yes. it is a SQLLite DB i think.

to restore this SMS/MMS database to your phone.

Just re-transfer them to your phone

adb push ./data/ /data/
adb shell 'chown /data/'
adb shell 'chmod 775 /data/'
adb shell 'mkdir -p /data/'
adb push ./data/ /data/
adb shell 'chown -R /data/'
adb shell 'chmod 775 -R /data/'

for WIFI setting and password :

adb push ./misc/wifi/wpa_supplicant.conf /data/misc/wifi/

if the “Messages” is having “force close ” problem.. after restoring backup database.
you may need to run “Fix Permission” once. and reboot the phone.

or possibly can be fixed with just the following

adb shell 'chmod 775 /data/com.providers.telephony/mmssms.db'
adb shell 'chmod 775 /data/com.providers.telephony/app_parts/*'

Get Free Email Updates!

Signup now and receive an email once I publish new content.

I will never give away, trade or sell your email address. You can unsubscribe at any time.


Related Post

13 Responses

  1. Raghavendra says:

    Perfect. Worked like a charm. Thanks for the detailed post.

  2. KarmaDice says:

    You are amazing mate.

    Currently, it is booting into Cyanogenmod. Which is taking a bit long.
    So far, things were ok. If after booting it works wonders, I will link back to your blog on my blog website.

    Thank you so much! 🙂

  3. Kendall says:

    So i decided to try this out on my HTC Desire, which has becmoe slower and more unusable each day, so a few things i encountered on the way which could only be me, but the unrevoked tool didn’t want to load until i had a fresh reboot but like i say that could just be me. So anyway i followed the steps without a hitch did a reset and it boot looped for a while so i decided to go reset and do a clear data and cache and then reset the phone again and it booted up (a sigh of relief that i didn’t brick my phone) I also used the clockworkmod to do a backup of the phone just incase it decided to go south on the new installation, However its fine working really well a few things i was wondering is does anyone have wifi issues, i mean mine just drops out most of the time it could be battery but its in the green. Other than that flash light works bluetooth i haven’t tried phone sms mms dialing numbers etc i have tried. It seems to be alot faster than the froyo i had from when i got the phone so thats a deffinate plus, it is deffinately a new phone i am really enjoying these features the makers had popped in there, no issue with google apps too. So i would have to say just go ahead and grab this its awesome

  4. Zewby says:

    Very good tutorial, good job, thanks a lot ! 🙂

  5. CJ says:

    superb bro:)

  6. ren says:

    big thanks, words cannot express my gratitude!

  7. Aashish2137 says:

    super post buddy! helped a lot! Thanks!

  8. sdfg says:

    The package download link for the downgrade tool is not working anymore. Found something similar here:

  9. Max says:

    pls i did as u instructed but still my hboot is 1.0.1002..what should i do now

  10. voyance gratuite says:

    fantastic issues altogether, you simply gained a new reader.
    What would you suggest about your post that you simply made some days ago?
    Any certain?

  11. all inclusive vacations to us virgin islands says:

    If some one wants expert view on the topic of blogging and
    site-building then i advise him/her to pay a visit this weblog, Keep up the nice work.

  12. flem says:

    hello, all package link seems dead, can you upload it again please ?

  13. ojetenui says:

    Could you please upload again the package to do the downgrade ? Your link is not working and the link that other user posted in comments isn’t neither


Anything to add?