原文:http://developer.android.com/guide/topics/connectivity/usb/index.html
Connect the Android-powered device via USB to your computer.
From your SDK <code>platform-tools/</code> directory, enter <code>adb tcpip 5555</code> at the command prompt.
Enter <code>adb connect <device-ip-address>:5555</code> You should now be connected to the Android-powered device and can issue the usual <code>adb</code> commands like <code>adb logcat</code>.
To set your device to listen on USB, enter <code>adb usb</code>.
基本意思是:
首先還是用USB線連接配接手機,然後找到Android SDK的playform-tools目錄,在此通過指令行運作: adb tcpip 5555。在UBUNTU系統中,會傳回“restarting in TCP mode port:5555”。
接下來,設定手機連接配接wifi,最好與PC是同一網段,不同網段沒試過。然後,找到手機的IP,比如我的是192.168.0.142。(什麼?不知道在哪裡看手機IP?設定->Wi-Fi。。。。。。)
指令行中輸入: adb connect 192.168.0.142:5555
如果傳回"connected to 192.168.0.142:5555",恭喜你,現在可以拔掉USB線,然後,在SDK中就可以無線安裝APK以及看LOGCAT的資訊啦。
如果要退出無線模式,輸入adb usb.