adb start-server - ensure that there is a server running
adb kill-server - kill the server if it is running
adb get-state - prints: offline | bootloader | device
adb get-serialno - prints: <serial-number>
adb get-devpath - prints: <device-path>
adb status-window - continuously print device status for a specified
device
adb remount - remounts the /system and /vendor (if present)
partitions on the device read-write
adb reboot [bootloader|recovery] - reboots the device, optionally into the
bootloader or recovery program
adb reboot-bootloader - reboots the device into the bootloader
adb root - restarts the adb daemon with root permissions
adb usb - restarts
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot-bootloader
adb root //restarts adb with root permissions
== Shell
adb shell // Open or run commands in a terminal on the host Android device.
== Devices
adb usb
adb devices //show devices attached
adb devices -l //devices (product/model)
== Get device android version
adb shell getprop ro.build.version.release
== LogCat
adb logcat
adb logcat -c // clear // The parameter -c will clear the current logs on the
device.
adb logcat -d > [path_to_file] // Save the logcat output to a file on the local
system.
adb bugreport > [path_to_file] // Will dump the whole device information like
dumpstate, dumpsys and logcat output.
== Update app
adb install -r yourApp.apk // -r means re-install the app and keep its data on the
devi