MD Xiaomi Helper + HyperOS - missing WLAN Connectivity permission

FoBBaN

New member
Hi folks!

Until I upgraded to HyperOS, my Xiaomi was working well with MD. For WiFi management there was additional setting to be ticked and all was working well.
But now, on new OS, this setting is missing from the place it was before. Anyone found that damn thing somewhere or is it possible to grant this access via adb?
I am annoyed with prompt every time my WiFi macro fires up...
 

FoBBaN

New member
For anyone that is struggling with - ADB Plugin works like a charm.

But anyway, we shall have a way to work without adb here.
 

Endercraft

Moderator (& bug finder :D)
I have HyperOS with Android 13 unfortunately and not experiencing those problems. I do have a redmi note 12 5g too but it's rooted so updating is quite complicated.
 

MacroDroidDev

Administrator
Staff member
I have acquired a Redmi Note 13 device with the intention of testing with Android 14/Hyper OS. Unfortunately it seems that the update is not yet available to me on this device so I'm waiting patiently for it to come through.....
 

FoBBaN

New member
Just an idea. There is no way to grant helper the permission for managing wifi via ui in hyperos. Just curious what is the adb command to grant it directly to application. Can you share it? I will help to test it right now right away.
 

MacroDroidDev

Administrator
Staff member
So far I can't find any way around this I'm afraid, but of course if anyone does discover some mecahnism or find some other app that can do it I will certainly look to add a workaround in MacroDroid.
 

FoBBaN

New member
I tried my best, looking for other apps but these are either not working or having the prompt again. I just skipped it and pushed in to other way.

I initially proposed that ADB Shell plugin can be a solution but I did not count one thing - WiFi Debugging (and assigned tcpip 5555 port) get disabled and reset after you get off the WiFi/disconnect WiFi. Sure, you can enable it as you are in WiFi again, but on random port (you need a pc again to assign 5555 port) and you cannot perform "svc wifi enable" over tcpip 5555 WiFi debugging as you are not in the WiFi :D so my idea sux....

I made another approach - if I utilize Shizuku, which is just approved to use WiFi debugging without specifying port, then this seems more robust. But again, disabling WiFi disables debugging. BUT - Shizuku allows to run script, that works even without WiFi enabled. I made my try here - no success as default Shell Execution action in MacroDroid has no permission to execute any file from any path I tried (maybe I am just missing some additional permission or something) but I just keep on searching. I found that there is Termux: Tasker addon, which executes scripts over termux shell. I made my try, added another permissions (for execution of shell by MacroDroid), enabled scripts from Shizuku, created macro and..... IT WORKS.

Summary:
Using "rish" script from Shizuku via "Termux: Tasker" plugin in MacroDroid allowed me to perform any adb command wherever I am in WiFi or not.

Idea:
Maybe MacroDroid could provide Shizuku integration by default? Some action that will exec rish script directly? This might be easier to implement than dig how to overcome that damn popup window? :D

If you wish me to describe in details what I did to make it working - let me know. I will prepare something and share then.
 

Endercraft

Moderator (& bug finder :D)
If you use Termux:Tasker and Termux then there is no need for Shizuku and you aren't restricted to shell access (you can run any adb command such as adb install).

 
Top