Wireless adb
Using wifi
adb connect 192.168.1.5:312343
Using pair code
Pair by ip, then input the code
adb pair 192.168.1.5:123123
Using TCP
adb tcpip 5555
adb connect 192.168.1.15
Config Screen
adb shell wm size 1080x1920
adb shell wm density 390
Proxy
# get proxy
adb shell settings get global http_proxy
# set proxy
adb shell settings put global http_proxy server_ip:server_port
# remove proxy
adb shell settings put global http_proxy :0
Reverse TCP
adb reverse tcp:8081 tcp:8081
Files
# push file
adb push avatar.jpg /storage/emulated/0/Download
# pull file
adb shell pm path com.kugou.shiqutouch
adb pull "/data/app/~~xpKM66cgiEbqpkAmw5bUnQ==/com.kugou.shiqutouch-UG94g9pPeK1JHJrxI7yGfQ==/base.apk" ~/Downloads/app.apk
Config
adb shell settings list system
# show touches
adb shell settings put system show_touches 1
Utils
Some other useful adb functions that I’m using:
Source this bash script. Which is located in config setup.
adbd
: adb devicesadbx
: select device and assign to adb when there’re multiple deviccesadbc
: setup reverse tcpipadbr
: record and pull video file to ~/Downloadsadbc
: capture screen to clipboardadbi
: adb install list of apksmitm
: preparing for mitm (for ssl-spinning app, you could use apk-patcher to patch apk-mitm pattern)