Now I installed this app.If there is any setting in settings.system, settings.global or settings.secure then it is possible however, this varies between devices.
This app wil give you a broad overview of the settings tables. You can also set them as a test. You will learn quite a lot about your device https://play.google.com/store/apps/details?id=by4a.setedit22
Now I installed this app.
I see in "System Table" this parameter:
"usb_tethering_enabeld" "0"
I created a macro.Find this value in the system setting action of MacroDroid and set the value to 1 and it should be on
Test the trigger and the action independently and confirm what is working and what is not.I created a macro.
Trigger: USB device connected
But the macro does not react when you plug the smartphone into the PC via a USB cable.
Does somebody has any idea?
How?Test the trigger and the action independently and confirm what is working and what is not.
Nothing.What does your System Log say?
Sorry, but i don't understand your solution.Or you could use notification received trigger to achieve this, for example if you have USB debugging enabled. If not, it should still display a notification to which allows you to switch USB mode between charge, MIDI or file transfer. This will vary per manufacturer however.