Coldblackice wrote: ↑18 Feb 2020 21:18
This sounds really interesting. Can I ask what it's meant for, like what sort application/case where it'd be utilized ("application" meaning use case, not app/program)?
It started here, about 2 weeks ago :
viewtopic.php?f=6&t=8566&sid=fc5e5d9b6e ... 43644feef0
And I just finished the last feature from the original plan yesterday.
I saw tasker new feature of using logcat. At first I am just thinking to duplicate that in Automagic. I already have 2 simple shortcut to logcat in order to help troubleshooting. But the logs are too crowded, partially by AM logs too. I have been thinking some regex method to remove those unnecessary log from the output. Mixed both purpose, and my AM logcat flow was borned.
And I added many things beyond the original concept.
The main purpose is to helps in creating trigger command output, just like what you see with tasker logcat feature. My old flow start the logcat from smartbar navbar (feature from custom ROM), but not every phone have this. So I create the floating widget, everyone can use it then.
Here is the examples from tasker :
- Augment Pixel 4’s motion gestures
- Do different stuff for each finger when unlocking the device
- React to snoozing an alarm
- Do different stuff for when you unlock your device with your finger or with a pattern
- React to the Back button being held for 1 second in any app
- React to the software keyboard being shown/hidden
- Do different actions on Samsung devices depending on if the power button was double-clicked or the Bixby button was pressed
Some of these actually can be done by checking intent general broadcast, but not all android produce the same log. So this is more to catch special event that are specific to some devices.
Example, at my phone, trigger fingerprint swipe doesn't work. Nothing triggered. But at the logcat level, there is log when fingerprint is detected (not authenticated). So I just use that as the trigger. Before this, I have to logcat using my old flow, open the file, manually scanning each line. I can find and get to the fingerprint service, but still have to copy the message part manually and then create the command output trigger by pasting them. Now, it is a simple search or scroll at the service, pick the tag + message. Using menu Create Command output trigger in my flow, you simply need to tap the trigger and the CUI will Automagically create the full command. The filter works at tag and regex level directly into the logcat command, so no additional unneeded output produced, less overhead.
I have use logcat mostly for troubleshootinng, so this flow also will help me in the future, identifying source of problem. Such as some app might be spamming full screen ads or browse url intent. You can detect it using keyword action.VIEW.