Sign inSign up

mimeau/firetv-hook

By mimeau

•Updated over 2 years ago

A hook for FireTV that monitors home button press in the ADB log and starts an app accordingly.

Image
Monitoring & observability
0

6.0K

mimeau/firetv-hook repository overview

Thanks to daavm⁠ for the original script and idea. Original XDA thread.⁠

This image executes a simple script that will monitor the HOME button press on a FireTV and start an application when detected. It is based on Alpine to be lightweight.

⁠How To Use

There are two parameters controlled by environment variables:

  • FIRETV_HOST: IP address of the FireTV on the local network. No default value, this has to be set.
  • FIRETV_LAUNCHER : app and activity to launch when the button press is detected. Default value: com.wolf.firelauncher/.screens.launcher.LauncherActivity

Generally speaking, use the following command :

docker run -it --net=host -e FIRETV_HOST=<IP.ADDR> -e FIRETV_LAUNCHER=<APP> mimeau/firetv-hook

e.g. docker run -it --net=host -e FIRETV_HOST=192.168.1.17 -e FIRETV_LAUNCHER=com.wolf.firelauncher/.screens.launcher.LauncherActivity mimeau/firetv-hook

(here the FIRETV_LAUNCHER env is optional because it's using the default one).

-it starts the image in interactive mode, this will allow you to kill the script with CTRL+C.

If you're using docker-compose, here's a sample:

version: "2.1"
services:
  firetv-hook:
    image: mimeau/firetv-hook
    container_name: firetv-hook
    environment:
      - FIRETV_HOST=<YOUR_FIRE_TV_IP_ADDRESS>
      - FIRETV_LAUNCHER=com.wolf.firelauncher/.screens.launcher.LauncherActivity
    network_mode: "host"

Tag summary

Content type

Image

Digest

sha256:078e9ba94…

Size

28.7 MB

Last updated

over 2 years ago

docker pull mimeau/firetv-hook