FORUMS

Analysis & Opinion

Top Forum Discussions

How can I extract contacts from Android files ?

131 posts
Thanks Meter: 5
 
By moav, Senior Member on 26th September 2010, 12:34 PM
Post Reply Subscribe to Thread Email Thread
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 02:03 PM.
 
 
26th September 2010, 02:19 PM |#2  
hazard99's Avatar
Senior Member
Thanks Meter: 78
 
More
log into your gmail and extract them that way
26th September 2010, 02:34 PM |#3  
moav's Avatar
OP Senior Member
Flag Haifa
Thanks Meter: 5
 
More
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 02:35 PM. Reason: spelling
27th September 2010, 08:32 AM |#4  
itsme_4ucz's Avatar
Recognized Developer
Thanks Meter: 471
 
More
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, 01:59 PM |#5  
moav's Avatar
OP Senior Member
Flag Haifa
Thanks Meter: 5
 
More
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, 02:06 PM |#6  
hazard99's Avatar
Senior Member
Thanks Meter: 78
 
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, 02:10 PM |#7  
itsme_4ucz's Avatar
Recognized Developer
Thanks Meter: 471
 
More
Try using root explorer app, it will get you there...
27th September 2010, 04:12 PM |#8  
moav's Avatar
OP Senior Member
Flag Haifa
Thanks Meter: 5
 
More
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, 08:50 PM |#9  
Senior Member
Thanks Meter: 9
 
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, 11:15 AM |#10  
moav's Avatar
OP Senior Member
Flag Haifa
Thanks Meter: 5
 
More
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
28th September 2010, 11:33 AM |#11  
Senior Member
Thanks Meter: 6
 
More
I could be wrong, but...


Wouldn't that file be in the data.img file system image? If so, you can mount that file in Linux, or most likely Windows, then browse to the location mentioned above.

That'll at least get you there, but you still have to get the data out. Perhaps copy that one to the phone's current file system. If not, I'm sure someone will come up with something if the above posts don't work.

Read More
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes