Android TV#

See also: Amazon Fire TV, NVidia Shield.

Remote control#

Typically you will use infrared, HDMI CEC, or Bluetooth for remote control. Stb-tester can also use ADB to send input events, but we recommend the other remote-control mechanisms, as they are more representative of real-world usage.

For configuration instructions for all of these mechanisms see Remote Control Configuration.

Enabling ADB#

Stb-tester can use ADB to launch applications, gather logs, and execute any other ADB commands.

To enable ADB on your Android device, first you have to enable “Developer options” in the device’s settings. On the NVidia Shield you do this by pressing OK 8 times in Settings > Device Preferences > About > Build.

Then, in Settings > Device Preferences > Developer options, enable the following settings:

  • USB debugging — if your Android device has a USB port.

  • Network debugging — if your Android device doesn’t have a USB port.

  • Disable adb authorization timeout — “disable revocation of adb access for systems that have not reconnected within 7 days”.

Network ADB#

If your Android device doesn’t have a USB port, you need to tell Stb-tester the device’s IP address in the Node-specific configuration file for the Stb-tester Node attached to the Android device:

config/test-farm/stb-tester-xxxxxxxxxxxx.conf#
[device_under_test]
ip_address = 192.168.1.100

Find the Android device’s IP address in Settings > Network & Internet.

Using ADB from your test scripts#

See Recipes: Android.