Hacker News new | ask | show | jobs
by xrd 864 days ago
https://blog.plzat.me/2023-05-23-android-in-wireguardland-pu...

I am super excited about Firefox extensions, especially on Android. Until recently, you could add them, but then when the browser was killed for OOM, you needed to reload them and that required using ADB on a laptop. So, when I was out and about, I was stuck.

But, then I figured out that if I connected my Android device to my wireguard connection, then I could script my desktop machine to connect to my Android phone using ADB and install the extension remotely, even from thousands of miles away. The trick was that to turn on Wireless debugging in Android, you have to be on the screen with wireless debugging enabled and cannot leave it until the connection is made (so you cannot manually turn on the ADB push). I figured out a hack that involved taking a screenshot with the dynamic port and syncing that screenshot using syncthing and then a bit of OCR.