adb logcat hangs with "waiting for device" message
Solution 1
I am not pretty much sure if this works for you but can you please try the steps below:
# Kill and restart
$ adb kill-server
$ adb start-server
daemon not running. starting it now *
daemon started successfully *
# Device appears, but is listed as offline
$ adb devices
$ adb logcat
Solution 2
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!
Solution 3
Here is yet another potential method to solve this -- in the past, the above solutions will work, but in my case, this time, this was the thing that fixed it:
- Plug device into USB
- Settings -> Developer Options
- Revoke USB Debugging Authorization
- Unplug Device
- Repeat Step 1
- Authorize Device
- Repeat Steps 4&5
adb devices
should now show device
adb logcat
should now output logs from device
Solution 4
I had this same problem on Ubuntu 12.04. Thankfully MickeyMicro had the solution that worked for me:
Run the command: gksudo gedit /etc/udev/rules.d/51-android.rules
Add the following line to the blank file
SUBSYSTEM=="usb", ATTR{idVendor}="2080", MODE="0666" (I used this one on 12.04)
SUBSYSTEM=="usb", SYSFS{idVendor}="2080", MODE="0666" (Another recommended for 10.04)
Save and close gedit.
Run the command: sudo chmod a+rx /etc/udev/rules.d/51-android.rules
Restart the system.
Run the command: sudo sh -c "mkdir -p ~/.android; echo 0x2080 > ~/.android/adb_usb.ini; adb kill-server; adb devices"
- Verify that you have permissions to access the device. adb devices should return normal response, rather than a "???????????? no permissions" message.
http://forum.cyanogenmod.com/topic/23163-need-help-for-adb-connection-on-ubuntu/
Solution 5
I got Nexus tab today and I had to go to Settings -> About Tablet -> (tap 7 or 8 times) on Build Number.
Then 'Developer Options' showed up above 'About Tablet'.
Next in Developer Options, after enabling USB Debugging I was able to get the logs
For Mac Users:
cd /Applications/Android/sdk/platform-tools
./adb logcat
Comments
-
Android Boy over 2 years
When I type
adb devices
command on terminal, it shows device is connectedList of devices attached
0123456789ABCDEF device
But when I type
adb logcat
command, it hangs with below messagewaiting for device
Can anybody tell me what is the problem behind this? I test the device on cts.