android adb

2825 단어 안드로이드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

참고:

좋은 웹페이지 즐겨찾기