The helper only works while the helper is open on the screen.

lonely.myp

New member
Actually, the problem is in the title; while the window is open and I’m looking at it, everything works.
If I switch to another application, nothing happens.
Commands from the macrodroid do not appear, there are no messages in the helper log.
I issued all possible permits, added a lock, nothing helps.
what can be done?

mdhelper 1.13
md 5.39.4
android 13 XOS
Infinix note 30 pro
 

lonely.myp

New member
But the macrodroid itself works in the background without problems. triggers and other macros work. I can switch to another application and the trigger will work.
 

lonely.myp

New member
for example, displaying the current parameter when a trigger is triggered - headphones
photo_2024-01-12_21-09-31.jpg

A hopeless situation. The macrodroid works in the background but cannot change the system settings, the helper can change the system settings but does not work in the background.
 
Last edited:

Endercraft

Moderator (& bug finder :D)
That's odd.
If you own an Infinix phone and are experiencing the app or music stopping, please try the following:

1. Check to see if battery optimization settings are closing backgrounded apps.
Go to Settings > Apps & Notifications > Your app > Background restrictions or Background limits are not enabled for the app.


OR might look more like this

1. Go to settings > Battery & power saving > Battery usage > Ignore optimizations > Turn on to ignore battery optimization for your app. If all fails you can turn Doze mode off completely.

2. Clear Cache and Data of the Phone App.
Go to Settings > Apps > All tab > Scroll down until you see “Phone” or similar option. Tap it, followed by selecting the “Clear Cache” option.

I see you have an app named "adb", if you can execute commands directly from your phone to itself then MacroDroid can automate these commands.
 

lonely.myp

New member
Maybe there is an analogue of the old "Security Settings" application?
It’s sad that I can easily change the parameters manually through "SetEdit" app, but I can’t change them through the macrodroid.
 

dhj49er

Well-known member
MD Helper needs unrestricted access to the battery in the background, as shown in the attached screenshot.

If I set that permission to Optimised, MD helper will only work correctly in the foreground.

That's exactly your issue, so worth checking it is set to unrestricted.

Also, some phone manufactures include their own additional battery optimisation functions. These need to be disabled as well.
 

Attachments

  • Screenshot_20240112_234728_Settings.jpg
    Screenshot_20240112_234728_Settings.jpg
    199.1 KB · Views: 5

lonely.myp

New member
The restrictions were removed when installing the program because it itself asks for this after launch.
The macrodroid works fine in the background, but the helper does not work in the background.
photo_2024-01-13_11-02-39.jpg
 

dhj49er

Well-known member
The restrictions were removed when installing the program because it itself asks for this after launch.
The macrodroid works fine in the background, but the helper does not work in the background.
I can confirm that the Helper works in the background and I don't believe your issue is a bug.

Have you tried turning off restricted setting by selecting optimised and then turning restricted back on?

Sometimes an OS can "lose" a setting and the above can help restore the setting

If that doesn't work, try power off reset.

If this doesn't work, try uninstalling and reinstalling the helper.
 

lonely.myp

New member
I have already tried clearing the cache, deleting data, switch energy modes in the application, reinstalling both the assistant and the macrodroid.
maybe it's just impossible to do on my phone
 

dhj49er

Well-known member
I have already tried clearing the cache, deleting data, switch energy modes in the application, reinstalling both the assistant and the macrodroid.
maybe it's just impossible to do on my phone
I think XOS has additional battery optimisation settings.

Have a look at this video

 

Endercraft

Moderator (& bug finder :D)
I can see in the unrestricted battery screenshot that the force stop button is not disabled which means the app is indeed running in background.
 

lonely.myp

New member
Yes, the helper runs in the background.
But the commands are executed only when its window is open, when it is active. if I switch to another application, the helper is silent and does nothing. It can be minimized for as long as desired without doing anything.
The program works as long as you look at it))
 

MacroDroidDev

Administrator
Staff member
I have no experience of or access to any Infinix device so there is no way I can test this. It may simply be a case that your device blocks this kind of functionality from happening in a non foreground app. (MacroDroid works as a foreground service so it's behaviour will be different). There may be some device specific settings or something in your phone's developer options that can change this, but unfortunately I have no specific knowledge to help I'm afraid.
 

lonely.myp

New member
Are there alternative programs that change system settings? Send a command to a program that can change parameters.
For example, "SetEdit" can change this setting.

Or is there another way to find out what's going on? Рermissions have been granted to the macrodroid, but there is an error in the log.
photo_2024-01-15_19-36-33.jpg
photo_2024-01-15_19-41-57.jpg
 

lonely.myp

New member
I want to change the system sound balance when connecting and disconnecting headphones.
As far as I could google, the balance is in the settings and can be changed by simply changing one value.
 
Top