Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,811,541 Members 52,862 Now Online
XDA Developers Android and Mobile Development Forum

How can I extract contacts from Android files ?

Tip us?
 
moav
Old
(Last edited by moav; 26th September 2010 at 02:03 PM.)
#1  
moav's Avatar
Senior Member - OP
Thanks Meter 5
Posts: 131
Join Date: Jan 2010
Location: Haifa
Question How can I extract contacts from Android files ?

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 ?
 
hazard99
Old
#2  
hazard99's Avatar
Senior Member
Thanks Meter 75
Posts: 1,188
Join Date: Jun 2009
log into your gmail and extract them that way
samsung blackjack
Apple iphone 1
Htc G1
Htc Hd2
Samsung Vibrant
Lg g2x
Samsung gs2
Nexus 4

android is passion
 
moav
Old
(Last edited by moav; 26th September 2010 at 02:35 PM.) Reason: spelling
#3  
moav's Avatar
Senior Member - OP
Thanks Meter 5
Posts: 131
Join Date: Jan 2010
Location: Haifa
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.
 
itsme_4ucz
Old
#4  
itsme_4ucz's Avatar
Recognized Developer
Thanks Meter 447
Posts: 896
Join Date: 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: [ Click to Expand ]
 
moav
Old
#5  
moav's Avatar
Senior Member - OP
Thanks Meter 5
Posts: 131
Join Date: Jan 2010
Location: Haifa
Quote:
Originally Posted by itsme_4ucz View Post
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/ .
 
hazard99
Old
#6  
hazard99's Avatar
Senior Member
Thanks Meter 75
Posts: 1,188
Join Date: Jun 2009
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.
samsung blackjack
Apple iphone 1
Htc G1
Htc Hd2
Samsung Vibrant
Lg g2x
Samsung gs2
Nexus 4

android is passion
 
itsme_4ucz
Old
#7  
itsme_4ucz's Avatar
Recognized Developer
Thanks Meter 447
Posts: 896
Join Date: Jul 2007
Try using root explorer app, it will get you there...
 
moav
Old
#8  
moav's Avatar
Senior Member - OP
Thanks Meter 5
Posts: 131
Join Date: Jan 2010
Location: Haifa
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.
 
4tune
Old
#9  
Senior Member
Thanks Meter 5
Posts: 173
Join Date: Aug 2007
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?
Nowadays OPPO find 7 (X9076)
 
moav
Old
#10  
moav's Avatar
Senior Member - OP
Thanks Meter 5
Posts: 131
Join Date: Jan 2010
Location: Haifa
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


WowWee Mip – Android Accessory Review – XDA Developer TV

The holidays will be here in no time, so why not start thinking about … more

Stream Your Media Files with the New Version of Droid Sync Manager

Android is a Linux-based operating system, but this fact doesn’t put … more

Old but Gold Internet Browser is a Blast from the Past

A Web browser is one of these applications that we can’t live without. We useit … more

Real-World Battery Saving Tips for Android – XDA Developer TV

You need Real-World Battery Saving Tips for your Android device. Our … more