Skip to content

Nvidia Shield All In One YAP Plex Live TV Server. (Run YAP on Android)

r3dlobst3r edited this page Apr 24, 2020 · 1 revision

This guide assumes a few things:

  1. You have a SmoothStreams account
  2. You have an Nvidia Shield TV (or any Android device, if you only want YAP)
  3. You know how to sideload apps (adb or usb)
  4. You have Plex running as a server on the Nvidia Shield (not required if you only want YAP)
  5. You have Plex Pass, so you can connect Live TV to Plex (not required if you only want YAP)

First thing you need to do is sideload/install Termux app. This app will allow us to run a Linux environment on the Shield. https://f-droid.org/repo/com.termux_76.apk

The next step is to sideload/install Termux:Boot app. This will allow Termux to run at boot and allow us to start YAP at boot. https://f-droid.org/repo/com.termux.boot_7.apk

So now we are going to open Termux (it is leanback compatible, so you can just go to apps and open it) This will give us a shell prompt to start entering commands, I recommend a keyboard for executing these commands:

  • apt upgrade
  • pkg install git
  • pkg install python
  • pkg install nano

Those commands will get us setup and ready to install YAP (Yet Another Proxy by Vorghahn) Now we need to get YAP and set it up:

  • git clone https://github.com/vorghahn/sstvProxy.git
  • cd sstvProxy
  • nano requirements.txt
  • remove the tkinter requirement from the file
  • save requirements.txt (Ctrl+X, Y, Enter)
  • pip install -r requirements.txt
  • python sstvProxy.py -hl

Now you will enter all of your SmoothStreams user info, location, etc... You will see YAP is running on your TV and it will provide a bunch of URLs, test that you can reach http://IP:Port that you specified and you get the YAP homepage. Now, use

  • CTRL+C to stop YAP. Go to your home screen and then to settings, apps, Termux:Boot and click on it and open > * it. This will allow Termux to be launched at boot time.
  • Exit Termux:Boot and go back to Termux.

We are going to write a script that will start YAP when the Nvidia Shield turns on:

  • cd /data/data/com.termux/files/home/
  • mkdir .termux
  • cd .termux
  • mkdir boot
  • cd boot
  • nano start_yap

Enter this in the start script

  • #!/data/data/com.termux/files/usr/bin/sh
  • termux-wake-lock
  • /data/data/com.termux/files/usr/bin/python /data/data/com.termux/files/home/sstvProxy/sstvProxy.py

The wakelock stops the Shield from sleeping and the second command starts YAP at boot.

Now restart the device and see if you can access YAP homepage without opening Termux. It may take 30 seconds to a minute to finish the start process, and you may get a notification asking if you want to allow the app to run in the background all the time.

If you can get to the YAP homepage, you are good to go.

You can stop here if all you want is YAP. Theoretically this will work on any android device. Continue if you want to integrate with Plex Live TV

For YAP integration into Plex, Vorghahn already has a good guide with pictures here: https://imgur.com/a/OZkN0

After all that is done, you now have an Nvidia Shield that runs everything as an all in one device.

Thanks Vorghahn for developing YAP and making this possible!