ADB connection to an AndroidTV

最后都变了- 提交于 2019-12-03 03:06:28

问题


I've just got a Sony KDL-43W800C, and I intend to develop some apps for it, however I can not find any information on how to attach to it using adb for installing apks and getting the logs etc.

What am I missing?


回答1:


You need to use ADB over TCP/IP.

  1. Enable Developer options: Press Home and select Settings. In the TV row, select About. Scroll down to and click on Build several times until a dialog appears with the message "You are now a developer" appears.

  2. Enable Debugging: Press Home and go back into the Settings menu. In the System Preferences row, select Developer options, select Debugging, select ADB Debugging, select On.

  3. Find the TV IP address: Press Home and select Network Settings.

  4. Make sure your TV and your computer are connected to the same local network.

  5. On your computer type: adb connect <TV IP address>

  6. In the Allow debugging? dialog, select Always allow from this computer and select OK.

You can verify the connection is established and that the TV is communicating across the network with the following command:

adb logcat


来源:https://stackoverflow.com/questions/31421872/adb-connection-to-an-androidtv

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!