1.USB连接手机 确保adb可以正常连接
C:UsersShone>adb devices
List of devices attached
882QAEU99J9HU device
2.激活adb服务 :(可以拔线了)
adb tcpip 端口号(建议默认用5555) C:UsersShone>adb tcpip 5555 restarting in TCP mode port: 5555
3.通过手机局域网IP连接手机
adb connect devicesip:port(如果port是5555可以省略) C:UsersShone>adb connect 192.168.0.103 already connected to 192.168.0.103:555
4.检查是否连接上
C:UsersShone>adb devices -l List of devices attached 192.168.0.103:5555 device product:meizu_16th_CN model:16th device:16th transport_id:3
5.查询已经运行的软件,找到对应的包名以及入口信息
C:UsersShone>adb shell dumpsys activity recents | findstr intent={
包名:com.hpbr.bosszhipin
入口信息:.module.launcher.WelcomeActivity