logcat | grep (entry)
). Then trigger when you get these entries.How is it possible to use this as a trigger because there is no shell trigger option for macrodroid?If you have root then this is a quick fix, simply use the "logcat" command in a root shell and the grep command to get entries (logcat | grep (entry)
). Then trigger when you get these entries.
logcat -c
(clears the log) at the beginning of the shell script though. You can use Macro Enabled as trigger.Do you mind sharing a sample macro please? ThanksThere is an option with grep to exit when a match is encountered, you can run your actions after the shell script and put everything in an infinite loop. Make sure to addlogcat -c
(clears the log) at the beginning of the shell script though. You can use Macro Enabled as trigger.