ADB mDNS Logo ADB mDNS
HACS Custom Release Support on Ko-fi Open in HACS

ADB mDNS - Android Debug Bridge

Mutual TLS 1.3 Wireless Debugging & Dynamic mDNS Port Tracking for Home Assistant

A modern, high-performance Home Assistant custom integration for Android TV, Google TV, and Android 11+ devices. By leveraging native Wireless Debugging (TLS 1.3 with SPAKE2 PIN pairing) alongside dynamic mDNS Zeroconf port discovery, ADB mDNS eliminates legacy plaintext port 5555 vulnerabilities, survives device reboots effortlessly, and provides pure OS shell integration without installing any helper APKs or binaries on your TV.

Why ADB mDNS? (Bridging the Home Assistant Android Gap)

Home Assistant users with Android TV and Google TV devices previously faced an awkward dilemma between two core integrations:

Feature / Capability Legacy Built-in androidtv Built-in androidtv_remote ⚡ ADB mDNS (This Integration)
Connection Transport Plaintext TCP Port 5555 TLS / Protocol Buffers Mutual TLS 1.3 over mDNS
Android 11+ Reboot Survival ❌ Drops permanently (port rotates) ✅ Survives ✅ Dynamic mDNS tracking (_adb-tls-connect)
Setup Complexity High (USB tether / adb tcpip 5555) Low (PIN pairing) Low (On-Screen PIN pairing)
Directional Remote Keys ✅ Yes ✅ Yes ✅ Yes (Fast key repeats & delays)
True ADB Shell Access ✅ Yes ❌ None ✅ Pure OS shell (dumpsys, am, pm)
Hardware HDMI-CEC Discovery ❌ Basic ❌ None ✅ Dynamic CEC naming via dumpsys
On-Screen Keyboard Detection ❌ None ❌ None ✅ Real-time binary_sensor active state
System Diagnostics ❌ None ❌ None ✅ SoC Temp, RAM, Storage, CPU Load
Background App Control ❌ Limited ❌ None ✅ Force-stop apps & trim cache button
Zero On-Device Binaries ⚠️ Installs helper ✅ Pure ✅ Zero APKs / zero jar files pushed

Supported Devices

Compatible with any device running Android 11 (API 30) or higher with Wireless Debugging enabled:

📺 Google Chromecast
Chromecast with Google TV (4K & HD models)
🎮 NVIDIA Shield TV
Shield TV & Shield TV Pro (Software Experience 9.0+)
📺 Sony Bravia
All XR, OLED, and LED Google TV models
📺 TCL & Hisense
Android TV & Google TV powered series
📺 Xiaomi Mi Box
Mi Box S, Mi TV Stick 4K, and regional boxes
📺 Walmart onn.
onn. Google TV 4K & Streaming Box series
📺 Amazon Fire TV
Fire OS 8+ editions based on Android 11+
📱 Android 11+ Devices
Smart displays, tablets, and Android projectors

🔒 Zero On-Device Binaries: ADB mDNS communicates purely over mutual TLS 1.3 socket streams. Unlike older integrations, it never transfers APKs, executables, or helper daemons to your TV, keeping your streaming devices secure, clean, and fast.

Key Features

Quick Start (3 Simple Steps)

1

Install via HACS

Click the one-click button below to open and install this repository directly inside HACS:

Open HACS

2

Enable Wireless Debugging on TV

  1. On your TV, open Settings ➔ System ➔ About (or Device Preferences ➔ About).
  2. Click Android TV OS build 7 times until "You are now a developer!" appears.
  3. Go back to Developer options and toggle Wireless debugging to ON.
  4. Select Pair device with pairing code (keep this dialog open on your TV screen).
3

Pair in Home Assistant

  1. In Home Assistant, navigate to Settings ➔ Devices & Services ➔ Add Integration.
  2. Search for ADB mDNS - Android Debug Bridge.
  3. Enter your TV's IP address. Home Assistant will automatically detect active mDNS ports.
  4. Enter the 6-digit PIN displayed on your TV screen to complete pairing!

Documentation & Guides

☕

Support Ongoing Development

Developing pure native TLS 1.3 Wireless Debugging, reverse-engineering mDNS Zeroconf tracking, and maintaining deep Home Assistant media and sensor platforms is an independent effort. If this integration makes your smart home better, consider supporting future development with a coffee!

☕ Buy me a coffee on Ko-fi

Frequently Asked Questions

Why does ADB mDNS use Wireless Debugging instead of legacy port 5555?
Android 11+ introduced native TLS 1.3 Wireless Debugging with SPAKE2 PIN pairing. Unlike legacy port 5555 which sends plaintext ADB tokens and requires USB tethering or adb tcpip commands, Wireless Debugging is natively secure, survives firmware reboots via dynamic mDNS discovery, and requires zero helper binaries.
Do I need to re-pair every time my Android TV reboots?
No. While Android rotates the TCP port on every boot, the cryptographic TLS client key and pairing relationship persist permanently. ADB mDNS dynamically monitors Zeroconf mDNS service broadcasts (_adb-tls-connect._tcp.local.), detects the new port instantly, and reconnects without user intervention.
Does this integration install any APK or helper app on my TV?
No. ADB mDNS is 100% pure ADB over TLS. It directly interfaces with standard OS shell services (dumpsys, am, pm) built into Android and pushes zero APKs, JAR files, or background daemons to your TV.
Can I run this integration across different VLANs or subnets?
Yes, provided your router or firewall has an mDNS repeater / reflector (such as Avahi or router-native mDNS reflection) enabled between your IoT and Home Assistant VLANs, and allows TCP traffic to the dynamic high-port range (typically ports 30000–45000).
Why does the TV show as offline when powered off?
Many Android TVs turn off their Wi-Fi chip during deep sleep or standby. To allow turning the TV on, ensure your TV has "Network Standby", "WoWLAN", or "Fast Start" enabled in its system power settings, or connect via Ethernet with Wake-on-LAN.
Does this require ADB installed on my Home Assistant host?
No. The integration implements the entire ADB protocol and cryptographic handshake in pure Python within the integration itself. You do not need the Android SDK, an external ADB server container, or host-level ADB binaries.