Moto G Power 2020 wifi on/off action not working

wing0

New member
Moto G Power 2020 running Android 11 with MD helper installed.
Location permission given for both apps.

I want to keep wifi on all the time using a interval based action to "enable wifi" on the phone.
However, it doesn't seem to be working.

Any suggestions?
Thanks.
 

Endercraft

Moderator (& bug finder :D)
Moto G Power 2020 running Android 11 with MD helper installed.
Location permission given for both apps.

I want to keep wifi on all the time using a interval based action to "enable wifi" on the phone.
However, it doesn't seem to be working.

Any suggestions?
Thanks.
What does your log says ?
 

Josué García

MacroDroid Support
Staff member
Moto G Power 2020 running Android 11 with MD helper installed.
Location permission given for both apps.

I want to keep wifi on all the time using a interval based action to "enable wifi" on the phone.
However, it doesn't seem to be working.

Any suggestions?
Thanks.
Macrodroid helper and macrodroid have the permanent location permission? by default when the permission request appears it only shows to allow when the app is in the foreground
 

wing0

New member
What does your log says ?
17-09-22 15:33:40 - Regular interval trigger wakeup (3) (Turn On WiFi)
17-09-22 15:33:40 - Wake up (3) scheduled for: 10s (Turn On WiFi)
17-09-22 15:33:40 - T: Interval: 00:00:10 (Turn On WiFi)
17-09-22 15:33:40 - Invoking Macro: Turn On WiFi (Turn On WiFi)
17-09-22 15:33:40 - A: Enable Wifi (Turn On WiFi)
17-09-22 15:33:40 - Sending request to Helper File to enable wifi (Turn On WiFi)

Macrodroid helper and macrodroid have the permanent location permission? by default when the permission request appears it only shows to allow when the app is in the foreground
Yes, I turned on permanent permission for locations and not just when app is running option.
 

Endercraft

Moderator (& bug finder :D)
17-09-22 15:33:40 - Regular interval trigger wakeup (3) (Turn On WiFi)
17-09-22 15:33:40 - Wake up (3) scheduled for: 10s (Turn On WiFi)
17-09-22 15:33:40 - T: Interval: 00:00:10 (Turn On WiFi)
17-09-22 15:33:40 - Invoking Macro: Turn On WiFi (Turn On WiFi)
17-09-22 15:33:40 - A: Enable Wifi (Turn On WiFi)
17-09-22 15:33:40 - Sending request to Helper File to enable wifi (Turn On WiFi)


Yes, I turned on permanent permission for locations and not just when app is running option.
Make sure that helper app is in background and never killed (like MacroDroid).
Before I would not be able to change settings using helper app because it wasn't running.
 

MacroDroidDev

Administrator
Staff member
It's very important to exclude the helper file from battery optimization. If you haven't done this you will see an option in the overflow (three dots menu) in the top right. Without doing this some features of the helper file simply will not function on some devices.
 

wing0

New member
Thanks for all the help.
I did disable all battery optimization on both macrodroid and md helper.
I can see in the md helper that it received the command to turn on Wifi.

In the end while I was working on another phone, Samsung Galaxy A53, it worked flawlessly with macrodroid after I did the ADB hack here:

So I decided to give it a go on this moto g power as well and now the wifi toggle is working properly.
 
Top