{"repo":"mouldybread/adb-auto-enable","free":true,"listed":false,"github":"https://github.com/mouldybread/adb-auto-enable","clone":"git clone https://github.com/mouldybread/adb-auto-enable.git","description":"Automatically enable wireless ADB and switch to port 5555 on Android device boot - no root required. Seamless wireless debugging on Chromecast with Google TV and other Android devices.","language":"Java","stars":209,"topics":["adb","android","automation","home-assistant"],"license":"MIT","category":"mobile-apps","readme_excerpt":"🔧 adb-auto-enable Automatically enable wireless ADB debugging and switch to your chosen port (default 5555) on every boot, no root required! Android 14 introduces enhanced ADB security which disables and randomises the port used after sleep/reboot, breaking automation setups. Auto ADB Enable automatically re-enables wireless ADB, maintaining remote access for non-interactive devices. Developed on a Chromecast with Google TV (CCwGTV), results may vary on other hardware. Only works with WiFi - not Ethernet. How It Works 1. One-Time Pairing : App pairs with itself via localhost, storing authentication keys. 2. Auto-Grant Permission : After pairing, the app automatically grants itself WRITE SECURE SETTINGS permission via local ADB. 3. Immediate Boot Activation : On device boot, BootReceiver instantly launches AdbConfigService to satisfy Android 14+ foreground service launch rules. 4. Early Setting Enforcement : Instantly writes adb wifi enabled = 1 to Settings.Global before any network or sleep delays. 5. Stabilization & Network Wait : Service waits for an active Wi-Fi/Ethernet IP and allows a 30-second system stabilization period. 6. Port Discovery : Discovers the randomized ADB port using mDNS or a 64-thread parallel socket sweep ( 32768–60999 ). 7. Self-Connection & Switch : Connects to the local ADB daemon (127.0.0.1 loopback - device LAN IP fallback) and sends the tcpip: command. 8. Done! : ADB is now locked and available on your target port for external connections! [!WARN","default_branch":null,"files":null,"tree":[],"storefront":"/r/mouldybread","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mouldybread/adb-auto-enable/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}