2 ms·
I love this. It has been possible to use extensions on Android, but keeping them loaded on Android after OOM reclamation has been a pain up until now. I wrote
by xrd 3y ago
I love this.
It has been possible to use extensions on Android, but keeping them loaded on Android after OOM reclamation has been a pain up until now.
I wrote up a hack where I push Android Firefox extensions over Wireguard and OCR.
https://blog.plzat.me/2023-05-23-android-in-wireguardland-pushing-extensions-down-the-firefox-hole-using-ocr https://blog.plzat.me/2023-05-23-android-in-wireguardland-pu...
Hopefully this is the end of the need for this kind of hack. I love Firefox on all my platforms and having extensions on Android makes it even better.
- herewulf 3y agoOkay, that's an impressive hack! One that should be totally unnecessary, but wow, nice job working around limitations! By the way, seems like you could use inotify to detect new screenshots rather than polling the Syncthing API. Probably not enough of a functional difference to change something that is already working though.
- xrd 3y agoThanks for reading through that long convoluted post! I appreciate the comment. Syncthing was necessary to get the files onto my desktop machine, and I don't know how I could have automatically pushed from my android phone otherwise. Syncthing was so ridiculously easy to use, I basically just started a docker container, and then added the backend on my Android device. Zero firewall configuration. So simple. I suppose I could have easily used inotify, but either way I needed a script to launch the OCR, and I don't really see a big value in using a filesystem watch over an API when the syncthing api is very simple. Cheers!
- herewulf 3y agoAbsolutely. I very much enjoyed the write up. You make a good point about Syncthing. It's just that polling kind of offends my sensibilities if there's something better. But.. I'm one of those hackers running multiple bash processes per second just to update my status bar... For about ten years now! So, don't mind me. ;) Syncthing is great software and I'm using it on all my devices. I'm glad it provided an easy solution to your use case.