WiFi debugging app for android tv

hey all,

ive coded this android app that you can compile and run on your android tv/google tv device that enables wifi debugging, sends the random port to home assistant which in turn sets the port to 5555.

its good to do this so you can use integrations like android debug bridge with devices that disable it on reboot and use random ports (newer android/google tvs).

you first need to adb pair with your android tv devices (which is remembered on reboot) then this android app will make a call to your home assistant with the port (automation) which will then adb connect to the device and adb tcpip 5555 to run it on a 5555 which the android debug Bridge integration can then use.

its a bit messy and requires hard coded attributes, and im new at this coding and wrote most of it with Gemini

hope it helps get around the annoying random ports for android debugging!

also requires (or is easier setup with) the android tv remote integration to call the app from home assistant.