Linux Scroll

Just another WordPress.com site

adb command for Android

In linux terminal,start adb daemons :

$ adb devices

* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
S58305abcd123 device

Install apk:

$ adb install Desktop/talkbox_1_02.apk 

990 KB/s (1035830 bytes in 1.020s)
pkg: /data/local/tmp/talkbox_1_02.apk
Success

Install update apk:

$ adb install -r Desktop/talkbox_1_02.apk 

990 KB/s (1035830 bytes in 1.020s)
pkg: /data/local/tmp/talkbox_1_02.apk
Success

Uninstall apk:

$ adb uninstall com.android.email

Copy files from phone to local drive:

$ adb pull /sdcard/Music Desktop/Music

pull: building file list...
pull: /sdcard/Music/1.mp3 -> Desktop/Music/1.mp3
pull: /sdcard/Music/2.mp3 -> Desktop/Music/2.mp3
2 files pulled. 0 files skipped.
3658 KB/s (709380260 bytes in 189.379s)

Copy files from local drive to phone:

$ adb push Desktop/Music/1.mp3 /sdcard/Music

3923 KB/s (4020352 bytes in 1.000s)

Login to Android shell:

$ adb shell

$
$ adb logcat
$ adb bugreport
$ adb get-state
$ adb start-server
$ adb kill-server
$ adb forward tcp:6100 tcp:7100
$ adb shell ps -x
$ adb version
$ adb help
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: