Skip to content

Bash script that dumps contacts from an Android contacts2.db to stdout in vCard format. Especially helpful when the device is inop or missing, with only a contacts2.db file available (from backup, etc.) to migrate contacts to a new device.

Notifications You must be signed in to change notification settings

burunduk/dump-contacts2db

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

dump-contacts2db.sh

Dumps contacts from an Android contacts2.db to stdout in vCard format.

Usage

dump-contacts2db.sh path/to/contacts2.db > path/to/output-file.vcf

Dependencies

  • perl
  • base64
  • sqlite3

Tested platforms

  • Ubuntu 12.04 Precise Pangolin
  • Debian Squeeze/Wheezy

Tested Android versions (all Google Experience Devices)

  • 2.2 Froyo
  • 2.3.5 Gingerbread
  • 4.0.3 Ice Cream Sandwich
  • 4.1.1 Jelly Bean

Known issues

  • Doesn't handle file-not-found or type mismatch gracefully; need to implement validation
  • Doesn't handle missing sqlite gracefully; need to implement validation

About

Bash script that dumps contacts from an Android contacts2.db to stdout in vCard format. Especially helpful when the device is inop or missing, with only a contacts2.db file available (from backup, etc.) to migrate contacts to a new device.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%