AndroidTV Driver Installation


Welcome to the AndroidTV driver for myServer.

AndroidTV is a highly popular media management content player.  Now, you can add a user interface within your myServer system where you can launch AndroidTV installed apps like Kodi, Plex or Netflix.

The AndroidTV driver is very flexible.  It works with most AndroidTV based media devices, like the FireTV stick.  You can choose which player you would like to launch.  Control the AndroidTV transport controls. And of course the user interface is completely configurable using myDesigner!

Big Feature:  As the AndroidTV boxes support "CEC" control, you can control a CEC compatible TV functions (Power, volume, input source etc) without need for the dumb TV to be connected directly to myServer (traditionally via serial, IR or TCPIP).  Simplifies the setup significantly.  Just plug a FireTV stick into the TV, connect FireTV to WiFi, and control the TV via myServer events and user interfaces.

How it Works:

myServer connects to the AndroidTV device via ethernet (wired or WiFi).  myServer then looks up the coverart from our Internet sources. Since myServer also support many physical remote controls, the user can also use an integrated remote for the transport functions - even if the AndroidTV stick is not in the same room - even over the Internet!

 System Requirements:

  • myServer v5 (latest as of 1/19/2019 +)
  • Latest myDesigner (as of 1/19/2019+)
  • Microsoft Windows (7,8,10) with .NET installed
  • FireTV (running AndroidTV OS) stick installed and on same network as myServer controller.
  • Kodi (v17), Plex or Netflix application running on the AndroidTV stick.

App Installation:

  1. Shutdown myServer.
  2. Download and run the AndroidTV driver installer from myInstaller on the primary myServer PC.
  3. Download and install latest myDesigner.  Run it and Update Project Files on all HTML projects.
  4. Restart myServer.


FireTV ADB Configuration:

  1. Ensure AndroidTV stick is on same network as myServer.
  2. Click on the AndroidTV settings within the AndroidTV Settings menu
  3. Click on About AndroidTV.  Click on Developer Options.  Click on Enable ADB.  Save. 
  4. Restart AndroidTV stick to ensure your settings are in effect.


Nvidia Shield ADB Configuration:
Enable debugging

1. Goto Settings on the Shield.

2. Go across to About in Device.

3. Go down to Build and click on it 10 times until it says you are in development mode.
ADB over USB
1. Make sure you have performed the above steps "Enable debugging"
2. Goto Settings
3. Go Across to Developer options
4. Go down to Debugging
5. Toggle USB debugging to On
ADB over Network
1. Make sure you have performed the above steps "Enable debugging"
2. Make sure you have performed the above steps "ADB over USB"
3. Toggle Network debugging to On
When On, you should see a message "Enabled in (mac address IP address)"
Restart myServer
In a few seconds, you should see an acceptance request on the Shield screen.  Accept to allow the ADB communications from myServer.


App Configuration:

  1. Configure your chosen app (Kodi, Plex, Netflix) as per that apps documentation


AndroidTV Driver Commands:

Use Command Builder to see the current supported commands and their syntax.

The driver natively knows how to launch  Kodi, Tablo, Games, YouTube and Prime Video. Additionally it supports a custom launch command that will let you integrate any new app you find in the future. (However, if it is an app with wide appeal still tell us about it)

To use the custom launcher the command looks like

AV|<<id>>~Launch~<<app name>>


AV|12~Launch~monkey -p 1

notice you do not need to include the "adb shell" bits.

Netflix launcher (draft: not tested)

adb shell am start -n -a android.intent.action.VIEW -d netflix://title/80025384 -f 0x10000020 -e "amzn_deeplink_data" "80025384"


Some Tidbits:

The AndroidTV driver uses "ADB" (Android Development Bridge).  You can read more here:

This allows ability to control the Android application running on the AndroidTV stick.  It also allows control of a CEC compatible device (like the TV).

You can also use ADB to install / uninstall an application (like Kodi or myUI.apk) remotely on the AndroidTV device (like a FireTV stick).

ADB is downloadable here:

Note that ADB is already installed on myServer with the AndroidTV installation.

  1. On the myServer PC, shutdown myServer.  This is because only one instance of ADB can be connected to a device at one time.
  2. Download to the myServer\adb\files directory the app you would like to install. (note: for FireTV stick - download the 32bit Android version of the wanted app)
  3. Restart the AndroidTV box to clear any prior ADB sessions.
  4. Ensure ADB is enabled in the Android About Developer's menu
  5. From the myServer PC, open an Administrator's Command Prompt.
  6. cd c:\Program Files (x86)\Allonis\myServer\ADB
  7. type: adb connect <<IP address of the AndroidTV device>>   Sometimes you have to do this twice... 
  8. type: .\adb install <<path to apk file>>  example:  .\adb install files\kodi-18.0-Leia_rc5.2-armeabi-v7a.apk
  9. Your apk file should install on the AndroidTV device.  In a few minutes it should say "Success"
  10. Once your app is installed, you can do a "adb disconnect" to have the AndroidTV box release the Command Prompt device connection.
  11. Start myServer.
  12. Restart the AndroidTV device. You likely will be asked on the AndroidTV box if you want to enable ADB on XXXX device.  Select Always and Yes.  This should be re-enabling the connection to myServer's ADB instance.
  13. You can also "adb uninstall <<application name>>"  When you are ADB connected to the device.
  14. You can also do a "adb devices" command to see what devices are currently connected to your Command Prompt device (not the AndroidTV device).


For easy remote management of the AndroidTV box, try using Teamviewer Host app:

You can install Teamviewer host initially via ADB (see above) and then connect via your desktop PC via TeamViewer.

CEC remote control:

Here is how things connect:  myServer running AndroidTV driver <> Ethernet <> Wifi Access Point <> WiFi <> FireTV stick <> HDMI cable <> Dumb CEC compatible TV

CEC compatible functions:

const int KEY_TV_ANTENNA_CABLE = 242;
const int KEY_TV_CONTENTS_MENU = 256;
const int KEY_TV_DATA_SERVICE = 230;
const int KEY_TV_INPUT = 178;
const int KEY_TV_INPUT_COMPONENT_1 = 249;
const int KEY_TV_INPUT_COMPONENT_2 = 250;
const int KEY_TV_INPUT_COMPOSITE_1 = 247;
const int KEY_TV_INPUT_COMPOSITE_2 = 248;
const int KEY_TV_INPUT_HDMI_1 = 243;
const int KEY_TV_INPUT_HDMI_2 = 244;
const int KEY_TV_INPUT_HDMI_3 = 245;
const int KEY_TV_INPUT_HDMI_4 = 246;
const int KEY_TV_INPUT_VGA_1 = 251;
const int KEY_TV_MEDIA_CONTEXT_MENU = 257;
const int KEY_TV_NETWORK = 241;
const int KEY_TV_NUMBER_ENTRY = 234;
const int KEY_TV_POWER = 177;
const int KEY_TV_RADIO_SERVICE = 232;
const int KEY_TV_SATELLITE = 237;
const int KEY_TV_SATELLITE_BS = 238;
const int KEY_TV_SATELLITE_CS = 239;
const int KEY_TV_TELETEXT = 233;
const int KEY_TV_ZOOM_MODE = 255;

 Example of CEC command:  AV|75~CEC~Power~Off

You can now install the myServer Kodi Application to play a movie.  Click HERE



Documentation below in in process and not to be used (yet)