Troubles with mobile data toggle - basic solutions do not work

Dimlos

Well-known member
It appears to be a problem specific to HUAWEI devices.

OPPO and Xiaomi do not show the confirmation dialog.

I don't have a solution at the moment, if I find one, I'll write to you.
 

dhj49er

Well-known member
It appears to be a problem specific to HUAWEI devices.

OPPO and Xiaomi do not show the confirmation dialog.

I don't have a solution at the moment, if I find one, I'll write to you.
Thank you for all your help.
I am using adb shell for WiFi and data and they work well.
Although I'm still using UI for boothtooth, as clicking on the status bar BT icon doesn't produce the confirmation dialog. Fortunately I have a workaround to Toggle the BT icon when the screen is off.
The confirmation dialog is a real pain and I think is totally unnecessary.
 
Thank you for all your help.
I am using adb shell for WiFi and data and they work well.
Although I'm still using UI for boothtooth, as clicking on the status bar BT icon doesn't produce the confirmation dialog. Fortunately I have a workaround to Toggle the BT icon when the screen is off.
The confirmation dialog is a real pain and I think is totally unnecessary.

How did you get it? "I am using adb shell for WiFi and data and they work well." is there any tutorial?
 

dhj49er

Well-known member
No tutorial that I'm aware of.
I suggest you read all of Dimlos posts in this thread.
You'll need ADB Shell, a tasker plugin, available on the Play Store.
Install it, disable all your phones battery optimization features for this app. This is essential, otherwise adb shell may not run when the screen is off.
Connect phone to pc and start adb session.
Issue command tcpip 5555 as stated in earlier post.
Create macros using the adb shell tasker plugin - examples of the setting are shown in earlier posts.
The macros will not work if USB Debugging is not enabled. I enable it, wait 500ms, execute the shell command, wait 500ms, disable USB Debugging.
I prefer not to leave USB Debugging permanently enabled as it represents a security risk.
 
No tutorial that I'm aware of.
I suggest you read all of Dimlos posts in this thread.
You'll need ADB Shell, a tasker plugin, available on the Play Store.
Install it, disable all your phones battery optimization features for this app. This is essential, otherwise adb shell may not run when the screen is off.
Connect phone to pc and start adb session.
Issue command tcpip 5555 as stated in earlier post.
Create macros using the adb shell tasker plugin - examples of the setting are shown in earlier posts.
The macros will not work if USB Debugging is not enabled. I enable it, wait 500ms, execute the shell command, wait 500ms, disable USB Debugging.
I prefer not to leave USB Debugging permanently enabled as it represents a security risk.


I will try, thanks
 

Dimlos

Well-known member
When debugging is turned on, not all devices can be operated from.
Operation from devices that do not allow RSA key fingerprinting will not be accepted, ensuring minimum security.
 

Moorhen

Member
It may be easier to use the ADB command.
ADB Shell [Tasker Plugin] worked on Android 10.
I came across your post searching for a way to make toggling mobile data work on my Pixel 6. I have Tasker installed but do you have a step by step guide on how you get this to work in MD using Tasker and maybe an example of the macro you're using? Thanks
 

Dimlos

Well-known member
I don't have a tutorial, but I will upload a macro, and if you read the information in this thread carefully, you should be able to get it to work.
I have tested it on Pixel 5a Android 13, so I think it will work on Pixel 6 as well.
 

Attachments

  • mobile_data_toggle.macro
    5.5 KB · Views: 7

Schmitti

New member
No tutorial that I'm aware of.
I suggest you read all of Dimlos posts in this thread.
You'll need ADB Shell, a tasker plugin, available on the Play Store.
Install it, disable all your phones battery optimization features for this app. This is essential, otherwise adb shell may not run when the screen is off.
Connect phone to pc and start adb session.
Issue command tcpip 5555 as stated in earlier post.
Create macros using the adb shell tasker plugin - examples of the setting are shown in earlier posts.
The macros will not work if USB Debugging is not enabled. I enable it, wait 500ms, execute the shell command, wait 500ms, disable USB Debugging.
I prefer not to leave USB Debugging permanently enabled as it represents a security risk.
I did everything so far and basically it works, thank you!

I have just one problem:
The macros will not work if USB Debugging is not enabled. I enable it, wait 500ms, execute the shell command, wait 500ms, disable USB Debugging.
How do you enable/disable USB-Debugging via Macrodroid? I can't find anything like that in the MacroDroid actions but probably I'm just blind.
 
Top