Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

How can I extract contacts from Android files ?

OP moav

26th September 2010, 01:34 PM   |  #1  
moav's Avatar
OP Senior Member
Flag Haifa
Thanks Meter: 5
 
131 posts
Join Date:Joined: Jan 2010
If I saved all my Android files on my computer from a previous build, can I somehow get the contacts out of them files ? perhaps there's a file that contains all contacts ?
Last edited by moav; 26th September 2010 at 03:03 PM.
26th September 2010, 03:19 PM   |  #2  
hazard99's Avatar
Senior Member
Thanks Meter: 75
 
1,188 posts
Join Date:Joined: Jun 2009
More
log into your gmail and extract them that way
26th September 2010, 03:34 PM   |  #3  
moav's Avatar
OP Senior Member
Flag Haifa
Thanks Meter: 5
 
131 posts
Join Date:Joined: Jan 2010
That's the weird part, for some reason the number I'm looking for wasn't logged by Gmail, and that's why with the current build I didn't have his number imported as the rest.
Last edited by moav; 26th September 2010 at 03:35 PM. Reason: spelling
27th September 2010, 09:32 AM   |  #4  
itsme_4ucz's Avatar
Recognized Developer
Thanks Meter: 461
 
934 posts
Join Date:Joined: Jul 2007
The contacts are stored in a SQLite3 database file so the file format is ".db"

The development tool Android Debug Bridge (ADB) can be used to extract the file from an EMULATOR

ADB can also extract the file from a phone but it must be rooted first AND the ADB drivers must be installed on your machibe as well

(Rooting is NOT for beginners though)

The contacts.db file is stored in the protected system memory, the file path is:

data/data/com.android.providers.contacts/databases/contacts.db
The Following 4 Users Say Thank You to itsme_4ucz For This Useful Post: [ View ]
27th September 2010, 02:59 PM   |  #5  
moav's Avatar
OP Senior Member
Flag Haifa
Thanks Meter: 5
 
131 posts
Join Date:Joined: Jan 2010
Quote:
Originally Posted by itsme_4ucz

The contacts are stored in a SQLite3 database file so the file format is ".db"

The development tool Android Debug Bridge (ADB) can be used to extract the file from an EMULATOR

ADB can also extract the file from a phone but it must be rooted first AND the ADB drivers must be installed on your machibe as well

(Rooting is NOT for beginners though)

The contacts.db file is stored in the protected system memory, the file path is:

data/data/com.android.providers.contacts/databases/contacts.db


If I understood correctly this file should be in the SD card, but I cannot find one, nor the directory /com.android.providers.contacts/ .
27th September 2010, 03:06 PM   |  #6  
hazard99's Avatar
Senior Member
Thanks Meter: 75
 
1,188 posts
Join Date:Joined: Jun 2009
More
Your phone doesnt think its on the sdcard. It thinks its on the phone itself.

For my adb uses I use a program called android commander. It will allow you to navigate to that file.
27th September 2010, 03:10 PM   |  #7  
itsme_4ucz's Avatar
Recognized Developer
Thanks Meter: 461
 
934 posts
Join Date:Joined: Jul 2007
Try using root explorer app, it will get you there...
27th September 2010, 05:12 PM   |  #8  
moav's Avatar
OP Senior Member
Flag Haifa
Thanks Meter: 5
 
131 posts
Join Date:Joined: Jan 2010
My issue is not with the contacts on my working phone system, but on the files I copied before I've change to a new build. I thought there may be a chance it's on one of those files, but it sound much complicated then that.
27th September 2010, 09:50 PM   |  #9  
Senior Member
Thanks Meter: 7
 
184 posts
Join Date:Joined: Aug 2007
More
If you don't want to try itsme_4ucz's solution, why not copy the files back to your phone and sync again with Gmail?
28th September 2010, 12:15 PM   |  #10  
moav's Avatar
OP Senior Member
Flag Haifa
Thanks Meter: 5
 
131 posts
Join Date:Joined: Jan 2010
Because for some reason the build didn't load, that was the reason why I switched builds in the first place.
I don't want to root my phone for that, I'm pretty noob

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes