Skip to content

RuslanUC/acdb2vcf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Android Contacts Database To VCF

Tools to extract data from Android Contacts Database (SQLite3). By default, it's located at /data/data/com.android.providers.contacts/databases/contacts2.db although some manufacturers may change it.

The easy way to get contacts2.db is using adb tool:

$# adb pull /data/data/com.android.providers.contacts/databases/contacts2.db

More information about Android Contacts Database can be found on:

Python tool by to export contacts data from Android Contacts Databases (SQLite3) to vCard 3.0 text files. It's useful to recover contacts data from an Android phone (contacts2.db) into Google Contacts or other services supporting vCard file format (.vcf).

acdb2vcf.py v2.0 supports:

  • Android Contacts Database format (SQLite3).
  • Account type filtering: Google, Exchange, WhatsApp, Telegram, Phone, SIM, ...
  • Custom account types
  • N, FN, ADR, BDAY, EMAIL, NOTE, ORG, ROLE, TEL properties from vCard 3.0 standard.

Usage

usage: acdb2vcf.py [-h] [--all] [--exchange] [--google] [--imap] [--phone] [--sim] [--telegram] [--tuenti] [--twitter] [--whatsapp] [--list-accounts] [--account [ACCOUNTS ...]] db_path [vcf_path]

positional arguments:
  db_path               Path to input contacts2.db
  vcf_path              Path to output vcf file

options:
  -h, --help            show this help message and exit
  --all, -a             Export all accounts
  --exchange            Export contacts associated with "exchange" account
  --google              Export contacts associated with "google" account
  --imap                Export contacts associated with "imap" account
  --phone               Export contacts associated with "phone" account
  --sim                 Export contacts associated with "sim" account
  --telegram            Export contacts associated with "telegram" account
  --tuenti              Export contacts associated with "tuenti" account
  --twitter             Export contacts associated with "twitter" account
  --whatsapp            Export contacts associated with "whatsapp" account
  --list-accounts       Just list accounts
  --account [ACCOUNTS ...]
                        Export account that is not listed above

Additional info

It's based on Python2 tool AndroidContactsDatabase-tools

Information about vCard 3.0 can be found at:

About

Tool to extract data from Android Contacts Databases (contacts2.db) to VCF 3.0

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages