Dump android contacts, sms

adb pull /data/data/com.android.providers.contacts/databases/contacts2.db ; sqlite3 -batch <<EOF contacts2.db <CR> .header on <CR> .mode tabs <CR> select * from data; <CR> EOF
Crude, but works. Note for security, /data/ will be inaccessible unless your device has been *rooted*. On the other hand, if a device has been rooted, its data is now wide open to anyone with a USB cable and the above "one-liner". `adb` is one of the platform tools in the android SDK. To get SMS messages: adb pull /data/data/com.android.providers.telephony/databases/mmssms.db ; sqlite3 -batch <<EOF contacts2.db <CR> .header on <CR> .mode tabs <CR> select * from sms; <CR> EOF

By: mhs
2012-12-26 11:35:23

What Others Think

The best possible advice, I highly recommend you contact your local supplier or the Manufacturer. Dyck-O'Neal inc phone harassment
Casper · 67 weeks and 1 day ago
Affordability of our Psychology Writing Services is another attribute that makes us the best Psychology Research Paper Writing Service and Psychology Term Paper Writing Service provider in the industry.
florahwilliams · 63 weeks and 5 days ago
I’ve stopped wasting my time thanks to WritePaperFor.Me. Now, I do my homework much faster and chill out. Look best article
TomNill · 54 weeks and 6 days ago
Android won't let you edit contacts imported by facebook, there are a couple of options you can do though depending on what you want to do. Blunt Soft
Casper · 41 weeks and 6 days ago
I truly have. there replace into this female in my college who "acted" quite functional to me. Click here
Casper · 41 weeks and 6 days ago
Discover the awesome .iogames we built with passion for our players. We are constantly growing our games so you will be entertained for a lifetime!
bestcrazygames · 15 weeks and 2 days ago
As the flowers die back and dry out, it is important to snip off the individual florets or flower heads to encourage more flowering hrynoponic gardening.
nipem · 9 weeks and 4 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: