I have this problem about every two weeks with Android 12. I didn't have these problems with the demo. Maybe the reinstallation of Macrodroid caused the problem. Currently I've only solved it temporarily by disabling and re-enabling the settings, which is a lot of work with multiple rights, or...
If you have not set a password or pin, you always have to manually allow file transfer via USB again on newer Android versions. The setting for this in the developer settings is always reset when the device is plugged in via USB.
Has anyone already dealt with this?
Yes, I use 150ms.
I added a helper script which checks if the phone is just connected or disconnected with the USB cable. Because then the screen also turns on for me. If this script was active, then the smart lock unlock script should not be active (Screen On > Add constraint > Macro not...
Yes, I also just noticed that Screen Content works. By the way what is the "Off Screen" option?
The problem is that I only get it to work when I use all applications. So the next goal is to find the ID of the app. I will try that via "Check Text on Screen".
Is it possible to run a macrodroid...
I'm on Android 12 and I have found a solution:
Trigger: Screen On
Actions: Check Text On Screen -> smartLock
If smartLock = True do UI Interaction if Device Locked
How can I tigger a macro when an alert like this is displayed. Because this is always displayed after a long time of playing audio and as long as it is not clicked away, the volume remains quiet.
How can I tell if my phone is unlocked with Smart Lock? Because then my script should behave differently.
According to macrodroid detection it is also locked with smart lock. Thus this does not help.
I also tried to detect the text. But so far I had no success: