Shameless plug here:
I made an open source coding framework / prototyping tool that works very well we old Android devices.
I've used it for a lot of things. Made robots, radios, home controllers, cameras, etc out of old androids :)
1) I did post it sometime ago but did not get too much traction :)
2) I never heard of bun.sh, I'll have a look!
3) I did not notice about the Discord link. Probably it has been like that for ages :/
I will replace it in the site. Meanwhile here you have a new up-to-date one
https://discord.gg/Rt2mkWp
This is great! Would love to join the discord. A couple things that I'm curious about: can you make a script/app start by default, can you use a node library (murmur specifically), can you interface with peripherals (led and knobs). I'd like to turn my old androids into screen-less walkie talkies, and phonk feels like I might be able to avoid android studio, which would be a relief.
1) Yes, you can make a script that starts on device boot.
2) Sadly you cannot use node libs. The JS engine I use is pretty dated (Mozilla Rhino) and I dont have time these days to do big changes.
3) Yes, you can interface with Arduino compatible hardware via USB serial or Bluetooth / Bluetooth LE.
4) If you want to do something screen less, you can run a script as a service (background). A bunch of years ago, when the ESP modules were not common I used an Android device as a network interface for my Arduino :)
Have a look if you want https://phonk.app