When I type adb devices
command on terminal, it shows device is connected
List of devices attached
0123456789ABCDEF device
But when I type adb logcat
command, it hangs with below message
waiting for device
Can anybody tell me what is the problem behind this? I test the device on cts.
In my case, I was using an old version of
adb
, make sure you have the latest version ofadb
. You can download here, extract and run straight within the folder./adb
.Please go to the developer options on the phone and click "Revoke USB debugging authorization"
Enable it again and try to get the logs. This is basically waiting for the device to get connected. Make sure to authorize USB access from device as well.
I had a similar problem, but for different reasons. My issue came from programing usb accessory on android, which changes the vid/pid when in accessory mode. The solution for me that worked was the following:
I have also experienced similar problems I think I solved it by having the USB debugging option switched on within Developer Options in Settings.
REPEAT The following steps above, it should work!
What OS are you using? It can be a variety of different reasons. Did you make sure you only have either the emulator running or a device attached? If so, you can direct your adb command by using the -d or the -e flag.
I am not pretty much sure if this works for you but can you please try the steps below: