Open ae3e opened 4 years ago
Thanks for sharing this. I have a few ideas of why it might not be working, I'll take this opportunity to add improve a bunch of stuff regarding the background services and so on. I expect to release a new version by the end of this week and hopefully this will be fixed too :)
while trying the launch script feature I still experience that phonk does not start any more - also i can't find documentation on the format of the string describing the script to be launched. actually i was looking for a way to run phonk with a certain script on phone boot, so a student of mine could use it in an exhibition project. any ideas on this ?
just found the "launch on device boot" option, but for me it does not work ...
I had already some work on fixing the original issue but didn't find the time to complete the fix :sweat_smile: I'll have a look at it ASAP :)
note: "launch on device boot" works on old android 5.1 phones, but not on android 9. unfortunately i do not have others to test
I've been working on the issue and things are shaping nicely, I just need a bit of time to do the final touches.
@42loop Apparently Android changed some internals and now to launch an app on boot requires a permission that has to be enabled by the user manually. I think is called "draw on top of apps" permission. In the new PHONK version the app will redirect you to the settings in Android so you can enable it.
I added as well another option which is "launch a script on boot". So you can pick a script (with a nice dialog picker), which script to launch
The freshly baked version 1.4.2 has some improvements regarding this issue. It took some time! :sweat_smile: Feel free to try it out and let me know if it works in your devices :)
'launch on device boot' unfortunately still does not work:
I tried on android 8 and android 11 using PHONK 1.4.2 and works on both.
Steps: I went to Settings > Script Launch on device Boot, selected a Project. Then rebooted the device. After unlocking the first time the selected script launches.
Maybe if somebody else could try it, we could find out what's going on.
If i set a launch script in the settings, Phonk doesn't start any more and I get the following logs (I tried with a script having the
background_service
option set to true inapp.conf
and an another script with noapp.conf
file).When Phonk doesn't start anymore, I can make it work again by edtiting the
settings.conf
file and remove the launch script.Using PHONK 1.3.1_extended and Android 5.1.1