Xiaomi Support Thread

Bozinsky

New member
Edit global system settings [SOLVED]*

Hi everyone, I'm trying to make a macro that will overwrite a global system table setting.
GPUTUNER_SWITCH is set to false by default and revert to this parameter at every reboot, even if it works when I modify it with another app, which needed the same adb hack WRITE_SECURE_SETTINGS as macrodroid app.

The macro will be activated at every phone boot, but it turns out that it doesn't work as expected..

Any suggestions from you?
Thanks in advance.
BoZ



*Edit: solved.
Macrodroid helper autostart option was disabled. Enabled it everything works fine
 
Last edited:

Dimlos

Well-known member
Hello, I have a problem with Shell Script, with the "tail -1" function.
The resulting variable is the filename followed by "permission denied".
I checked the permissions and turned everything on.
I noticed that miui, however, allows access only to multimedia files, I had proof of this by changing the extension of the .CSV file to .JPG.
With the file in .jpg extension the "tail -1" function works perfectly.

Is there a way to allow macrodroid to interact with .csv files?

The phone I use is a note 10 pro, miui global 13.0.16
Check the "Use Helper App" checkbox.
 

Attachments

  • tail_script.jpg
    tail_script.jpg
    261.6 KB · Views: 10

olekoman

New member
Na tel. Redmi note 10s jsem vytvořil makro, když se zapne rádio v autě a poté se spojí s bluetooth s mob.tak by se mělo vypnout WiFi a naopak. Chtělo to pom.aplikaci tak jsem ji nainstaloval a vše povolil. Po připojení k rádiu mi vyskočí hláška a musím stejně potvrdit ručně. Co dělám špatně a poradí někdo jak to zprovoznit? Hlavně mi tu nepište proč vypínám WiFi😂
 

Attachments

  • Screenshot_2023-03-16-19-31-40-112-edit_com.miui.securitycenter.jpg
    Screenshot_2023-03-16-19-31-40-112-edit_com.miui.securitycenter.jpg
    121.6 KB · Views: 6

Dimlos

Well-known member
The problem with the confirmation dialog will be resolved in a new helper under development.
Please wait for the official release.
 

olekoman

New member
So MD worked for me for a while until I updated my phone. Now the problem is the same. It won't connect to WiFi again and this message pops up. This is a Redmi note 10s phone. Would an ADB hack help and how do I do it? thank you
 

Attachments

  • IMG_20230407_175007.jpg
    IMG_20230407_175007.jpg
    83.5 KB · Views: 4

Dimlos

Well-known member
It is working on Redmi Note 10 JE, so please check your settings.
Power saving system and Other permissions are important.
 

Attachments

  • App info.jpg
    App info.jpg
    215 KB · Views: 4

Dimlos

Well-known member
Some Xiaomi devices will show a confirmation dialog even if the settings are correct.

In this case, use ADB Shell [Tasker Plugin] and switch by ADB commands to prevent the confirmation dialog from appearing.
To use ADB Shell [Tasker Plugin], you must first connect to your PC and enter the adb command adb tcpip 5555.
This command is valid until the device is rebooted.

The topic of automating adb tcpip 5555 after reboot is discussed in this thread.
 

Attachments

  • disable wifi.jpg
    disable wifi.jpg
    261 KB · Views: 4
  • enable wifi.jpg
    enable wifi.jpg
    260.4 KB · Views: 5

Dimlos

Well-known member
You must first connect to the PC and enter the adb command adb tcpip 5555.
The method of sending ADB commands is the same as when doing an ADB hack.

All that is left is to set up the plugin using the screenshot as a reference.
 

Dimlos

Well-known member
Please ask in the appropriate thread about automating adb tcpip 5555 after reboot.
We also explain a simple method using LADB.
 

allangq

New member
My Xiaomi 12S Ultra cannot start APP with Macrodroid, and all other actions can be executed。I have set the battery settings according to the document。My phone system is MIUI 14。I bought The Macrodroid APP from the Play store。My dear dalao,Please help me。
 

Dimlos

Well-known member
@olekoman
This thread explains ADB Hack. Please run adb tcpip 5555 in the same manner.
 
Top