Thank you for all your help.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.
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.
Do I understand correctly that you have to keep adb over wifi all the time on? How about the security? Is it safe?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? ThanksIt may be easier to use the ADB command.
ADB Shell [Tasker Plugin] worked on Android 10.
I did everything so far and basically it works, thank you!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.
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.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.
Device Settings -> System Setting -> Global ->How do you enable/disable USB-Debugging via Macrodroid?