LibreTasks
LibreTasks copied to clipboard
Feature request: shell access
A lot of the automation done in other apps can be done using the native android shell, plus busybox. Would it be within the scope of this project to allow shell scripts to be run based on existing conditions? Root acess to specific scripts would be fanastic if possible. Things like setprop to change dns and doing a full backup in recovery are some of the things one can do in the native shell that I automate using similar tools.
Do you know the opensource tasker app "Sfen"?
This app can execute terminal shortcuts depending on time, location and other conditions. It runs for me on CM13 although the app is quite old.
Just write in the second row of the terminal shortcut form something like
su -c "sh /path/my_script_with_commands.sh"
The app "Sfen" does not need root to do this but your lockscreen must be deactivated to run terminal commands when screen is off.
https://github.com/lordgreg/Sfen
Bug workaround for Sfen: In order to save a new or changed event the event must be switched off when pressing the save button. Then open the event again, do not change anything, activate it and press the save button again.