Make sure you had the backup archive downloaded to somewhere safe before doing anything with the phone’s
firmware.
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 :
http://code.google.com/p/unyaffs/downloads/list
It may need to recompile first.
would be something like ..
gcc -o unyaffs unyaffs.c |
or if you had svn client ..
svn checkout http://unyaffs.googlecode.com/svn/trunk/ 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.
“/data/com.android.providers.telephony/databases/mmssms.db”
and all the attachment from MMS is stored under
“/data/com.android.providers.telephony/app_parts/”
namran@nb-namran:~/nexus-one-data/data/com.android.providers.telephony$ find . . ./databases ./databases/telephony.db ./databases/mmssms.db ./shared_prefs ./shared_prefs/preferred-apn.xml ./lib ./app_parts ./app_parts/PART_1284111258517 ./app_parts/PART_1284683678596 ./app_parts/PART_1284683731880 ./app_parts/PART_1284685457572 ./app_parts/PART_1284685355626 ./app_parts/PART_1281176217164 ./app_parts/PART_1284689627986 ./app_parts/PART_1284720974895 ./app_parts/PART_1280655729505 ./app_parts/PART_1284685390163 ./app_parts/PART_1284111252801 ./app_parts/PART_1280652806795 ./app_parts/PART_1284685387300 |
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/com.android.providers.telephony/databases/mmssms.db /data/com.android.providers.telephony/databases/mmssms.db adb shell 'chown radio.radio /data/com.android.providers.telephony/databases/mmssms.db' adb shell 'chmod 775 /data/com.android.providers.telephony/databases/mmssms.db' adb shell 'mkdir -p /data/com.android.providers.telephony/app_parts/' adb push ./data/com.android.providers.telephony/app_parts/ /data/com.android.providers.telephony/app_parts/ adb shell 'chown radio.radio -R /data/com.android.providers.telephony/app_parts' adb shell 'chmod 775 -R /data/com.android.providers.telephony/app_parts' |
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/*' |
Perfect. Worked like a charm. Thanks for the detailed post.
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! 🙂
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
Very good tutorial, good job, thanks a lot ! 🙂
superb bro:)
big thanks, words cannot express my gratitude!
super post buddy! helped a lot! Thanks!
The package download link for the downgrade tool is not working anymore. Found something similar here: http://www.mediafire.com/?adny69lbvzbs1yg
pls i did as u instructed but still my hboot is 1.0.1002..what should i do now
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?
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.
hello, all package link seems dead, can you upload it again please ?
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