Android 網路調試 tcpip 開啟方法

來源:互聯網
上載者:User

1.串連USB資料線,開啟usb調試,使用windows的“運行”命令列方式:(此方法需配置adb環境變數,也可直接進入adb工具目錄執行\android-sdk-windows\platform-tools\)

adb tcpip 5555 (連接埠號碼)adb connect 192.168.1.199 (Android裝置IP地址)adb usb 使用回usb調試

2.無需資料線,且可解決部分機器在方法1時出現的“unable to connect to 192.168.1.199:5555”錯誤
在android裝置上安裝 “終端模擬器”等類似shell命令工具,使用下面命令(需root許可權):

TCP/IP方式:setprop service.adb.tcp.port 5555stop adbdstart adbdusb方式:setprop service.adb.tcp.port -1stop adbdstart adbd

參考:http://stackoverflow.com/questions/2604727/how-can-i-connect-to-android-with-adb-over-tcp

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.