Macrodroid is not switching Data / Switching = fake / Android 10

FlashMind

New member
I'am using Macrodroid since Android KitKat 4.0 so i grow up with this APP and i have done quite a lot of Macros (also very special or crazy working Combinations) on Rooted and non Rooted devices with the so called ADB-Hack up to now and everything was working so far ! So i think for shure i know to use and handle this APP !

But since 1 week i had to switch with an new Phone also to Android 10 (all my mobils i worked on where up to Android 9) and i find out that the Data On/Off is not working anymore it is working like an fake with Android 10 ! I will explain:

So when i make a switch On and Off Macro for the Data-connectivity it seems to work !!?? In the Statusline the Mobil Data icon ist switching it's color to indicate On or Off (O.K.), and when you Pull the Statusline further down to see what is written under the Icon is even says the Icon indicated status = When Mobil Data icon Off it writes under the Icon Mobile Data Off ! The same other way around when Mobil Data icon is On it says under the Icon Mobil Data On and writes the Carrier ! So far so good !

But i was wondering (and i discovered this in the Nighttime as i have a Macro witch switches by 23:00 houres WIFI and the Mobile Data Off and then by 6:00 morning On again) as that in the running night, where there suppose not to be any Traffic i had Traffic still in the Background and even Messages over social Networking was coming thru ???? This suppose not to be when i switch Off WIFI and also at the same time the Mobil Data !!!!

So i installed an APP witch was showing me the CELL-Carriers as Aktiv or not etc. and there i discovered even that the Mobile Data Lines seems to be switched of from Macrodroid and Indicated in the Statusline and Networksettings of the System that the Mobil Data is Off it is an false reporting the Dataline ist still active working (WIFI on the other way is switched correctly Full On or Off).

I have tested some Macroprogramming and find out to switch off also the Mobil Dataline as i switch off the Wifi for the night i had to make an workarround witch worked then really: Connectivity night = WIFI ON, 2Seconds pause, Mobil Data Off, 2Seconds pause, WIFI OFF
After this Macrofollowing then the Data is really switched off
In the Morning the same arround: Connectivity day = WIFI ON, 2seconds pause, Mobil Data On, 2Seconds pause, WIFI OFF, 10Seconds Pause, WIFI ON

Only with this i could get the Mobil Data for Night Day correct switching, the thing is that this is not working for the over Day in between switching ! You have to switch or toggle before changing the state of Mobil Data the WIFI on or OFF so i guess the WIFI On or OFF is triggering something in the Android System so that Macrodroid could come thru with the correct switching !

So that means there must be an Bug or an Problem between Android 9 and 10 with Macrodroid, because up to Android 9 everything was running without workarounds and Problems !

Perhaps someone has any other idear or is this a already known Case and it could be solved in one of the next Updates from Macrodriod or the Macrodroid helper !?

any answer is welcome

thank's
 

Jacob L

Moderator (Lawsonator)
My suggestion would be to backup your macros, clear the app data for MacroDroid. You will then be prompted to allow permissions again, this usually fixes the issues.

However, please can you provide us with some screenshots, macros and system logs? So we can diagnose the issues. Some devices just will not work but I am sure we can get it to work. Are there any strings in the system setting action that will get your data to toggle like you wanted?
 

FrameXX

Well-known member
I'am using Macrodroid since Android KitKat 4.0 so i grow up with this APP and i have done quite a lot of Macros (also very special or crazy working Combinations) on Rooted and non Rooted devices with the so called ADB-Hack up to now and everything was working so far ! So i think for shure i know to use and handle this APP !

But since 1 week i had to switch with an new Phone also to Android 10 (all my mobils i worked on where up to Android 9) and i find out that the Data On/Off is not working anymore it is working like an fake with Android 10 ! I will explain:

So when i make a switch On and Off Macro for the Data-connectivity it seems to work !!?? In the Statusline the Mobil Data icon ist switching it's color to indicate On or Off (O.K.), and when you Pull the Statusline further down to see what is written under the Icon is even says the Icon indicated status = When Mobil Data icon Off it writes under the Icon Mobile Data Off ! The same other way around when Mobil Data icon is On it says under the Icon Mobil Data On and writes the Carrier ! So far so good !

