1

Is there anyway to make it so that my phone, when connected with a USB Data Cable to a computer automatically turns on USB Tethering?

Currently using Cyanogenmod 13.

I tried changing the option in Developer Options to RNDIS however it doesn't seem to work (by that I mean it doesn't seem to do what USB Tethering does), and it doesn't hold when I unplug and plug back in.

IMG:

4
  • Yes, that's quite easy to do but would more or less require root access. Use Tasker with Secure Settings or just Automate (llama) or provide us the information of your Android version and device.
    – Firelord
    Nov 15, 2016 at 20:24
  • I'm using CM13, rooted. Nov 15, 2016 at 21:41
  • 1
    Android 6+ permissions changes made this impossible, this settings in Developer options is a hold over from older versions of the Android source code which likely just hasn't been removed yet, as far as we can tell it has no real world function, other than to allow some modes that may not appear in the regular USB menu if the device is equipped/capable. Regardless of the setting, the connection will return to Charge Only mode on the next connection.
    – acejavelin
    Nov 15, 2016 at 22:52
  • Dang. Not possible isn't what I expected from an Android. It's a pain in the ass to click through 3 menus to turn on USB tethering. I just want to plug it into my router and have it work. Nov 16, 2016 at 0:27

1 Answer 1

0

Is there anyway to make it so that my phone, when connected with a USB Data Cable to a computer automatically turns on USB Tethering?

Yes. Use . I successfully tested my solution using Automate v1.1.13 on CM13 (build:ZNH0EAO1QE).

You would need to make a flow and it should fairly look like this:

(Click an image to enlarge it)

IMG: IMG:

Alternatively, you can use Tasker to detect the USB connection and then run this command with root access:

service call connectivity 30 i32 1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .