Hi! It's my very first post here. I encountered a problem with mobile data toggle. My phone runes MIUI 12.5 (Android 11), and has locked bootloader, so in consequence it is not rooted. Obliviously I have to use ADB to theoretically makes it work, so like this comment suggest:
I run this two commands. The are correctly applied, as some other function, which also require ADB works fine. But the mobile data toggle does not work at all. The best I can do is set mobile_data0 to 0, but the change is only graphical - the data shows off in status bar, but I still have connection. So what's more I have to do to make it works? Tasker can handle it, but I much more prefer Macrodroid interface. Could you help me make it works, like a Tasker do?Once you have a working adb connection, you need to run the following command from the command line/terminal on your computer:
adb shell pm grant com.arlosoft.macrodroid android.permission.WRITE_SECURE_SETTINGS
followed by:
adb shell pm grant com.arlosoft.macrodroid android.permission.CHANGE_CONFIGURATION