Wednesday, August 26, 2009

ADB Commands:

What is ADB?

Android Debugger Bridge....

Commands where i collected and used i am posting here for helpful to others...

// installing apk in system

adb install filename.apk

adb kill-server
adb start-server

adb devices // to get what are the devices running or attached

to uninstall the apk...

adb uninstall packagename.apk

To access the data bases and seeing the data in the content providers:

here one small example to open the content providers contacts

adb shell

# cd /data/data

# cd com.google.android.providers.contacts/databases

# ls

contacts.db

# sqlite3 contacts.db # it's picky you must include suffix
SQLite version 3.5.0

Enter ".help" for instructions

sqlite> .tables
_deleted_people android_metadata people
_sync_state calls peopleLookup
_sync_state_metadata contact_methods phones

sqlite> select * from people;


android:authorities="aexp.syncexample.SimpleString"
android:syncable="true"/>


for modification or inserting

sqlite>.dump

No comments:

Post a Comment