But i was wondering (and i discovered this in the Nighttime as i have a Macro witch switches by 23:00 houres WIFI and the Mobile Data Off and then by 6:00 morning On again) as that in the running night, where there suppose not to be any Traffic i had Traffic still in the Background and even Messages over social Networking was coming thru ???? This suppose not to be when i switch Off WIFI and also at the same time the Mobil Data !!!!

So i installed an APP witch was showing me the CELL-Carriers as Aktiv or not etc. and there i discovered even that the Mobile Data Lines seems to be switched of from Macrodroid and Indicated in the Statusline and Networksettings of the System that the Mobil Data is Off it is an false reporting the Dataline ist still active working (WIFI on the other way is switched correctly Full On or Off).

I have tested some Macroprogramming and find out to switch off also the Mobil Dataline as i switch off the Wifi for the night i had to make an workarround witch worked then really: Connectivity night = WIFI ON, 2Seconds pause, Mobil Data Off, 2Seconds pause, WIFI OFF
After this Macrofollowing then the Data is really switched off
In the Morning the same arround: Connectivity day = WIFI ON, 2seconds pause, Mobil Data On, 2Seconds pause, WIFI OFF, 10Seconds Pause, WIFI ON

Only with this i could get the Mobil Data for Night Day correct switching, the thing is that this is not working for the over Day in between switching ! You have to switch or toggle before changing the state of Mobil Data the WIFI on or OFF so i guess the WIFI On or OFF is triggering something in the Android System so that Macrodroid could come thru with the correct switching !

So that means there must be an Bug or an Problem between Android 9 and 10 with Macrodroid, because up to Android 9 everything was running without workarounds and Problems !

Perhaps someone has any other idear or is this a already known Case and it could be solved in one of the next Updates from Macrodriod or the Macrodroid helper !?

any answer is welcome

thank's
Jacob L have propably true. I am using Android 10 and have not these problems. Make sure you have latest version of MacroDroid Helper installed. Also you can try alternatively Action > System Settings > Global > key="mobile_data1" value="1" or "0".
 

FlashMind

New member
Thank's for so fast responds !

Let me try this idear with Backing up Macros, the deinstall Macrodroid and install it again.

Then i will get the helper intigrated again give of course all the Permissions and then will try again ! Then i will report back !

And the only way to make Datatoggle is over the Statusline when i press the original Mobil Data Button On or Off or i use this special made macro what i was explaining already. The one thing i wonder very mutch is that i have to switch WIFI On (even that i not use this) and then Mobil Data OFF and after that also not to forget to switch of WIFI again otherwise the Data Toggeling will not work fully, so it seams that WIFI Switching is activaiting or doing something what then gives the Push that the Mobile Data toggling will start reacting !
 

FlashMind

New member
So the nearest and fastest was to test FrameXX suggestion with action, but this is not working at all nor Integer or value ! The Mobil Data Icon even not changes state it is nothing happening ! The only thing is over connectivity and then like before explained and my funny macro with WIFI switching before and after

So i will go no to step 2 and try the suggestion of Jacob L (will take a little more time)

I have the latest helper 1.5 from Macrodroid given download and also the latest Macrodroid from PlayStore ! So from this side i'am UP
 

Jacob L

Moderator (Lawsonator)
This video will show you how to do the ADB hack, which I assume you know how to do, However, there is a tool linked in the description that will do it all for you, including installing the helper and granting it permissions

.
 

FlashMind

New member
So i am back !

I tried now the following of Jacob L

1. Backing up Macros
2. Deaktivating Macrodroid
3. Deinstalling Macrodroid and the Helper App
4. Rebooting Mobile
5. After Boot Installed Macrodroid from Playstore (is the latest Version)
6. Installed Helper 1.5 App (seam to be the latest because it is from the actual Microdroid given Link)

7. Giving all Permissions for Macrodroid
8. Giving all Permissions for Helper App

