4
adb (Android Debug Bridge) cheatsheet
source link: https://devhints.io/adb
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Device Basics
adb devices
Lists connected devices
adb devices -l
Lists connected devices and kind
adb root
Restarts adbd with root permissions
adb start-server
Starts the adb server
adb kill-server
Kills the adb server
adb remount
Remounts file system with read/write access
adb reboot
Reboots the device
adb reboot bootloader
Reboots the device into fastboot
adb disable-verity
Reboots the device into fastboot
wait-for-device
can be specified after adb
to ensure that the command will run once the device is connected.
-s
can be used to send the commands to a specific device when multiple are connected.
Examples
$ adb wait-for-device devices
List of devices attached
somedevice-1234 device
someotherdevice-1234 device
$ adb -s somedevice-1234 root
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK