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
$ adb shell am start -a android.intent.action.MAIN -n

$ 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
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.
enable tethering on your phone.
Settings > Wireless & networks > Tethering & portable hotspot > USB tethering

if you don't see the above setting, your mobile phone provider has probably disabled it. use an open-source rom, like cyanogenmod.

load usbnet module
# modprobe usbnet

verify usb interface
$ ifconfig -a

modify network interface configuration
# vi /etc/network/interfaces
iface usb0 inet dhcp

bring the interface up
# ifup usb0

et voila!

most popular posts