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

How to connect android IPTV set top box running Android 4.4 for USB debugging

我正在 Android 4.4 上开发 android IPTV 应用程序 运行。有谁知道如何连接机顶盒安装应用程序进行测试。机顶盒有一个 USB 端口,用于连接 USB 随身碟。

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

如果有人从事 android 机顶盒编程工作,请帮我解决这个问题。

打开命令行;

adb connect [Your device's IP address]

通过 adb 工具连接设备后,只需 运行 来自 Android Studio 的代码。您的目标设备应列在 Connected Devices.

确保

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

开启 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.

连接亚行

要将您的开发计算机连接到 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