I'm experiencing an issue with my Nexus 5 and Nexus 10 devices.
I'm running Ubuntu 14.04 on VMware Workstation 9, and ADB only occasionally recognizes my devices. I find if I unplug and re-plug the devices, it'll eventually work, but it's annoying to have to go through this process everytime I disconnect my device.
Has anyone else experienced this/know of a workaround?
I don't have a real answer, but it happens to me occasionally on various devices. I find that the best thing to do is to root the device and connect to adb over wifi. You can use an app such as "ADB Konnect" to enable wireless debugging.
Related
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!
I had this kind of smart phone. I changed the cable and it worked.
(use a thicker cable)
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.
I am trying to run an app that I have built on my phone. I have enabled USB-debugging mode on my LG G3, but my Linux Machine and Android Studio is saying that there are no connected devices.
How do I fix this? Have I forgotten something important?
I had the same connection problem.
Switching to "Send Images (PTP)" solved it for me.
I had similar problem with my Xperia S.
1) I installed android adb tools on Ubuntu. (Using: sudo apt-get install android-tools-adb android-tools-fastboot)
2) Selected MTP mode on my Xperia S. Disabled debugging. Disconnected the phone from system.
3) Enabled USB debugging, connected the phone again and tried the command "adb devices" from ubuntu terminal.
It then started the adb daemon and listed my device.
Once the device was listed there, I started the android studio again, and my phone was listed there.
Also, you might find this helpful : https://developer.android.com/tools/device.html
Hope it helps..
CD to your sdk platform-tools folder
Check if adb sees your device
./adb devices
If it displays 'List of devices attached' and a blank line below, then restart adb as follows:
./adb kill-server ./adb start-server
then re-run ./adb devices and see if it picks up the device, eg as follows:
List of devices attached xxxxxxxxxxx
There is a well-written and detailed step-by-step guide for connecting a phone with Android Studio when running Linux here:
http://esausilva.com/2010/05/13/setting-up-adbusb-drivers-for-android-devices-in-linux-ubuntu/
Changing in the USB Options on the phone to "Send Images (PTP)" worked to me as well (on a LG phone). Must be something with LG phones, because with other Android phones this wasn't needed.
After taking a few hours, I just solved a similar problem minutes ago with LG G3 on WINDOWS.
Maybe my experience can help you.
Firstly, do NOT enable USB debugging.
Secondly, install the OFFICIAL USB driver from LG (I have no idea whether this is available on Ubuntu). Please make sure the driver works normally by some LG software. BTW, I don't think LG is good at software.
Thirdly, enable USB debugging and go.
A few times a day my device disappears from the adb devices list.
Running: adb devices from the command line just says List of devices attached with no devices and no device is visible in run dialog of Android Studio.
I'm using the latest version of the Android SDK with a Nexus 5 (Lollipop 5.0.1) on Windows 8.1 but I have the same problem with a Samsung Galaxy S2.
It will work for a few hours but then I will get a log entry "device disconnected" and the device disappears. The device is still visible in Windows explorer and the USB debugging connected notification is still shown on the device.
Running adb kill-server doesn't fix the problem.
Disconnecting and re-connecting the device usually fixes the problem but sometimes I need to restart the device.
Has anyone experienced this or have ideas of how to debug it?
One of the debug methods apart from adb kill server, reboot device or pc is to scan for hardware changes.
MyComputer properties -> Device Manager->
Right click on PC-Name scan for hardware changes. Of course the device must be connected while doing this
This saved me quite a few times.
I am following the google android developer guide on adb here: https://developer.android.com/tools/help/adb.html#wireless
After all the steps, I and I run adb connect MY_IP, it says that connected to MY_IP:5555. However, when I unplug my phone from my computer, running adb devices shows that no devices are connected, and in Android Studio, it says no devices also. How can I fix this?
I am using a macbook pro running Yosemite, and an HTC One m7 running android 4.4.2
Any help would be greatly appreciated
Edit:
I just tested on an LG G3, and it worked. However, I need it to work on my HTC, because the LG isn't my phone. Why doesn't my HTC work?
I bought a new Alcatel Onetouch 918n phone for app testing. I can't however get it to be recognized in eclipse to test.
After some painful steps, I now see "Alcatel Android ADB interface" in Device manager. But I just can't seem to make this phone visible to Eclipse/ddms/adb.
Since i somehow (I Think after installing Alcatel Android mgr on PC) got the OEM Usb driver installed, I think I don't need the google usb driver, correct?
And Yes usb debugging on phone is on.
Please help?
Take a look at http://blog.fh-kaernten.at/wehr/?p=1182, where the author describes his problem with his device being in Device Manager but not showing up in ADB. Also look at Adb Devices can't find my phone. Some other things to try:
See what you get when you run ADB outside of Eclipse ("adb devices" from a command line). Sometimes Eclipse is finicky, so it may be better to troubleshoot this outside of it. Sometimes it's necessary to quit and restart Eclipse when it's not seeing your device, or unplug and re-plug your device.
When you make any changes, use "adb kill-server" and "adb start-server" to stop and restart the adb server, before again trying to see your device.
If possible, try a different device and see if it shows up in adb (though you'll probably have to install a driver for it first). That may tell you whether the problem is with your Alcatel phone or the software on your computer (missing SDK component, wrong USB driver, etc.)