LogCat access in Android 13

siva

New member
I have a rooted android 13, I need to have macros for logcat trigger. Even with rooted android, the pop up to give permissions appears some times when I open macrodroid and the macro fails to trigger after some time. What am I missing?
 

Endercraft

Moderator (& bug finder :D)
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.
 

Dev777

Active member
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.
How is it possible to use this as a trigger because there is no shell trigger option for macrodroid?
 

Endercraft

Moderator (& bug finder :D)
There 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 add logcat -c (clears the log) at the beginning of the shell script though. You can use Macro Enabled as trigger.
 

Dev777

Active member
There 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 add 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? Thanks
 
Top