execute command action

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
Rafi4
Posts: 281
Joined: 01 Dec 2017 05:23

execute command action

Post by Rafi4 » 14 Jan 2019 10:34

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
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: execute command action

Post by Desmanto » 14 Jan 2019 17:05

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.

Code: Select all

busybox killall mediaserver
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
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.

Post Reply