9. Allow Macrodroid under Accessibility
10. Give under Security Macrodroid and Helper Admin Free
11. Excluding under DuraSpeed that Macrodroid and Helper is not touched from System or Android to be Killed or put to sleep (so full running Background proccess permission without any restriction

12. Gave Macrodroid over Android settings the permission to run in Background
13. Excluded under Android Batteryoptimization Macrodroid and Helper App

14. Imported my Macros Back (after getting in any Macro now an error that i had to install the ADB-Hack)

15. Applied again the ADB-Hack

16. Rebooted Mobil

17. Testet now my Macros again - NO CHANGE -

So everything is like before ! Mobil Data is toggeling in statusline and reporting Mobil Data is Off but it still runs in the background !
My Funny Programmed Macro works with toggeling before WIFI

So any other idear !?
 

FlashMind

New member
Information to Jacob L ! I also tried this and i have exactly this files but when i start this only the ADB-Hack is Installed, the helper file Installation is reported in the CMD as: The Helperfile could not be Installed because of several java-security errors.

So i prefer to do it the old way as to start the Phone in ADB direkt from the Recovery and then go over the cmd to programm line by line, there i get the corresponding right confirmation when it is done

And i downloaded the helper file from your given link out of Macrodroid direkt to Phone Download and startet the Installer over the Package Installer. So from this side it should be also the same way O.K. and it is running as after Installing this Helper file i could start to switch the WIFI On/Off without this or the propper Installtion of the Help App then you could not toggle WIFI !
 
Last edited:

FlashMind

New member
So.... as that it seams that nobody has an resolution or idea to my Problem i was Testing over the time (weekend) some of the Mobil's in my Family to see that this Problem is only with me or even with other Mobil's as that i Install and Prepare all the Mobil's in my Family and i will will list you my Experience witch can help the Developer to find the Problem easier:

So followed:

1. My Mobil CUBOT Note 20 pro Version 2 Modelyear 2021 Android 10 = Fakeswitching (only Crazy Macroworkarround with WIFItoggle working)

2. My Companymobil CUBOT 20 pro Version 3 Modelyear 2021 Android 10 = Fakeswitching (only Crazy Macroworkarround with WIFItoggle working)

3. My Wifes Mobil SAMSUNG M51 Modelyear 2020 Android 10 = Fakeswitching (Crazy Macroworkarround with WIFItoggle NOT working)

4. My Son's Mobil SAMSUNG S20+ Modelyear 2020 Android 10 = Fakeswitching (Crazy Macroworkarround with WIFItoggle NOT working)

5. Sister of my Wife's Mobil Xiaomi Redmi Note 9 pro Modelyear 2020 Android 10 = Fakeswitching (Crazy Macrodroidworkarrounf with WIFItoggle working)

6. My Father's Mobil SAMSUNG N970F Galaxy Note10 Modelyear 2020 Android 9 = Fully Switching Mobil Data

7. My Father's Mobil OKITEL WP7 Modelyear 2019 Android 9 = Fully Switching Mobil Data

8. Our Secretary SAMSUNG S10 Modelyear 2019 Android 9 with Rolled-Out Android 10 = Fakeswithing (Crazy Macroworkarround with WIFItoggle NOT working) ++Before the Android 10 Rollout it was working Fully Switching Mobil Data on Android 9++

So that's indicating to me that it is not running from Android 10 on UP and please consider that i was also thinking in the first Days everything is working ! So i know what i'am writing here ! I think the easiest test could be made (not to confuse people here) try switching of Mobil-Data with Macrodroid (and also be shure to have WIFI OFF) then open any browser or facebook what you like and try to send or receive ongoing messages or stream over Youtube any film and you would see that Mobil Data is still working even that also under Android settings the switch for Mobil Data is Off ! That is the best Test for that.

I hope my effort will help to troubleshoot the Problem what seams to be from Android 10 like i mentioned !

When there will be any other solutions or idears to this problem or even a new Update coming out resolving this issue than your welcome to let me know ! For timebeing i and also all the others of my Family have to switch ON and OFF Mobil Data the old way (Pull down the Statusbar and then Tap the Mobil Data Switch).

Thank's

 

dhj49er

Well-known member
I understand Google changed mobile data access from Android 10 onwards. Up till then apps like Macrodroid could directly change mobile data. But not from 10.
There is a another alternative method in Macrodroid which is worth trying.
Have you tried using the system global setting mobile_data?
Set this to 1 for on and 0 for off.
This works on some phones but not all.
I have S20 FE and it works and believe it works on all S20 models.
Unfortunately, this is a Google enforced change and not something the Developer can undo.
Blame Google.
 

dhj49er

Well-known member
On one phone where the global mobile_data setting didn't work, I had the following workaround.
This requires WiFi to be on and connected eg probably the case when you are at home or work. When the screen is switched off, a macro turns on mobile data.
When you loose the WiFi connection as would happen leaving home or work, Android automatically switches to mobile data.
When the screen is turned on, mobile data is turned off if WiFi is connected within 20 seconds. This means you are still at or returned to home or work.
 
Top