Hi
I want to know use of execute command action .
give me one example in which purpose we can use execute command.
thanks in advance
execute command action
Moderator: Martin
execute command action
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1
Samsung Galaxy j2 non rooted.
Android 5.1.1
Re: execute command action
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
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.
This is to see the low memory killer value to lower, so I can keep more app in the RAM before it got killed.
'
{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
Code: Select all
cat /storage/emulated/0/Automagic/flows.xml
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
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.
Code: Select all
busybox killall mediaserver
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.