我尝试从我的Android移动设备(SGS5)向我的Android TV(Nvidia Shield TV)发送ADB命令。我总是得到:
error:device offline
或
error:device unauthorized
使用Windows或Mac,ADB连接可以正常工作,但不适用于Android设备。
我做了以下事情:
没有成功。
是否可以通过Android TV(例如Nvidia Shield TV)连接Android设备(手机/平板电脑)?
手机 - > adb - >屏蔽电视
答案 0 :(得分:1)
对于Nvidia Shield TV,你需要
adb devices
=&gt;设备应该列出。您需要检查并接受授权屏幕adb tcpip <port_no>
adb connect <ip_address from step 4>
Note
:理想情况下,这应该是一次性过程,但有时设备在长时间不执行adb操作时会脱机。可能的解决方案是
一个。重复上面的步骤1-7
或
湾设置一个工作(如cron),它将在设备上执行一些定期操作。
示例:adb shell input keyevent 25
。
答案 1 :(得分:0)
如果你尝试了所有这些,那么试试为我工作的最后一个 - 检查移动IP和手机,然后尝试以下命令
adb connect 192.168.1.4:2222
Check this link for more details
也没有工作然后尝试下面 打开ADB调试
您必须先在Fire TV设备上启用ADB,然后才能连接到设备。
From the main (Launcher) screen, select Settings.
Select System > Developer Options.
Select ADB Debugging.
获取IP地址
您需要网络上的Fire TV设备的IP地址才能将ADB连接到它。
From the main (Launcher) screen, select Settings.
Select System > About > Network. Make note of the IP address listed on this screen.
连接ADB
要将开发计算机连接到Fire TV设备,请执行以下步骤:
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