Not able to enable wifi

Kaltz

New member
Hello all.
I have a POCO X3 NFC. Miui 13 installed.
I've done the ADB Hack to garant permissions to Macrodroid v5.30.7 and MD Helper v1.7.
I can now enable/disable the Bluetooth, the NFC, the Location and Mobile Data. But I can't do the same thing with the WIFI.
Does anyone know why and how to fix it?
Thanks
 

Dimlos

Well-known member
Can you enable/disable Wi-Fi with the ADB command?
If so, using ADB Shell [Tasker Plugin] would be a temporary fix.
 

dhj49er

Well-known member
Can you enable/disable Wi-Fi with the ADB command?
If so, using ADB Shell [Tasker Plugin] would be a temporary fix.
Why only a temporary fix?

My experience of Xiaomi is that they implement their own restrictions, over and above stock Android. This may be yet another example of this.

However, the OP needs to make sure that location is enabled all the time for MD and MD helper apps. This is mandatory for controlling WiFi.

IF this doesn't solve the issue, then ADB shell is likely the only solution.
 

Dimlos

Well-known member
Verification with POCO F3 showed that the Wi-Fi switching worked, although a confirmation dialog appeared.
So I think there is a high possibility of a power saving system problem.

The adb command requires a command for each reboot, which can be automated if you are familiar with it to some extent, but some people may find it troublesome.
 

Attachments

  • wifi_toggle.jpg
    wifi_toggle.jpg
    290.2 KB · Views: 10

Kaltz

New member
Thank you for your responses.
I've been experimenting with my phone and now (don't ask me what i did) I can enabled/disabled WIFI but only after allowing permission in this annoying message.
 

Attachments

  • Screenshot.jpg
    Screenshot.jpg
    51.1 KB · Views: 8

Dimlos

Well-known member
Unfortunately, the confirmation dialog cannot be turned off, although it probably will not appear in the case of the adb command.
 

MacroDroidDev

Administrator
Staff member
This is really designed to work with the V5.32 release which is coming soon, but you can get a preview of the new helper file here: https://www.macrodroidforum.com/MacroDroidHelper_v1_8.apk

This is built against API 23 and should work ok with Xiaomi devices.

DO NOT DOWNLOAD THIS UNLESS YOU SPECIFICALLY REQUIRE IT TO FIX THE XIAOMI ISSUE. It may cause other issues!
 
Last edited:

Dimlos

Well-known member
I tested it immediately and was able to switch Wi-Fi with POCO F3 without a confirmation dialog.
I think this is great.
 

MacroDroidDev

Administrator
Staff member
I have added a warning above that you should not download the new helper app unless you really need the Xiaomi fix. I'm still trying to work out the best approach to handle the need for lower API.

@FrameXX Apologies this version was not supposed to be released yet, I just made it available without thinking it through and I will update the translations when I officially release a next version. Thanks for reminding me!
 

MacroDroidDev

Administrator
Staff member
My current plan is to make the main helper file target SDK 23 and within the helper file embed an APK built against SDK 21 that will handle the system settings stuff. The helper app will then prompt to install this additional helper on first launch. I done a quick experiment with a dummy APK and it looks like the installation stuff should work.

I need to test how this works on Android 14, I'm guessing it will still refused to install but I shall find out!
 
Top