我正在开发一个在Android 4.4上运行的Android IPTV应用程序。有谁知道如何连接机顶盒安装应用程序进行测试。机顶盒有一个USB端口,用于连接USB笔式驱动器。
我们可以使用该USB端口直接在STB中安装应用程序。如果是,那么如何?
如果有人在Android机顶盒编程工作,请帮助我。
答案 0 :(得分:4)
打开命令行;
adb connect [Your device's IP address]
通过adb工具连接设备后,只需从Android Studio运行代码即可。您的目标设备应列在已连接设备下。
确保
答案 1 :(得分: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