Troubles with getting silent photo on Xiaomi

vintage89

New member
Hello! I have two Xiaomi phones and I have some trouble on both.
I want to get a silent photo by pressing a + volume button on blocked screen.
In attach mine macros:
When it is a long press of a volume button
Action is: take a photo and small vibration.

when I'm pressing a button when macrodroid app is opened - all works fine, photo is getting, vibro works.
If I press a button when macrodroid app in background - vibro works, but photo is not taken(in md logs is absent strings "taking picture" and "picture taken"
If my screen is blocked – nothing isn't working: not vibro, not photo.

Both phones have all of permissions and root.
Can someone help me?
 

Attachments

  • IMG_20240206_165102_207.jpg
    IMG_20240206_165102_207.jpg
    87.7 KB · Views: 1

LF0

Member
I tried it on my vivo phone (no root) and it takes pictures normally when macrodroid is in the background, you should check if the battery optimization option of macrodroid is canceled and macrodroid is locked in the background

As for the second problem, the volume button trigger doesn't work when the screen is off, which is the same problem on my vivo device, you can turn on the screen and press and hold the volume button, or change it to other triggers, such as shaking the phone trigger
 

vintage89

New member
I tried it on my vivo phone (no root) and it takes pictures normally when macrodroid is in the background, you should check if the battery optimization option of macrodroid is canceled and macrodroid is locked in the background

As for the second problem, the volume button trigger doesn't work when the screen is off, which is the same problem on my vivo device, you can turn on the screen and press and hold the volume button, or change it to other triggers, such as shaking the phone trigger
Thank you, dear, for your reply! Any battery optimization is cancelled for macrodroid:( some other scripts are working perfectly. I will try shaking, thanks, but I need to solve a problem with taking a picture in background. Maybe someone solve that.
Thank you again!
 
Top