HELP!!! My LG device USB option closes immediately I select it

Search This thread

okey.benjamin

Member
May 7, 2021
7
0
LG V40
Hi. I own a LG V40 THINQ Korean . I have been using the device for sometime without any problems until one day I noticed my device could no longer connect to my PC via USB connection, I tried everything to fix the issue including reinstalling all drivers. I also noticed that the USB configuration option in developer options closes immediately I open it (I have attached a video to this effect). Please I need advice on how to solve this issue. Thank you
 

Attachments

  • Recording_2021-05-06-01-31-57.mp4
    14.1 MB · Views: 0

AsItLies

Senior Member
Nov 4, 2009
1,030
429
tucson
Hi. I own a LG V40 THINQ Korean . I have been using the device for sometime without any problems until one day I noticed my device could no longer connect to my PC via USB connection, I tried everything to fix the issue including reinstalling all drivers. I also noticed that the USB configuration option in developer options closes immediately I open it (I have attached a video to this effect). Please I need advice on how to solve this issue. Thank you

Sounds like the usb port has gone bad, not unheard of. First I'd try cleaning it with rubbing alcohol and q-tip. Maybe try a can-of-air also. If that doesn't work, you'd have to open it up and replace the usb port.

good luck

(pls don't post same question in 2 places, you won't get an answer faster, and it's just extra work for the mods to clean up).
 

whitedavidp

Senior Member
Jul 31, 2012
572
167
Hi. I own a LG V40 THINQ Korean . I have been using the device for sometime without any problems until one day I noticed my device could no longer connect to my PC via USB connection, I tried everything to fix the issue including reinstalling all drivers. I also noticed that the USB configuration option in developer options closes immediately I open it (I have attached a video to this effect). Please I need advice on how to solve this issue. Thank you
I have a model V-405QA, rooted. I have developed apps on this phone for over a year. Suddenly, my PC doesn't recognize it. In fact, the Win10 Device Manager doesn't show the USB device at all. I am using the same cables, the same USB port. Power gets through. But nothing else - no data for file xfer, no adb, nothing. And like the OP, when I go into developer options and try to set the USB configuration, nothing happens. I don't even see the flash that is in his screen video - only visual feedback of the item touch. I too am stumped.

PS - I tried plugging in an OTG cable with a thumb drive attached. The drive doesn't get mounted. But I do get a notification that I can tap to change the USB mode. It always comes up as Power Supply. If I select any other option, the dialog goes away but it comes back in the exact same mode.

PPS - I tested in Safe Mode and get the same results. So the implication is that it is not installed apps.

PPPS - After some googling, I see that many, many LG device users - not only V40 - have reported similar issues. This is really no help but displays the scope of the issue.
 
Last edited:

okey.benjamin

Member
May 7, 2021
7
0
LG V40
I have a model V-405QA, rooted. I have developed apps on this phone for over a year. Suddenly, my PC doesn't recognize it. In fact, the Win10 Device Manager doesn't show the USB device at all. I am using the same cables, the same USB port. Power gets through. But nothing else - no data for file xfer, no adb, nothing. And like the OP, when I go into developer options and try to set the USB configuration, nothing happens. I don't even see the flash that is in his screen video - only visual feedback of the item touch. I too am stumped.

PS - I tried plugging in an OTG cable with a thumb drive attached. The drive doesn't get mounted. But I do get a notification that I can tap to change the USB mode. It always comes up as Power Supply. If I select any other option, the dialog goes away but it comes back in the exact same mode.

PPS - I tested in Safe Mode and get the same results. So the implication is that it is not installed apps.

PPPS - After some googling, I see that many, many LG device users - not only V40 - have reported similar issues. This is really no help but displays the scope of the issue.
Did you try a hard reset? Although I don't think that will work
 

whitedavidp

Senior Member
Jul 31, 2012
572
167
Did you try a hard reset? Although I don't think that will work
Thanks. I have not yet done a factory reset and likely will not due to the complexity of my setup.

I have cleared cache and Dalvik without any impact.

It is interesting that when I plug in an OTG cable, I see a notification from Android System app that, when tapped, offers to change the USB mode in a dialog. It is always showing Power Supply as the selected choice. If I choose anything else, the dialog goes away, the notification briefly disappears. But when it returns is shows Power Supply. So it is as-if the system is unable or unwilling to process the choice.

This is different from what happens when I plug into my computer. I see nothing happen at all. This includes having Tasker watch for USB connections and flash a message on connect/disconnect.

Add this to the odd behavior of nothing happening at all when I tap USB Configuration in Developer Options.

I have managed to get logcat records for these conditions and I see that at some level the system "sees" the plug/unplug events. I have seen entries like these:

START u0 {cmp=com.android.settings/.deviceinfo.UsbModeChooserActivity (has extras)} from uid 1000

and

AUTORUN] mStateReceiver() : action=android.hardware.usb.action.USB_STATE

I have looked at the manifest for com.android.settings app. There are tons of them as I would expect. And I do see the named activity. But when I try to start that activity (via various means including the am command in a root shell), I get nothing. When I use the pm command in a rooted shell for find which apps resolve the USB_STATE action, I find these:

