# Ubuntu phone: adb (Android Debug Bridge) commands


Architecture

__Phone__                 _______________Host______________
[Daemon]-----<USB/TCP>-----[Server]-----<TCP>-----[Client]
/usr/bin/adbd              /usr/bin/adb -P 5037 fork-server server
                                                  /usr/bin/adb <command>

Commands

$ adb -h
$ adb kill-server
$ adb start-server
$ adb devices -l
$ adb get-state # offline | bootloader | device
$ adb get-serialno
$ adb get-devpath
$ adb status-window # watch 'adb get-state'
$ adb push /local/path /remote/path
$ adb pull /remote/path /local/path
$ adb reboot [bootloader|recovery]
$ adb sync /local/path # if local_file is newer then adb push
$ adb shell [command]

No comments: