如何连接Android IPTV机顶盒运行Android 4.4进行USB调试

问题描述 投票:3回答:2

我正在开发一个在Android 4.4上运行的Android IPTV应用程序。有谁知道如何连接机顶盒安装应用程序进行测试。机顶盒有一个USB端口,用于连接USB笔式驱动器。

我们可以使用该USB端口直接在STB中安装应用程序。如果是,那么如何?

如果有人在Android机顶盒编程工作,请帮助我。

android google-tv android-tv
2个回答
4
投票

打开命令行;

adb connect [Your device's IP address]

通过adb工具连接设备后,只需从Android Studio运行代码即可。您的目标设备应列在已连接设备下。

确保

  • 将ADB添加到PATH以便能够从任何目录在cmd上运行adb.exe
  • 系统和目标设备在同一网络中

0
投票

打开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
ex : adb connect 192.168.1.1:5555
© www.soinside.com 2019 - 2024. All rights reserved.