An action block that await a message logged by an app or system component.
The fiber will pause until a matching message has been logged.
The message input argument must be a valid regular expression,
for more information see matches function.
A log message may include newline characters, so if a pattern doesn’t work as expected then try to using dotall mode, i.e. prefix it with (?s)
.
On Android 13+ the ”read sensitive log data” privilege requires user confirmation for every usage, this requirement can be avoided by choosing a Logcat workaround in settings.
An alternative to this block that is to use the
Shell command privileged, ADB shell command or Shell command superuser
block to execute: logcat -T1 -m1 <tag or *>:<V|D|I|W|E|F> -e <message> --uid=<package uid>
Note! This feature isn’t officially supported, may not work on all devices.