ADB connecton to Android TV / Nvidia Shield TV?
我尝试将ADB命令从我的Android移动设备(SGS5)发送到我的Android TV(Nvidia Shield TV)。我总是得到:
1 | error:device offline |
或
1 | error:device unauthorized |
在Windows或Mac上,ADB连接有效,但在Android设备上不起作用。
我做了以下事情:
- 禁用/启用调试模式
- 二手USB电缆
- 二手Wifi
- 重新启动所有设备
- adb kill-server / adb启动服务器
- 亚行usb
没有成功。
是否可以通过ADB将Android设备(手机/平板电脑)与Android TV(例如Nvidia Shield TV)连接?
手机-> adb-> Shield TV
对于Nvidia Shield TV,您需要
a。重复上述
的步骤1-7
或
b。设置一项工作(例如cron),该工作将在设备上执行一些定期的操作。
示例:
如果您尝试所有这些方法,请尝试最后一种方法对我有用
-检查移动ip并输入有关电话的内容,然后尝试使用以下命令
1 | adb connect 192.168.1.4:2222 |
检查此链接以获取更多详细信息
也无法正常工作,请尝试以下操作
打开ADB调试
必须先在Fire TV设备上启用ADB,然后才能连接到该设备。
1 2 3 | From the main (Launcher) screen, select Settings. Select System > Developer Options. Select ADB Debugging. |
获取IP地址
您需要网络上Fire TV设备的IP地址才能将ADB连接到它。
1 2 | From the main (Launcher) screen, select Settings. Select System > About > Network. Make note of the IP address listed on this screen. |
连接ADB
要将开发计算机连接到Fire TV设备,请执行以下步骤:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | Open a command prompt or terminal window. Change directory to your Android SDK platform-tools directory. Run the following commands, where <ipaddress> is the IP address of the Fire TV device noted in the previous section. adb kill-server adb start-server adb connect <ipaddress> Note: On Mac OS X and Linux you may need to prepend ./ to these commands, like this: ./adb kill-server ./adb start-server ./adb connect <ipaddress> If the connection was sucessful, ADB responds with the message: connected to <ipaddress>:5555 Verify that the Fire TV device appears in the list of devices: adb devices ADB reponds responds with the message: List of devices attached <ipaddress>:5555 device |