Hi,
I have a macro to skip a track in AIMP app with the proximity sensor. The screenshot is below, but the main point about the constraints is that the app should be in the foreground and device should be locked. The macro was created in 2020 for a Meizu phone, worked there flawlessly, now (for a couple of years) it is used on a Redmi (MIUI 12.5.8 = Android 12, Helper is installed, root right is given to MD). Everything worked fine until the version 5.53 (April 2025)
The symptoms are

I have a macro to skip a track in AIMP app with the proximity sensor. The screenshot is below, but the main point about the constraints is that the app should be in the foreground and device should be locked. The macro was created in 2020 for a Meizu phone, worked there flawlessly, now (for a couple of years) it is used on a Redmi (MIUI 12.5.8 = Android 12, Helper is installed, root right is given to MD). Everything worked fine until the version 5.53 (April 2025)
The symptoms are
- Track don't skip when locked. The system log universally contains the line [Proximity Sensor (Near) did not fire because constraint failed: Device Locked (Skip track aimp) Skip track aimp]
- If I disable the Locked part of constraint and test the macro with the unlocked phone and the AIMP app in the foreground, the macro works
- Early last week when I tried to detect what was wrong, reentering the dialog with choosing the app and resaving the macro helped temporary. So the skipping started to work in the locked state, but this was not consistent, so like now it works, the next day this "fixed" macro didn't work
- Changing choosing the package name instead of the app didn't help
