查看运行APP当前页面的Activity名称
adb shell "dumpsys window | grep mCurrentFocus"
adb通过wifi连接android设备
- 查看设备ip地址:adb shell ip addr
adb shell ip addr
- 通过 ping [ip] 判断电脑和手机是否能互通
ping [ip]
- 通过 adb connect [ip] wifi连接手机
adb connect [ip]
- 如果3步骤失败且提示:connect拒绝时使用 adb tcpip 5555 命令以tcpip模式重启adb
adb tcpip 5555
- 重试3步骤
查看bindler信息:
adb shell tail -f /sys/kernel/debug/binder/transactions