android adb

ADB是什么
ADB, 즉.在模拟器 혹은 连接的设备上运行各种命令)的访问.可以在
Unix shell 中找到 Android SDK/platform-tools查看adb的版本信息
adb显示设备列表
adb devices
List of devices attached
LK7N18125001132 device
关闭usb 调试
adb version타락한 usb 调试
adb shell settings put global adb_enabled 0查询usb调试开关情况
adb shell settings put global adb_enabled 1타홍모사정위
adb shell settings get global adb_enabled타만 좌표
adb shell settings put secure mock_location 1모 갓집 按键
adb shell settings put system pointer_location 1모 拟按下 Power 键
adb shell input keyevent 3모 touch 병막 사건
점광병막(x, y) = (350, 350) 위치
adb shell input keyevent 26모권활동 사건
从屏幕(150, 150) 활도병막(300, 300)
adb shell input tap 350 350욕설 문자
adb shell input swipe 150 150 300 300查看 WiFi IP 地址
adb shell ip -f inet addr show wlan0
<BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 3000
inet 192.168.0.100/24 brd 192.168.0.255 scope global wlan0
valid_lft forever preferred_lft forever
开启adb 복장
默认启动
adb shell input text 123 끝adb start-server
netstat -na | grep 5037
tcp4 0 0 127.0.0.1.5037 127.0.0.1.65208 ESTABLISHED
tcp4 0 0 127.0.0.1.65208 127.0.0.1.5037 ESTABLISHED
tcp4 0 0 127.0.0.1.5037 127.0.0.1.65206 ESTABLISHED
tcp4 0 0 127.0.0.1.65206 127.0.0.1.5037 ESTABLISHED
tcp4 0 0 127.0.0.1.5037 127.0.0.1.65204 ESTABLISHED
tcp4 0 0 127.0.0.1.65204 127.0.0.1.5037 ESTABLISHED
tcp4 0 0 127.0.0.1.5037 127.0.0.1.65202 ESTABLISHED
tcp4 0 0 127.0.0.1.65202 127.0.0.1.5037 ESTABLISHED
tcp4 0 0 127.0.0.1.5037 *.* LISTEN
查看系 统应用
5037查看第三方应用
adb shell pm list packages -s查看应用安装路 직경
adb shell pm list packages -3통간 TCP 접접
adb tcpip 5555
adb connect 192.168.1.3:5555
adb devices
关闭 adb 복장
adb kill-server
참고:
Reference
이 문제에 관하여(android adb), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/shooter/items/a2600e2f7169b1cc8067텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)