Guest Dweeb Posted January 14, 2010 Report Posted January 14, 2010 Hi! First post want to say what a great forum it is for a start been reading through it and felt confident enough to try flashing my phone which has worked a treat, almost :) I used the 3.1-update-hero-modacocustomrom its all working fine but now I cant see my old text messages they all seem to have disappeared :) Anyway I can get them to show back up in the messages thing? I did a backup before hand if I was to revert to that will they be avail that way? I copied everything off my mem card as well but I have no idea where the messages are actually saved? Thanks for your time :)
Guest stevenz Posted January 14, 2010 Report Posted January 14, 2010 They're in the /data/data/ folder somewhere. Restoring a nandroid backup will make the phone EXACTLY as it was at that time, returning it to the same state it was in, including messages which you can then backup somehow (several apps to do it, including the MCR3.1 Titanium backup option)
Guest pulser Posted January 14, 2010 Report Posted January 14, 2010 Hi! First post want to say what a great forum it is for a start been reading through it and felt confident enough to try flashing my phone which has worked a treat, almost :) I used the 3.1-update-hero-modacocustomrom its all working fine but now I cant see my old text messages they all seem to have disappeared :) Anyway I can get them to show back up in the messages thing? I did a backup before hand if I was to revert to that will they be avail that way? I copied everything off my mem card as well but I have no idea where the messages are actually saved? Thanks for your time :) Welcome to the forum. AFAIK, the messages are stores in a database on the data partition, so they only get lost if you did a wipe beforehand. So, did you wipe in recovery?
Guest Dweeb Posted January 14, 2010 Report Posted January 14, 2010 Welcome to the forum. AFAIK, the messages are stores in a database on the data partition, so they only get lost if you did a wipe beforehand. So, did you wipe in recovery? http://android.modaco.com/content/htc-hero...e-how-to-guide/ I did this and after booting it up I dont have my messages etc.. stored
Guest pulser Posted January 14, 2010 Report Posted January 14, 2010 (edited) http://android.modaco.com/content/htc-hero...e-how-to-guide/ I did this and after booting it up I dont have my messages etc.. stored Yes, if you followed those, you wiped the data partition (step 7), so they are no longer on the phone. They are in the nandroid backup though! There's some info here (http://forum.xda-developers.com/showthread.php?t=448361) about the actual database that stores the messages. Just looking at my own nandroid backups now to see if I can guide you through restoring that file to your new install by browsing the img on your PC. EDIT: OK, it looks do-able. Download this program- http://www.cygwin.com/setup.exe, and then download this zip file - http://jiggawatt.org/badc0de/android/unyaffs-x86-win.zip. The exe file is safe, it's a tool called cygwin that lets you run linux software on windows. Just take the default options and install it. Run the program from the start menu icon and you'll get a linux command prompt. Close it when it's fully loaded Then, unzip the small exe file that is called unyaffs.exe. Put it in the folder C:\cygwin\bin\ and the open a command prompt (Start Run, type 'cmd'). Also copy the file data.img from your nandroid backup into the folder C:\cygwin\bin\ Now type cd C:\cygwin\bin mkdir extracted unyaffs.exe data.img Now you should get a bunch of folders appear in that directory. Copy the file C:\cygwin\bin\data\com.android.providers.telephony\databases\mmssms.db to your desktop. Now set up adb for use (if it's not already), and type adb push mmssms.db /data/data/com.android.providers.telephony/databases/ That should work, but no guarantees. You've got a nandroid to restore to anyway, or you could just re-flash modaco if it didn't work... Now Edited January 14, 2010 by pulser
Guest Dweeb Posted January 14, 2010 Report Posted January 14, 2010 Yes, if you followed those, you wiped the data partition (step 7), so they are no longer on the phone. They are in the nandroid backup though! There's some info here (http://forum.xda-developers.com/showthread.php?t=448361) about the actual database that stores the messages. Just looking at my own nandroid backups now to see if I can guide you through restoring that file to your new install by browsing the img on your PC. Yeah I found the .img files with them all in and have tried mouting them to see if I can view the image but it didnt seem to work. I can load the custom firmware without wiping all the data? For those that have upgraded have you just accepted you lose your messages? Thanks for the replies :)
Guest pulser Posted January 14, 2010 Report Posted January 14, 2010 (edited) Yeah I found the .img files with them all in and have tried mouting them to see if I can view the image but it didnt seem to work. I can load the custom firmware without wiping all the data? For those that have upgraded have you just accepted you lose your messages? Thanks for the replies :) bump. see my edited post above on how to extract the data using cygwin and unyaffs Edited January 14, 2010 by pulser
Guest Dweeb Posted January 14, 2010 Report Posted January 14, 2010 bump. see my edited post above on how to extract the data using cygwin and unyaffs Thanks fella! I have managed to get the db file out but I have work soon so must resist the urge to carry on or ill be late (I find it hard to stop once ive started). By setup ADB for use you mean what by the way? Me being dim no doubt.
Guest pulser Posted January 14, 2010 Report Posted January 14, 2010 (edited) Thanks fella! I have managed to get the db file out but I have work soon so must resist the urge to carry on or ill be late (I find it hard to stop once ive started). By setup ADB for use you mean what by the way? Me being dim no doubt. No bother. I've only been at this for a month, so I like answering these kinds of questions, as it helps me find my way round the internals of the operating system. As for ADB, see http://theunlockr.com/2009/10/06/how-to-se...ndroid-devices/ . It's an all-right guide. You will need the command adb push mmssms.db /data/data/com.android.providers.telephony/databases/ after setting it up using that site's instructions. HTH, and I get the can't stop playing with Android urge too! Edited January 14, 2010 by pulser
Guest Dweeb Posted January 14, 2010 Report Posted January 14, 2010 No bother. I've only been at this for a month, so I like answering these kinds of questions, as it helps me find my way round the internals of the operating system. As for ADB, see http://theunlockr.com/2009/10/06/how-to-se...ndroid-devices/ . It's an all-right guide. You will need the command adb push c:\users\rich\mmssms.db /data/com.android.providers.telephony/databases/ Doesnt seem to have actually done anything, it appears to have copied but still not showing on my phone :)
Guest pillock Posted January 14, 2010 Report Posted January 14, 2010 I use "SMS backup and restore" from the market. Install it, back your texts up to SD card, flash new image, install app again, restore texts. 2 minute job.
Guest pulser Posted January 14, 2010 Report Posted January 14, 2010 (edited) Right I managed to set adb thing up did the push command which was adb push c:\users\rich\mmssms.db /data/com.android.providers.telephony/databases/ Doesnt seem to have actually done anything, it appears to have copied but still not showing on my phone :) Sorry mate. Typo alert! adb push c:\users\rich\mmssms.db /data/data/com.android.providers.telephony/databases/ should work (ie. another /data in there. If you want, and are careful, you can delete the file that's in the wrong place. Instructions to follow in edit... adb shell cd /data ls **check that you see the com.android.providers.telephony folder** rm -R /data/com.android.providers.telephony ls **check that it's gone now** exit That should do the trick :) Edited January 14, 2010 by pulser
Guest Dweeb Posted January 14, 2010 Report Posted January 14, 2010 Sorry mate. Typo alert! adb push c:\users\rich\mmssms.db /data/data/com.android.providers.telephony/databases/ should work (ie. another /data in there. If you want, and are careful, you can delete the file that's in the wrong place. Instructions to follow in edit... adb shell cd /data ls **check that you see the com.android.providers.telephony folder** rm -R /data/com.android.providers.telephony ls **check that it's gone now** exit That should do the trick :) I tried that SMSBackupRestore didnt work for some reason but that seems to have done the job pulser! I can now see them all. Thanks alot for your time fella I appreciate people taking the time to help me out :)
Guest pulser Posted January 14, 2010 Report Posted January 14, 2010 I tried that SMSBackupRestore didnt work for some reason but that seems to have done the job pulser! I can now see them all. Thanks alot for your time fella I appreciate people taking the time to help me out :) No probs. Good to hear it worked. Original posts updated with correct instructions for future reference. :)
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now