adb reference

adb - Android Debug Bridge


# adb {start|kill}-server
$ adb [dis]connect {host}:{port}
$ adb devices
$ adb reboot [recovery|bootloader]

$ adb shell mount -a
$ adb remount

$ adb shell ls -lhSr /system/app/

$ adb shell am start -a android.intent.action.MAIN -n com.android.browser/.BrowserActivity
$ adb shell am start -a android.intent.action.MAIN -n com.android.settings/.Settings

$ adb logcat
$ adb get-state
$ adb status-window
$ adb shell dumpsys activity

adb on 64bit

there are two ways you can get adb to run on 64bit systems.

(1) install 32bit libraries
# apt-get install ia32-lib
this is messy, especially if you don't use many other 32bit apps, which you shouldn't.

(2) use adb 64bit version
download the single file from somewhere, like ftp://alionet-repository.no-ip.info/Linux/GeeksPhone/One/adb_64/adb
or, compile it yourself, which means a lot of garbage on my system, when i don't do any (android) development on my primary system.

i prefer (2) over (1).

now, we can have some adb fun:
# adb start-server
$ adb devices
$ ...
# adb kill-server

usb tethering

connect your phone via usb to your computer. your phone gets charged via your computer, while your computer gets the internet via your phone. win-win synergy!

popular posts