I use it mostly for execute root command, because execute command is usually limited. Most likely you can do it using Automagic built-in function already. Example I still use simple cat command
Code: Select all
cat /storage/emulated/0/Automagic/flows.xml
You can do this using the usual action Init Variable Text File. So why I use the execute command version? Because built-in init text file is limited to 1 MB file only. My flows.xml is almost 1,8 MB.
Copy/move file also can be done via execute command, but it is much easier to use automagic built-in copy/move files.
Other command I use are mostly root ones.
Code: Select all
echo "18432,23040,27648,32256,55296,80640" > /sys/module/lowmemorykiller/parameters/minfree
This is to see the low memory killer value to lower, so I can keep more app in the RAM before it got killed.
Code: Select all
echo "{line}" > /data/local/tmp/chrome-command-line
'
{line} is the user agent string got from the chrome version. I echo this to force desktop user agent for my chrome android.
to restart mediaserver when it got hang up, especially when error can't connect to camera. I rarely use this now, as it used to be solution for my previous phone which freeze up a lot