android – LG G2 vs980 not recognized by ADB devices command (Win7 on virtualbox)-ThrowExceptions

Exception or error:

I have been developing android mobile apps via eclipse in school for some time now, deploying the apps to virtual devices. However, I now want to deploy them to my LG G2 android device for testing and speed purposes. I know there are posts about other devices not working, but the solutions are to no avail for me.

I am on virtualbox running windows 7. I have the necessary vb extensions installed and vb DOES detect my LG G2 (asks to view folders..etc), however eclipse/adb on my vb cannot find it still.

I have put what I thought is the proper device vendor id (1004, 0232) in the adb_usb.ini file since some others found that to help get their device detected.

I have done the commands adb kill-server & start-server many times. I have restarted the phone and vb also. I have also tried all of the phones connection types (internet/ethernet, MTP)

Some help would be awesome,
Thanks fellas

How to solve:

When you plug the phone in, you are given options for the “USB connection method”.

You must select Internet connection or Send Images (PTP) from the list in order to use USB Debugging tools.

For selecting Internet Connection, the other options sometimes include Charge phone, Media sync, and Camera.

For selecting Send Images (PTP), the other options sometimes include Charge Phone and Media Device (MTP).

###

Here are may be several solutions:

1) When your device connected open Device manager(default windows tool) and found Unknown device or some not properly recognized device and try to setup driver manually.

2) Enable USB debugging option in phone settings:
go to Setting->About Phone and tap several times on Build Number,
then go back (Settings->Developer -> Options) and turn it on

3) Try to update your USB driver/adb via Android Manager launched from Eclipse.

###

When I upgraded my LG g2 from Android 4.4 to 5.0.2, usb debugging stopped working.

I didnt have an “Internet” option for USB connection method.

Through lots of trial, error, searching, experimenting, the I found that enabling “USB tethering” (in Settings -> Tethering & Networks -> USB Tethering) did the trick. Once I enabled USB tethering, I could download debugging programs via adb/AndroidStudio. Before USB tethering enabled, adb could not recognize my 5.0.2 device.

###

How to Setup ADB on Windows

Download the Android SDK package for Windows [android-sdk_r21.1-windows.zip]
Extract the zip files to your C:\ drive. Now you have a folder android-sdk-linux
Double click on SDK Manager to initiate the SDK manager. You shall perceive the following window.
Make sure everything is un-ticked. Now select Android SDK Platform-tools and install it.
During the next window, you will be prompted. Accept the license and click on Install.
When the installation is complete, close the window.
The SDK manager has now download the platform-tools successfully, which certainly includes our prior ADB.
The next step is to define the path where ADB is present.
Go to C:\android-sdk-windows\platform-tools and take note of this path.
Go to desktop, right click on Computer and select Properties.
On the left pane, click on Advanced System Settings and a new window shall open.
Select Environment Variables under Advanced tab.
Select Path variable and click edit.
Now add the path we noted in step #9 to the variable value and hit OK.
Confirm and apply all the changes.
To confirm that ADB has been configured properly, open CMD window and type in:

adb

You now have ADB successfully installed and configured on your Windows machine

Leave a Reply

Your email address will not be published. Required fields are marked *