How to automatically enable ethernet tethering on Android 11? Each time the router reboots, the ethernet tethering (introduced in Android 11) breaks, and I'm trying to make it recovers automatically.
Developer options have a setting for enabling USB tethering on USB cable plug.
Is there anything similar for ethernet tethering?
Ok, got it working with Interact block in Automate.
It has a nice inspector I used for capturing an ethernet tethering tap event.

Reproducing tap only works with the screen unlocked so I used Tasker with AutoInput plugin to unlock the screen on the cable plug.