Skip to content

Instantly share code, notes, and snippets.

@ohidurbappy
Last active October 25, 2022 15:50
Show Gist options
  • Save ohidurbappy/042c48a2c0d5b87d675d2aea035fc38c to your computer and use it in GitHub Desktop.
Save ohidurbappy/042c48a2c0d5b87d675d2aea035fc38c to your computer and use it in GitHub Desktop.
some useful adb commands

Commands

adb devices
adb tcpip 5555
adb connect <your_phone_ip>

Withour using any cable

adb pair <phone_ip>:<phone_pairing_port>
adb connect <phone_ip>:<adb_port>

Take screenshot

adb exec-out screencap -p > screen.png

Pull a file from the device

adb pull /storage/sdcard0/Download/your-file_name.jpg

Run phone shell

adb shell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment