Skip to content

Convert android contacts2.db files to a .csv (for emergency contact recovery from Android phones, file should be in "/data/com.android.providers.telephony/databases/contacts2.db" <-- hidden file requiring root access

License

Notifications You must be signed in to change notification settings

djvs/android-contacts-db-to-csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

android_db_to_csv

Convert android contacts2.db files to a .csv (for emergency contact recovery from Android phones, file should be in "/data/com.android.providers.contacts/databases/contacts2.db" <-- hidden file requiring root access

#Instructions

Get your contacts2.db (maybe contacts.db will work, dunno) file from

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

Replace the top two filepath lines with the appropriate definitions,

output_filepath = "/sample/filepath"
path_to_contactsdb_file = "/sample/path/to/contacts2.db"

and then just run the script (or copy and paste it into an irb session). It will dump out a CSV with names and phone numbers. Modify for additional fields as needed - I didn't need any others.

About

Convert android contacts2.db files to a .csv (for emergency contact recovery from Android phones, file should be in "/data/com.android.providers.telephony/databases/contacts2.db" <-- hidden file requiring root access

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages