I don't know, you have to do it by trial and error.When you say logcat trigger are you referring to logcat message? If so could you please let me know what value I need to put inside component and enter text to match fields? thanks for your help so far
View attachment 7760
If you need that trigger to prevent reboot or shutdown, be aware that very long press (10-15 sec) still reboots the device and cannot be excluded (acts at the hardware level)When I press the power off button (long press), I want Macrodroid to prompt for fingerprint/pin or something. I have Samsung s22 with Android 13
Thanks
ahh thanks for pointing that out, nevertheless im going to make my phone useless to a thief as much as I can lolIf you need that trigger to prevent reboot or shutdown, be aware that very long press (10-15 sec) still reboots the device and cannot be excluded (acts at the hardware level)
You should try and get these specific lines yourself as often logcat varies across devices and something that works for me might not work for you and the other way around.could you please look into the other lines within the red box that can specifically detect power off within long press situation?
I have found the line, I can detect long press button as a trigger. Now i'm just struggling with UI Interaction bit, once the long press has been detected, how do i take the user to the home page. im not sure which click option I need to use?You should try and get these specific lines yourself as often logcat varies across devices and something that works for me might not work for you and the other way around.
I have found the line, I can detect long press button as a trigger. Now i'm just struggling with UI Interaction bit, once the long press has been detected, how do i take the user to the home page. im not sure which click option I need to use?