Can't keep USB debugging active on LineageOS

Hi,

I’m trying to enable USB debugging on LineageOS 21, but I fail. I’ve enabled “Developer options” and “USB debugging”, but plugging my phone to my computer doesn’t launch debug mode.

I’ve tried revoking USB debugging authorization. This launches USB debugging for a second or two, but then there’s like a conflict with whatever is set in “Settings > Use USB for”.

When I plug my phone, there’s both “USB debugging” and something else active. But deactivating the other thing also deactivates USB debugging. Example :

I plug the phone, and then it will both ask me to confirm it’s safe to connect to my laptop (for USB debugging) AND try USB tethering (because “Use USB for” is set on “USB tethering”).

Both tasks will perform simultaneously, but none will work until I stop one or the other.

And even after I stopped one task (e.g USB tethering), USB debugging isn’t working.

This is an issue, as I can’t update my phone or use adb, as I can’t keep USB debugging active.

Run adb shell settings put global tether_offload_disabled 1, reboot your phone and set usb mode to file transfer in dev options. Let me know if it stops the debugging/tethering fight.

2 Likes

It worked ! Thanks :slight_smile: