Connect to and control androidtv/firetv/googletv devices through ADB.
100K+
Connect to and control androidtv/firetv/googletv devices through ADB.
This image will start an ADB (Android Debug Bridge) server listening on port 5037 and connect to a list of specified androidtv/firetv/googletv devices over the network. This will allow you to integrate them with Home Assistant using the AndroidTV integration.
pairing code and pairing port.Run in docker, mounting a volume that stores a config.yml file for configuration:
docker run -it -v /tmp:/opt/androidtv-connect barnybbb/adb-hass-androidtv:latest
Run in docker, using environment variables:
docker run -it -e devicelist=192.168.1.100,192.168.1.101::739264:44556 -e bootwait=10 -e checkfreq=60 barnybbb/adb-hass-androidtv:latest
Docker compose, mounting a volume that stores a config.yml file for configuration:
services:
adb-hass-androidtv:
image: barnybbb/adb-hass-androidtv:latest
hostname: adb-hass-androidtv.local
container_name: adb-hass-androidtv
ports:
- 5037:5037
volumes:
- /tmp:/opt/androidtv-connect
restart: unless-stopped
Docker compose, using environment variables:
services:
adb-hass-androidtv:
image: barnybbb/adb-hass-androidtv:latest
hostname: adb-hass-androidtv.local
container_name: adb-hass-androidtv
ports:
- 5037:5037
environment:
devicelist: 192.168.1.100,192.168.1.101::739264:44556
bootwait: 10
checkfreq: 300
restart: unless-stopped
You can use the UnRAID Community Template provided details are available on the UnRAID Forums.
Configuration is managed via a YAML file (config.yml) located in /opt/androidtv-connect, or by setting environment variables. See below.
These can be specified as environment variables or included in the config.yml file.
Options provided in the config.yml will override any provided as environment variables.
| config option | default | required | description |
|---|---|---|---|
| devicelist | n/a | yes | List of Android device(s) to connect to and their connection settings |
| bootwait | 10 | no | Time to wait (in seconds) for before attempting connection to device(s) at container init |
| checkfreq | 300 | no | Frequency (in seconds) to check device(s) connection status |
| enable_adb_usb | no | no | Enable USB ADB connection |
For the environment variable devicelist must be a comma separated list of devices specified in the following format:
<host>[:<port>][:<auth_code>:<auth_port>]
<host> - required, IP address or hostname of the Android device<port> - optional, defaults to 5555 if not specified<auth_code> - optional, pairing code for ADB wireless pairing<auth_port> - optional, pairing port for ADB wireless pairing (must be specified with <auth_code>)Examples:
192.168.1.100 - specify a single device, will default to connect to ADB port 5555192.168.1.100:5555,192.168.101:5555 - specify two devices, both connecting to ADB port 5555192.168.1.101:5555:739264:44556 - specify a single device, with auth_code and auth_port specified192.168.1.100,192.168.1.101::739264:44556 - specify two devices, with the second device using the default port of 5555 and with auth_code and auth_port specifieddevicelist:
- name: Living Room TV
host: 192.168.1.100
port: 12345
- name: Bedroom TV
host: 192.168.1.101
port: 15555
auth_code: 739264
auth_port: 44556
bootwait: 10
checkfreq: 300
enable_adb_usb: no
devicelist:
- name: Living Room TV
host: 192.168.1.100
port: 5555
auth_code: 48273
auth_port: 11223
- name: Bedroom TV
host: 192.168.1.101
port: 5555
auth_code: 739264
auth_port: 44556
Android Debug Bridge integration
Android Debug Bridge
Host: the hostname/IP of your Android device (as configured in the devicelist)Port: the port your Android device is listening on (as configured in the devicelist)IP address of the ADB server: the hostname/IP address of the barnybbb/adb-hass-androidtv docker containerPort of the ADB server: port that the barnybbb/adb-hass-androidtv docker container is listening on (default 5037)
This project is licensed under the MIT License. See the LICENSE file for details.
| Image Version | Release Date | Alpine Version | ADB Version | Release Notes |
|---|---|---|---|---|
| 1.1.0 | 2026-01-29 | 3.23.3 | 36.0.2-14143358 | See CHANGELOG |
| 1.0.0 | 2020-12-22 | 3.22.0 | 29.0.6-6198805 | See CHANGELOG |
Content type
Image
Digest
sha256:412502ea3…
Size
20.7 MB
Last updated
8 months ago
docker pull barnybbb/adb-hass-androidtv