biotinker / LibreTasks

An updated form of Omnidroid
Apache License 2.0
82 stars 22 forks source link

Feature request: shell access #202

Open meteokr opened 8 years ago

meteokr commented 8 years ago

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.

toxtox commented 7 years ago

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.