com.android.providers.media.MtpReceiver in package com.android.providers.media
com.android.settings.lge.usb.UsbSettingsReceiver in package com.android.settings
com.lge.hiddenmenu.ModelProtocol.LGDMReceiver in package com.lge.hiddenmenu
com.lge.opterator.hiddenmenu.ctc.UsbDetactchedReceiver in package com.lge.operator.hiddenmenu
com.lge.sync.StartReceiver in package com.lge.sync

So it seems like there is code to be executed. But it is not always being done and/or it is having no effect.

Thankfully, I have found work-arounds for most of my needs. I use adb over wifi for app debugging and shell operations, an smb server or an smb client to move files around my network. But this is confounding and it does NOT appear to be the USP port hardware - although I did take the time to clean that out (it wasn't really dirty but just to be complete).
 
Last edited:

okey.benjamin

Member
May 7, 2021
7
0
LG V40
Thanks. I have not yet done a factory reset and likely will not due to the complexity of my setup.

I have cleared cache and Dalvik without any impact.

It is interesting that when I plug in an OTG cable, I see a notification from Android System app that, when tapped, offers to change the USB mode in a dialog. It is always showing Power Supply as the selected choice. If I choose anything else, the dialog goes away, the notification briefly disappears. But when it returns is shows Power Supply. So it is as-if the system is unable or unwilling to process the choice.

This is different from what happens when I plug into my computer. I see nothing happen at all. This includes having Tasker watch for USB connections and flash a message on connect/disconnect.

Add this to the odd behavior of nothing happening at all when I tap USB Configuration in Developer Options.

I have managed to get logcat records for these conditions and I see that at some level the system "sees" the plug/unplug events. I have seen entries like these:

START u0 {cmp=com.android.settings/.deviceinfo.UsbModeChooserActivity (has extras)} from uid 1000

and

AUTORUN] mStateReceiver() : action=android.hardware.usb.action.USB_STATE

I have looked at the manifest for com.android.settings app. There are tons of them as I would expect. And I do see the named activity. But when I try to start that activity (via various means including the am command in a root shell), I get nothing. When I use the pm command in a rooted shell for find which apps resolve the USB_STATE action, I find these:

com.android.providers.media.MtpReceiver in package com.android.providers.media
com.android.settings.lge.usb.UsbSettingsReceiver in package com.android.settings
com.lge.hiddenmenu.ModelProtocol.LGDMReceiver in package com.lge.hiddenmenu
com.lge.opterator.hiddenmenu.ctc.UsbDetactchedReceiver in package com.lge.operator.hiddenmenu
com.lge.sync.StartReceiver in package com.lge.sync

So it seems like there is code to be executed. But it is not always being done and/or it is having no effect.

Thankfully, I have found work-arounds for most of my needs. I use adb over wifi for app debugging and shell operations, an smb server or an smb client to move files around my network. But this is confounding and it does NOT appear to be the USP port hardware - although I did take the time to clean that out (it wasn't really dirty but just to be complete).
How can I run adb commands through wifi? My device isn't rooted, the only way I know how is through a USB connection. Thanks
 

whitedavidp

Senior Member
Jul 31, 2012
572
167
How can I run adb commands through wifi? My device isn't rooted, the only way I know how is through a USB connection. Thanks
As mine is rooted (from the very start), I cannot say I have hands-on doing this. But I googled "android adb wifi without root" and the first results points to this app (https://play.google.com/store/apps/details?id=za.co.henry.hsu.adbwirelessbyhenry&hl=en_US&gl=US). So might well be worth a try. The other results might also be helpful.
 

okey.benjamin

Member
May 7, 2021
7
0
LG V40
As mine is rooted (from the very start), I cannot say I have hands-on doing this. But I googled "android adb wifi without root" and the first results points to this app (https://play.google.com/store/apps/details?id=za.co.henry.hsu.adbwirelessbyhenry&hl=en_US&gl=US). So might well be worth a try. The other results might also be helpful.
Thanks alot but this application requires an initial USB connection with a PC for set up. Guess I may have to just change my device as there's no solution for this USB issue
 

whitedavidp

Senior Member
Jul 31, 2012
572
167
Thanks alot but this application requires an initial USB connection with a PC for set up. Guess I may have to just change my device as there's no solution for this USB issue
Well that is a catch 22 indeed. Rats! And rooting would require the USB as well (I have not yet tested to see if download mode is working but I have tested to see if an OTG drive can be accessed via TWRP and that seems to fail as well).
 

whitedavidp

Senior Member
Jul 31, 2012
572
167
I have Tried download mode. Didn't work
Holy smokes! I had considered that perhaps my rooting (and many modifications) were the cause of this problem in my case. Yours makes it clear that either that is not the case or at least there are cases where rooting and such cannot be the cause. I wish I could have been of more help.

At least for file to/from the device, driven from the device, you can employ a File Manager app like X-Plore which provides several means. I use the LAN connection to Windows and other computers on my network with SMB server capabilities. I would not be without it!
 

okey.benjamin

Member
May 7, 2021
7
0
LG V40
Holy smokes! I had considered that perhaps my rooting (and many modifications) were the cause of this problem in my case. Yours makes it clear that either that is not the case or at least there are cases where rooting and such cannot be the cause. I wish I could have been of more help.

At least for file to/from the device, driven from the device, you can employ a File Manager app like X-Plore which provides several means. I use the LAN connection to Windows and other computers on my network with SMB server capabilities. I would not be without it!
Perhaps this is a problem common with LG phones