【问题标题】:How to connect android IPTV set top box running Android 4.4 for USB debugging如何连接运行安卓4.4的安卓IPTV机顶盒进行USB调试
【发布时间】:2016-03-08 03:42:36
【问题描述】:

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

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

如果有人从事 android 机顶盒编程,请帮助我。

【问题讨论】:

  • “我不知道如何连接机顶盒来安装应用程序进行测试”--联系设备制造商并询问他们。
  • 我问的是,如果您从事过 IPTV 工作,那么您是如何测试您的应用程序的......
  • 很可能你应该在 TCP 上使用 adb。根据硬件的不同,您描述的 USB“A”端口实际上可能用于双角色型收发器,但没有 OTG 检测引脚,因此您可能需要在软件中对其进行模式切换。我已经看到一些 Android 设备的设置菜单中有一个选项可以执行此操作,而其他设备则可以从 root shell 中插入 sysfs 中的某些内容来执行此操作。它需要一条非法的 USB A-A 电缆。由于这不应该存在,因此您购买的那些可能会被错误接线 - 我最终滥用了 USB 3 电缆。
  • @mVJ 您的问题与 IPTV 标签无关!请删除它

标签: android google-tv android-tv


【解决方案1】:

打开命令行;

adb connect [Your device's IP address]

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

确保

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

【讨论】:

    【解决方案2】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-10-08
      相关资源
      最近更新 更多