1、电脑和android手机通过wifi连接到同一个无线网络,确保两者能够相互ping通(注意防火墙、网络设置等),同时查看设备的IP

2、在android设备上下载超级终端,设置端口:

       su

       setprop service.adb.tcp.port 5555

       exit

3、用数据线连接设备,在电脑cmd窗口输入 adb tcpip 5555  //restarts the adbd daemon listening on TCP on the specified port..5555

4、cmd窗口输入adb connect xx.xx.xx.xx(设备IP)   //adb connect [:]   connect to device via TCP/IP Port 5555 is used by default if no port number is specified

此时,可以断开数据线了,在logcat界面能够看到输出

5、cmd窗口输入adb disconnect xx.xx.xx.xx(设备IP)  //用法类似adb connect,表示断开TCP连接



更多相关文章

  1. Android8.0多窗口调研
  2. android实现下拉框和输入框结合
  3. Window窗口机制——WindowManager,ViewRootImpl,View理解
  4. 软键盘隐藏和显示问题.
  5. Android(安卓)EditText不弹出输入法焦点问题的总结
  6. 【Android】联通性 -- USB主机模式
  7. Android(安卓)MTK 8.1 预制应用 (讯飞输入法)
  8. 将x264移植到Android
  9. Android(安卓)蓝牙开发(三)蓝牙Hid 开发

随机推荐

  1. Android(安卓)强大的图片加载缓存— Glid
  2. 工程师淘金:开发Android主攻四大方向
  3. 【Android】入门案例(二)——JDBC连接MyS
  4. 【Android自动化打包】03. APK的数字签名
  5. (转) Android的Window类
  6. 一场关于Android的争论
  7. Android的进程,线程模型
  8. Android设备的ID
  9. Android新手入门 FAQ
  10. sscanf函数引起android 5.0卡死,C++中慎用