guardianproject / lildebi

UNMAINTAINED please adopt! we can no longer maintain this
https://guardianproject.info/code
GNU General Public License v3.0
226 stars 55 forks source link

Post-Start Android script? #191

Open monnier opened 8 years ago

monnier commented 8 years ago

I wish Lil'Debi gave me the option to run an Android script after start.

As a GNU/Linux user I generally prefer to work in the Debian side, but I occasionally need to run commands on the Android side (e.g. "am") and I can't seem to do that from the ssh chroot. So I figured I could run an Android-side daemon which communicates with a Debian-side daemon so that I could send commands from Debian back to Android.

But I'd need to auto-start this daemon from the Lil'Debi startup script, yet currently the only such script I can configure is the ""Post-start Script" which is run within the Debian chroot jail.

Of course, I could also abuse such a Lil'Debi "Android-side startup script" to run unrelated applications at startup such as Linphone (since Lil'Debi successfully launches at boot while Linphone somehow fails to do so).