0

I'm trying to get "adb devices" working on either Windows 10 or Ubuntu 17.04. On both operation systems everything is configured for adb to work. A Honor 5X works on both machines as expected.

But no luck with the LGs. I have a few of them for testing, but not a single one is working with adb.

The Version of the Android Debug Bridge is 1.0.39. The LG is running Android 5.0 Kernel-Version 3.4.0 The Honor 5X is running Android 6.0.1 Kernel Version 3.10.49-g91e5af6

The strange thing about the LGs behaviour is, that in the Notification Area it says, that USB Debugging is enabled but it never asked for authorization. Even when I clear all authorizations it does not ask me for it.

And a "adb devices" does not show the LGs as unauthorized but instead does not show the at all.

That is something all other Smartphones of different brands I tested did consistently.

Accessing the LGs via MTP does work.

I currently do not have an idea how to analyze this any further. I would appreciate any suggestion directing me towards a solution.

Edit: I'm using the adb commandline version.

Edit: This solution (activate USB Tethering) made it better, but this is disabled every time the usb connection is removed and I need a permanent solution working without user interaction.

See LG Device Not Listed in ADB Devices.

Edit: In Windows 10 I got this working these USB Drivers: http://www.lg.com/us/support-mobile/lg-LGD850

But I need to get it working on ubuntu 17.04

Thank you very much!

user331471
  • 873
  • 1
  • 9
  • 19

2 Answers2

0

I had this kind of smart phone. I changed the cable and it worked. (use a thicker cable)

Moonlight
  • 232
  • 2
  • 5
  • 18
0

I found the solution myself to get it working on Ubuntu 17.04. It is necessary, that you select PTP instead of MTP. This seems to be an specific issue when the LG USB Drivers are not installed, which is never the case in Linux because there LG does not provide any drivers.

user331471
  • 873
  • 1
  • 9
  • 19
  • The MTP problem on linux is due (at least for my phone) to LG's MTP having two configuration modes (see lsusb -v) and linux choosing the wrong one. For those that happen to have the exact problem I had, it is possible to change the configuration (I used pyusb's set_configuration) to regain adb access if you foolishly set an old LG phone with a non-functional screen into MTP mode through scrcpy, thereby locking yourself out. Changing the configuration also made MTP actually work to transfer files for me. – potato Jan 19 '21 at 00:25