[Q] Extract individual contact info from CWM

Hetalk

Senior Member
Sep 30, 2011
3,021
3,135
0
Ahmedabad
I have GT-I9003.

I have CWM backups(for my original stock ROM/MIUI ROM/ CM9 ROM) for my phone, that I have saved on my PC.

Is there a way I can restore individual contact information from this backup?:confused:



=========-----------==================---------------===========

Additional Info: I found something here but am unable to understand it. If someone can understand it please explain.
http://nmlaxaman.blogspot.in/2012/06/how-to-retrieve-contacts-from-android.html
 
Last edited:

Hetalk

Senior Member
Sep 30, 2011
3,021
3,135
0
Ahmedabad
Well, no responses.
I did further googling and am able to extract contacts2.db from my backup.
More, I found a windows application sqlite browser that could open this database.
But, am stuck here. I could find names of contacts, but phone numbers seem to be in a different table. Anyone know a query to get this info?
 

XDA_Bam

Inactive Recognized Developer
Mar 27, 2011
416
824
0
Make a "new" backup of your current config. Then restore the "old" backup you want to get the contact infos out of. Boot the device and go to Contacts choose Settings => Export to SD-Card. All the contacts are now on your external SD. Now restore your "new" backup and boot your device. Go to Contacts choose Settings => Import from SD-Card.
 
  • Like
Reactions: Hetalk

Hetalk

Senior Member
Sep 30, 2011
3,021
3,135
0
Ahmedabad
Thanks XDA_Bam. I'm sure what you said would works but I want to do it the other way.
Reason:
Contact info I need is from my stock ROM backup, which was a few ROMs/kernels/scripts ago. And, it took a lot of time and effort to get CM9 customized/optimized the way it is now, and I dont want to risk it for a few contacts that didn't get synced to google.
I am sure there should be another way to do that, and I am pretty close to finding that way.
I could extract the sqlite contacts database and am able to open up the db file using a sqlite browser. It's just there are a lot of fields/tables out there, and it would take long time to do it myself.
Need help from someone who's been there.
Thanks again for your help.
 

Hetalk

Senior Member
Sep 30, 2011
3,021
3,135
0
Ahmedabad
Well, I found a way to do that with a lot of help from Google and XDA.
Thanks to everyone who wanted to help.
Steps for anyone else who needs to know
1) Extract the db file per instructions and files from http://forum.xda-developers.com/showthread.php?t=1370349
2) Get SQLite browser from http://sqlitebrowser.sourceforge.net/
3) Open this contact db file in SQlite browser.
4) Browse to table data, and a little searching can get your desired contact info.

MODS =============== This thread can be closed if rules say so =============
 
Last edited: