Android Development - Command "adb devices" not listing my device - android

I see many people has this problem and so I see many solutions as well. But none is working.
I am having Ainol Novo8 Dream QuadCore Tablet running Android 4.1.1. My Window machine is Win 7 (with all updates).
For above I have download usb_driver i got from somewhere but window is not taking it. It says it is already up-to-date. Even after uninstalling the driver it does not take mine but update from net. My device is fully connected through USB without Yellow warning.
Do, I still need to use usb_driver I got from somewhere for my Tablet ?
I read about SDK setup, but I did not find it anywhere. I have Eclipse with ADT from Google Developer page.
Also, there were no .... google/usb_drive/ folder exist. For info, Virtual Device is working correctly on my Eclipse setup.
I read about two files which looks important: adb_usb.ini and android_winusb.inf. Both are not present in my installation. Though in the downloaded usb_driver for Ainol android_winusb.inf exist.
Tried with "adb start-servers" and adb kill-servers". No help for "adb devices".
My folder structure is
C:\Eclipse_N_ADT\adt-bundle-windows-x86_64-20130522\sdk
I have done with USB Debug Mode on. Notification is showing this. I removed the slide password thinking if it can interfere with. My device is rooted by default.
My device is not coming on Portable Device list. When I check through Devices and Printer on Win7 then I can see window has found device drivers. There it shows my Tablet Model under driver list.

For the sake of anyone else still struggling with this, I found a driver package that works.
I recently purchased an Ainol Novo Hero 10 II for development purposes and faced the same problem as you. This solution works for me:
Source:
http://www.slatedroid.com/topic/70585-adb-drivers/
If you have already installed any previous drivers but your ADB doesn't recognise it, go to your Device Mangers to uninstall and remove all existing drivers associated with your new device.
Download modified USB driver from here: http://yadi.sk/d/54lX5c2O386XU
This driver is UNSIGNED so install at your own risk (although it seems to work for me). Windows has a Driver Signature Enforcement that you need to disable. A google search will lead you to instructions (sorry not enough rep points to post more than 2 links :P)
Reinstall with the new driver. The package already includes an adb_usb.ini file that includes a Vendor ID 0x10d6 that should help recognise your device.
Reboot Windows (and remember to reactivate your Drive Signature Enforcement) and it should be working.

Follow the below steps for recognize your device with 'adb devices' command.
For this your device should be enabled 'USB Debugging' option in {developer options}.
Click 'Start' button on computer.
Right click on Computer.
Select 'Manager' > 'Computer Management' window will be opened.
Click on 'Device Manager'
Now Expand 'Portable Devices' > Here you can find your device name with yellow exclamation symbol.
Right click on your device Name.
Select 'Update drivers Software'
Select second option 'Browse my computer for driver software'.
Select 'Let me pick from a list of device drivers on my computer'.
Common hardware types list will be opened.
Select 'Android Device' > click on 'Next' button.
Now select 'Android ADB Interface' and Click 'Next' button.
it pops up 'driver warning' > Click 'Yes'.
Now you will see the 'Windows has successfully updated your driver software'.
Now you can see the pop up in your device with 'digital signature' > click 'OK'
Now open cmd and write command 'adb devices' > now you can see the your device is listed with some ID.

Quick guide:
Connect your device with Android Debugging enabled to your PC
Open Device Manager
Your device should appear under 'Other devices' listed as something like 'Android Phone' or similar.
Right click that and click on 'Update Driver Software...'
Select 'Browse my computer for driver software'
Select 'Let me pick from a list of device drivers on my computer'
Double-click 'Show all devices'
Press the 'Have disk' button
Navigate to [wherever your SDK has been installed]\extras\google\usb_driver
Select 'Android ADB Interface' from the list of device types.
Press the 'Yes' button
Press the 'Install' button
Press the 'Close' button

Related

Unable to locate adb in Android Studio

I am new to Android Studio. I wanted to run the basic "Hello world" app in my mobile phone. So after enabling USB debugging mode in my phone, I pressed the run button, but nothing shows up in my phone. After some troubleshooting, I found out that, it shows this error everytime I try to restart the ADB server
Unable to locate ADB
Steps I followed to fix this error:
Deleted the folder C:\Users\Abhishek\AppData\Local\Android\Sdk\platform-tools
Reinstalled the Android SDK Platform-Tools from the SDK manager.
Restarted Android studio.
Nothing works.
.
In fact, as you can see adb.exe exists inside the platform-tools folder. I don't understand why android studio, is unable to locate it.
If using avast go for virus chest, will find ADB, restore it by clicking the right button.
If you are not using avast then you need to set up the below configuration.
open Android Studio settings-->System settings --> Android SDK --> select SDK tool tab -->> select "Android SDK platform tool" and install
Also, you can check ADB working well by executing this command in CMD or terminal in the platform-tools folder
ADB devices
Sometimes Android Studio is in funny mode.
Just press the Ctrl+Alt+Del button. Then select Task Manager and select ADB and end task.
You can also try File--> Invalidate Cache / Restart.
And restart your PC.
Try downloading "SDK Platform-Tools" from https://developer.android.com/studio/releases/platform-tools
Copy 'adb.exe' to C:\Users\user\AppData\Local\Android\Sdk\platform-tools.
This will fix the issue.
I also got the same bug and I have added(Optional)
C:\Users\user\AppData\Local\Android\Sdk\platform-tools\adb.exe to the exception list of my anti-virus tool
It was very dumb of me to realize that I hadn't actually connected my mobile phone to my PC the whole time. I kept using the USB connection to charge rather than transfer files, as a result of which my USB debugging was never really enabled.
It's working fine now. Thank you for your help everyone.
This is my solution for windows 7 and Moto phone. I hope it works for other versions of windows and android.
Make sure developer options and USB Debugging is enabled on your android phone (and that the phone is plugged in to your computer.)
Make sure you have adb.exe in your Android folder (For me, it's users/me/appdata/local/android/sdk/platform-tools/) . If not, you can use SDK manager to install it or download it from https://developer.android.com/studio/releases/platform-tools
Test to see if you computer detects adb.exe
Open command prompt.
Type: adb
If it can't find it, it would display nothing. If it does, it should display a bunch of text (Skip next step, go to 'install usb driver')
Make sure your computer knows where to find ADB.exe
Right click on 'computer' - click Properties.
Select 'Advanced system settings' on the left-side menu.
Click 'Environment Variables'
Under System Variables, scroll down until you see "Path". Select 'Path' and click 'Edit'
Copy the address folder where your adb.exe is located.
Under 'variable value'- Do NOT delete what is already there! Type a semicolon at the very end after all the other paths. Then paste your folder address after the semicolon. (For me it's ;C:\Users\me\AppData\Local\Android\Sdk\platform-tools) click OK
Under 'User variables for admin' - click 'New'
For variable name, type: ANDROID_HOME
For variable value, paste in the Sdk folder but not the platform-tools folder (C:\Users\me\AppData\Local\Android\Sdk)
Open command prompt and type: adb
If it list version #, then congrats to getting past one hurdle. Yay! If not, check to see if your anti-virus software have adb in quarantine.
Install Google USB Driver (or Intel Android Driver depending on what smartphone you have.)
Use SDK Manager to install the USB Driver or download it directly on the website.
Copy the location of where it is installed. (For me, it's c:\Users\me\appdata\local\android\sdk\extras\google\usb_driver)
Update the driver on your phone. Plug in your phone to your computer.
Right-click on computer - select 'manage'
Click on Device Manager
Search for 'Other Devices' and select either 'unknown device' or the name of your phone. Right-click to update driver
choose 'Browse my computer for driver software'
choose 'Let me pick from a list of device'
It will have a list. Just click 'next'
It will be empty. Click 'have disk'
Browse for the location of the USB driver. click OK
Select 'Android ADB Interface' and click 'Next'
Update the driver for your phone.
If you see the message 'Windows has successfully updated your driver software' Yay!
Restart everything.
Turn OFF developer option on your phone and disconnect.
Restart computer.
Turn ON developer option, turn ON USB debugging, and connect to computer.
Check to see if computer recognizes your phone as debugging device
Plug in your phone to your computer (Make sure USB debugging is on!)
Your phone should prompt you with a RSA key fingerprint! (You're 99.99% there!)
Check 'always allow'
Click 'OK'
Open command prompt and type: adb devices
It should list your phone as a series of numbers and letters.
CONGRATS!!!
Open Android Studio and run your app. It should list your phone if plugged in.
Woo! Yay!

Android studio: device not recongonized?

Working on android studio, I have followed all the required steps to test apps on real devices:
Made debugging ON on the device (7 taps)
Declared debugable true in manifest file.
Installed Google USB driver from sdk manager.
But still my device chooser displays nothing to show on opting for real device.
Please help.
*System Specification are compatible with Android Studio.
*Device is Nexus 4 with android sdk 21- (lollipop).
*minsdk configured to android 15.
P.S.: Both the AVD and Bluestack emulator are not working on my system (Do not suggest genimotion). Therefore I only have the option for a real device.
Connect your device with Android Debugging enabled to your PC
Open Device Manager of Windows from System Properties.
Your device should appear under 'Other devices' listed as something like 'Android ADB Interface' or 'Android Phone' or similar.
Right click that and click on 'Update Driver Software...'
Select 'Browse my computer for driver software'
Select 'Let me pick from a list of device drivers on my computer'
Double-click 'Show all devices'
Press the 'Have disk' button
Browse and navigate to [wherever your SDK has been installed]\google-usb_driver and select android_winusb.inf
Select 'Android ADB Interface' from the list of device types.
Press the 'Yes' button
Press the 'Install' button
Press the 'Close' button
Now you've got the ADB driver set up correctly. Reconnect your device if it
doesn't recognize it already.
Try running Android Studio as administrator and, beside enable Developer Mode, be sure you enabled USB debug mode and checked the popup when you connected the usb (in the device).
Otherwise, check the USB cable, I have I lot of cables that don't work for debugging but they work for charging, no idea why.

Android Studio Doesn't recognize my device- one plus one

I activated Developer Options" and check "USB debugging". I installed google usb driver on sdk.
But still Android studio doesn't recognize my mobile (one plus one).
I tested my mobile on my friend's laptop, it works. Also my android studio recognises Samsung when I install drivers.
But it doesn't recognize one plus one and nexsus.
Do you have any suggestion?
As I said in comment above, when I wanted to debug my app with my OPO today I got the same problem, after moving around to figuring it out, I found out it was because of ADB Driver (which for some unknown reasons got uninstalled from my system).
At first, check you Device Manager, if you see a yellow mark beside your phone, it is absolutely because of ADB Driver, so follow the steps below to install it:
Install the latest Samsung drivers: SAMSUNG USB Driver v1.5.33.0
Restart the computer (very important)
Go to Device Manager, find the Android device, and select Update Driver Software.
Select Browse my computer for driver software
Select Let me pick from a list of device drivers on my computer
Select ADB Interface from the list
Select SAMSUNG Android ADB Interface (this is a signed driver). If you get a warning, select Yes to continue.
Done!
Hope it will help you.
More on this
-Enable developer mode and usb debugging on OPO
-Open Android SDK manager either from Android Studio or the directory the SDK is saved in. 
-Tick Google USB Driver and click ok to download
-Connect OPO
-Open Device Manager
-OPO should show as unknown device
-Right Click on it
-Update or install driver
-Select from list
-Android ADB Interface
-Click ok
Information from this link OnePlusOne helped me to resolve the Chrome://inspect device not detected - Authorize popup prompt issue
Phone: One Plus One
OS: Cyanogen Version 13.1.2
Content from the link is added here :
Quick guide:
Pre-requisite : Download Google USB Driver from here
Connect your device with Android Debugging enabled to your PC
Open Device Manager of Windows from System Properties.
Your device should appear under 'Other devices' listed as something like 'Android ADB Interface' or 'Android Phone' or similar.
Right click that and click on 'Update Driver Software...'
Select 'Browse my computer for driver software'
Select 'Let me pick from a list of device drivers on my computer'
Double-click 'Show all devices'
Press the 'Have disk' button
Browse and navigate to [wherever you have extracted the downloaded file]\google-usb_driver and select android_winusb.inf
Select 'Android ADB Interface' from the list of device types.
Press the 'Yes' button
Press the 'Install' button
Press the 'Close' button
Now you've got the ADB driver set up correctly. Reconnect your device if it doesn't recognize it already.
For One Plus Phones, here is what I did and it worked. I use a One Plus 7T Pro. Before you begin, ensure Android Studio is up and running.
Go to Settings > System > Developer options.
Under Debugging, Tap on Revoke USB debugging authorisations and Tap on Ok when prompted
Switch Off the Developer Mode and Switch it back On
Switch On the Stay Awake option (if you need it)
Under Debugging, Switch On USB debugging option
Remove the USB cable from your device and reinsert it. On the device, you will be prompted to Allow USB debugging for your device ID. Tap on Allow
You should now be able to see the device detected in Android Studio.
This should work for all devices of different brands that are not automatically recognised in Android Studio.
For me the issue was in wrong USB file type transfer "Default USB configuration" option.
It was set to "No data transfer" and I needed to set it to "PTP" under
For me it was much simpler then that:
Under Developer Options
Enable developer mode and usb debugging
Under Debugging subcategory
Enable Android debugging
And my device showed right up on Android Studio 2.2 deployment target dialog.
** Android version 6.0.1
** Cyanogen OS Version 13.1.2
The previous answers didn't work for me. But following the advice from here helped me resolve the issue.
I have provided the steps I followed, but they have been lifted stright from the above link and all credit goes to them. There were a couple of deviations I had to take to make it work which were:
step 9 showed ADB device which I clicked
step 13 shows ADB didnt work but device mamanger now picks up the device and so does VS
Setup ADB & Fastboot Drivers
Step 1. To get started, download the 15-second adb/fastboot installer here and run the file on your windows desktop.
Step 2. Press Y/Yes to install ADB and Fastboot drivers and follow all the steps to continue the driver installation. Once completed you will see fastboot/adb folder on your C drive (C:\adb).
ADB-Installer
Step 3. Now the Files are installed on your desktop, next step is to configure them and setup the drivers.
Step 4. Pick your phone up and go to Settings > About Phone and tap on Build Number 7 times until you’ve enabled Developer Options, then go back to the main settings menu and go to Developer Options that magically appeared right above About Phone. And Enable Android Debugging / USB Debugging mode.
Step 5. Now connect your phone to the PC with USB cable and open Device Manager and look for your phone. It will show up under Portable Devices as your phone model number or Other Devices or ADB Interface or Android. See the screenshot below:-
ADB-Interface
Step 6. Right-click on it and select update driver software.
Update-Driver-Software
[wpsm_ads1]
Step 7. Now new popup windows will appear on your screen. From here click on the “Browse my computer for driver software”
Browse-Computer-For-Drivers
Step 8. Now from the next screen click on the “Let me pick from a list of device drivers on my computer” and hit the next button.
Let-Me-Picks-Drivers
Step 9. From the next screen click on the “Android Device” option and hit the next button to proceed.
Android-devices
Step 10. Now on the next screen you will see all the ADB drivers that are installed on your windows. Here select the “Android ADB Interface” and click on the next button to complete the setup process.
ADB-Drivers-Setup
Step 11. ADB Drivers are now properly installed. To check it is working or note. Go to the ADB folder on your C Drive which the installer created on Step 2.
Step 12. Connect your phone to the PC and open a command window in your fastboot/adb folder (C:\adb). To do this Hold Shift button on your keyboard and right-click on the empty space of the folder. See the screenshot:-
ADB-FIles
Step 13. Now the command prompt windows will appear on your desktop. And enter the following command and you will see the screen with a list of devices attached. This means the drivers are properly installed and your android is successfully connected to the window PC.
adb devices

Windows 8.1 Device Manager now showing ACER Device rather than Android Device for Google Nexus 7

During a Windows Update this week I was presented with an optional patch titled "Other hardware - ACER Composite ADB Interface". This was part of a larger patch update, and I wrongly ticked and installed the patch. I do not own any Acer kit, but I do use ADB in wider Android development.
When I connect my tablet to the PC now it shows up in Device Manager inside a container named "ACER Device" with the title "ACER Composite ADB Interface". It is not visible to either the PC or ADB. Previously it appeared in a container called "Android Device" and worked fine. The device is a Google Nexus 7.
Annoyingly the patch is not listed in installed programs or installed updates, and I am struggling to try and remove it. I've already tried to uninstall the device (and drivers), but these just get reloaded when the device is plugged back in.
How do I remove this patch?
First try this simple procedure provided by #volodymyr-rybak:
Open 'ACER Composite ADB Interface' and select 'Update Driver...', in
the opened window select 'Browse my computer for driver software' then
'Let me pick from a list of device drivers on my computer' in the list
select 'MTP USB Device' and click on Next button.
This is what worked for my Nexus 4.
Disconnect your Android device.
Disable USB Debugging in Developer Options.
In the Device Manager (on PC), click on View --> Show Hidden Devices.
Double click on the entry for ACER Composite ADB Interface to open Properties.
Click on the Driver tab and then on Roll Back Driver. This will uninstall the problematic drivers.
If the 'Roll Back Driver' option is grayed out, then click Uninstall. In the confirmation pop up window, select Delete the driver software for this device and then click OK.
Do this for all the instances of 'ACER Composite ADB Interface'.
Shut down your PC. And start it again.
Now reconnect your device. Your PC will recognize it as a storage device.
Re-enable USB Debugging.
If it again shows up as 'ACER Composite ADB Interface', then repeat (4) and (5) to roll back the driver update.
Or... Open 'ACER Composite ADB Interface' and select 'Update Driver...', in the opened window select 'Browse my computer for driver software' then 'Let me pick from a list of device drivers on my computer' in the list select 'MTP USB Device' and click on Next button.
If the problem persists, right-click the ACER ADB Interface and select 'Update driver...', then 'Browse my computer...' then 'Let me pick from a list...' and you should see two options for the Nexus, Google Nexus ADB Interface and another called MTP USB Device. Choose MTP and hit 'Next' to install the driver, then it should show up as a portable device on your computer.
To uninstall the ACER driver and remove the driver files:
(Re)connect your Nexus 7 to your computer. Open Device Manager (you can search for it from the Windows Control Panel).
Locate and expand an entry named "Android Device." The Nexus 7 should show up as either "Android Composite ADB Interface" or "ACER Composite ADB Interface" under "Android Device."
Right-click the entry and select "Properties." Under the "Driver" tab, select the last entry, "Uninstall." In the new dialog window that appears, check "Delete the driver software for this device." Click OK to uninstall the ACER driver and remove the driver files.
Make sure the current version of the Google Nexus USB driver is installed:
Download the latest version of the USB driver from the Android Developer pages and unzip it on your desktop. A folder named "usb_driver" will be created.
In Device Manager, locate your Nexus 7 again under "Android Device," richt-click and choose "Update Driver Software..." This launches the Hardware Update Wizard.
Choose "Browse my computer for driver software." Browse to the location of the "usb_driver" folder on your desktop and check "include subfolders." Then click OK. The current Google Nexus Driver will now be installed.
Note: If the Hardware Wizard reports that "the best driver software is already installed," simply repeat the steps to uninstall the current driver for the Nexus 7 as described above, then try and install the current Google Nexus driver again.
My Windows 8.1 PC did the automatic update which included the "ACER ADB Interface update for Windows 8.1" drivers. This happened while I was away and this afternoon when I came home I was asked to re-boot the PC to enable updates to be applied.
Since the updates were applied I have not been able to connect my Nexus 7 (2012) as a "MTP USB Device". I have spent hours trying to find a solution including doing a factory re-set on the tablet.
The tablet connected successfully before I went away! That was a clue. So I did a Windows Restore to an earlier restore point. What do you know? The Nexus 7 now connected just like it did before.
I then checked for Windows Updates but carefully looked at what was being updated. The ACER ADB update was listed as an "additional update". I have marked it to be forgotten and then applied the other updates. So far so good.
So after all that; try restoring your system to an earlier restore point and select not to install the ACER ADB update.
In my case, rolling back the driver for "ACER Composite ADB Interface" (which appeared under something like "ACER device") did the job. Right after rollback, without reboot, Nexus 7 appeared both in Device Manager and in File Explorer as Nexus 7.
In my case, I selected "Uninstall" from Device Manager, unplugged the device, and re-connected. Windows 7 itself was smart enough to find the actual driver for it and lets me use it again.
On your device, make sure that the USB computer connection is set to “Media device (MTP).”
Touch Settings > Device > Storage. Then touch Menu Menu > USB computer connection. MTP should be selected by default, but you may have to uncheck MTP, check and uncheck Camera (PTP), and then recheck MTP.
Thanks for your help - I'd already tried all of what was suggested apart from the System Restore which I have now done.
I left a few other things that needed fixing, but it did restore the registry and patch state to a point before I applied the ACER patch, and I've now got things back as they were.
I have marked this patch as hidden, so it doesn't get applied again in error.
I had the same case. I guess this problem is a conflict with Samsung Nexus vs LG nexus. Before I had used Samsung Nexus Galaxy. I am using LG nexus 5, now.
In my case:
I found the driver files and removed those. (Device Manger - ACER ADB Interface [right click]Properties - [Tab]Driver - Driver Details)
I also removed the device in Device Manager.
Then, I scanned for hardware changes.. (the driver did install with auto by Windows 8.1)
At last, I can now browse the Nexus as storage.
In my case, neither updating the driver nor a windows system restore help. When I tried with a different USB cable, the system detected my Nexus 5 device. For some reason the other USB cable while charging the phone does NOT show the device at all even now.
PS: I wanted to try with a different USB cable than the one I had but unfortunately could not get hold of one, wasted close to two hours trying all other possible solution.

ADB No Devices Found

I am attempting to install an Android app on my brand new Nexus 10. I have a .apk file. I have downloaded the Android SDK, installed "Android SDK Tools", "Android SDK Platform-tools", and Google USB Driver. I have checked the setting on my Nexus 10 for "Unknown Sources".
When I run "adb devices" from the command terminal, it doesn't list any devices. I attempted to follow this recommendation, because it was identical to a suggestion I had previously found here on Stack Overflow. After following those steps, "adb devices" still returns an empty list and to make it worse, when I connect my Nexus 10 to my PC, Windows doesn't show any folders within the device.
I have undone the steps in that link, along with everything else I have done so far, as well as uninstalling my Nexus 10 from Device Manager and reinstalling it, but I am still not seeing any folders in the device.
Is there anything I am missing to get my device to show up in ADB devices?
What can I do to get Windows to see the folders within the device?
Windows 8 wouldn't recognize my Nexus 10 device. Fixed by Setting the transfer mode to Camera (PTP) through the settings dialogue on the device.
Settings > Storage > Menu > USB Computer connection to "Camera (PTP)"
For Windows 8 users:
After trying every solution given here, with no success, I found this:
Go to Device Manager
Browse my computer for drivers -> Let me pick from a list of device drivers on my computer
Choose Android Device and then Android ADB Interface.
Now I have my devices listed at adb devices.
This situation seems to arise with some ADB drivers. I have encountered the same thing with a couple of Google devices and installing the Universal ADB windows driver has fixed it for me every time.
Use another cable.
Just found out that one of my regular charging cables had Vcc, Gnd pairs, but no Data+, Data-.
https://en.wikipedia.org/wiki/USB#Pinouts
Make sure to Enable USB debugging in Settings -> Developer options
Also, run "adb devices" after getting into the platform tools folder in the Android SDK (unless you have that folder on your system path already), otherwise the command won't be found.
The device may not be visible for debugging if it is in MTP mode. Some devices only work in PTP mode (or even in "charging only" mode).
This can be changed in Settings > Developer Options > Networking > Default USB configuration > PTP.
Also, you'll get a notification on your android device asking you for confirmation about USB configuration setting change and to allow it.
Note: You can turn on developer options by following the link below:
enable developer options
I have found a solution (for Windows 7):
Connect your Nexus 10 to PC
Go to Windows Device Manager
RClick on ADB Interface -> properties
Details -> Hardware Ids.
You will see two records like these:
USB\VID_18D1&PID_4EE2
USB\VID_18D1&PID_4EE2&MI_01
5 Open the android_winusb.inf file (I have it in "C:\Users\<username>\AppData\Local\Android\android-sdk\extras\google\usb_driver" directory)
6 Create such records in [Google.NTx86] and [Google.NTamd64] sections using Hardware Ids from properties of ADB interface:
;Google Nexus 10
%SingleAdbInterface% = USB_Install, USB\VID_18D1&PID_4EE2
%CompositeAdbInterface% = USB_Install, USB\VID_18D1&PID_4EE2&MI_01
7 Save the file, and update driver for ADB Interface with showing the path to "C:\Users\\AppData\Local\Android\android-sdk\extras\google\usb_driver" directory
Sometimes ADB loses connection to the device, and needs to be reset. If you have everything else working (ie USB driver installed, Developer settings enabled on the device), and still can't see your device, you need to reset the ADB process.
This is available in the DDMS Perspective (from within Eclipse), Devices tab (the triangle on the far right includes a menu item to perform the reset).
Otherwise from the command line, you can reset it with the following 2 commands:
adb kill-server
then
adb start-server
Enable Developer options in your device. To enable the developer mode, setting->About phone, tap Build number option 8 times continuously
Go to Settings-> Developer options and Turn on USB debugging
From the above steps it didn't work try this step, Go to Settings->Security and turn on Allow Unknown Resources
You have to download the drivers from the SDK manager (extras → Google USB Driver)
Then you have to install the USB driver in Windows (it works for me in Windows 8.1):
(Copy and paste from http://developer.android.com/tools/extras/oem-usb.html#InstallingDriver:)
Connect your Android-powered device to your computer's USB port.
Right-click on "Computer" from your desktop or Windows Explorer, and select "Manage".
Select "Devices" in the left pane.
Locate and expand "Other device" in the right pane.
Right-click the device name (such as Nexus S) and select "Update Driver Software." This will launch the "Hardware Update Wizard".
Select "Browse my computer for driver software" and click "Next."
Click "Browse" and locate the USB driver folder. (The Google USB Driver is located in <sdk>\extras\google\usb_driver\.)
Click "Next" to install the driver.
After downloading the Google drivers via Android SDK Manager (available via Eclipse, Intellij or Android Studio), I had to update the driver in Computer Management > Device Manager > Other Devices > ADB - right clicking and clicking on update driver and browsing for updated driver finally did the trick.
BTW, a total nightmare for me as well. I continue to be bewildered that setting up a dev environment should be the most difficult task imaginable, with each new inexplicable failure leading to another one. Jeesh! Good luck.
On my Windows 8.1 64bit (Nexus 5 did not show up), only manually installing the USB driver fixed it:
http://developer.android.com/sdk/win-usb.html
The "Google USB Driver" in "Android SDK Manager" was installed already.
I still get this once in a while and it usually works if I unplug it and plug it back in a different port. I'm on Linux but had the same thing happen on Windows before.
Installing Samsung Kies and using their tool to reinstall device drivers, is what finally worked for me with my Galaxy S3 and Tab S 8.4
Normally SDB will download the driver in the **android-sdk-windows\extras\google\usb_driver** path
Here are the steps that worked for me:
Enable USB debugging.
Do to device manager, right click on ADB device and click update driver software.
Select "Browse my computer for Driver Software"
Select "Let me pick from list of Device drivers on my computer"
Click on "Have Disk" option.
Select the driver path **android-sdk-windows\extras\google\usb_driver** (path of sdk)
7.Select 1st driver out of list of drivers shown.
And hopefully, it will work.
Edit: I recommend you DO NOT run ADB under VirtualBox if you are using a Windows Host. Somehow I got VirtualBox to lock the device drivers on the host, eventually making it so that the ADB wouldn't work on the client nor the host for any device I plugged in. To fix, I removed VirtualBox extensions on the host and ran http://www.nirsoft.net/utils/usb_devices_view.html to delete the incorrect drivers. I could not get the correct drivers to load while VirtualBox extensions were installed, and this problem was a complete bastard to diagnose and fix.
Edit 2: Also the following is probably out of date, now that Google have released an integrated ADB extension for Chrome.
What an installation nightmare... Here are the steps I needed to get my Nexus 10 recognised on an XP virtual machine running under VirtualBox:
If you get asked to install Nexus 10 drivers, make sure to untick "don't ask again" (you WANT to be asked again!).
Plug in the Nexus 10 USB connection
Turn on debugging in the Nexus 10 settings Developer menu (tap "About Tablet" 7 times to get that menu).
In your virtual machine settings (host), add the samsung Nexus 10 device to the USB Device Filters (important - selecting it from the devices menu didn't seem to work).
In guest install java jre (if you don't have java installed). In Control Panel, change Java settings so that java doesn't run in the browser (to help prevent security issues).
In guest get the adk zip file and put it somewhere permanent. I needed to delete the .android config directory from the user directory because I moved the directory.
Run the SDK Manager.exe - if it doesn't work, try running sdk\tools\android.bat which seems to give better error reporting.
From SDK Manager install the Google USB driver package.
Unplug the Nexus 10 and plug it in again, and install the Google USB driver package.
Restart the guest.
running c:>[...]\sdk\platformtools> adb devices finally shows me the device...
For the Blu Studio 5.5s ADB drivers, you have to go through this hoop. I am certain it is the same with all Blu phones or maybe for all non-Google mfg phones, I am not sure. First of all if you connect the Blu device with USB cable and USB Debuggin off, you will see that Windows 7 loads a generic driver for you to copy on/off files to the phone and SD storage. This will appear when the USB cable is first plugged in and appears as a device icon under Control Panel, Device Manager, Portable Devices, BLU STUDIO 5.5 S (or the device you are working with). Do not bother getting the hardware ID yet - just observe that this happens (which indicates you are good so far and don't have a bad cable or something).
Go to the phone and switch on USB Debugging in the Developer section of your phone. Notice that an additional item appears as an undefined device now in the device manager list, it will have the yellow exclamation mark and it may have the same name of the phone listed as you saw under Portable Devices. Ignore this item for the moment. Now, without doing anything to the phone (it should be already in USB debug mode) go back to the Portable Devices in Device Manager and right-click the BLU STUDIO 5.5 S or whatever phone you are working with that is listed there without the exclamation mark (listed under Portable Devices). Right click on the icon under Portable Devices, in this example the name that appears is BLU STUDIO 5.5 S. On that icon select Properties, Details, and under the pull down, select Hardware IDs and copy down what you see.
For BLU STUDIO 5.5 S I get:
USB\VID_0BB4&PID_0C02&REV_0216&MI_00
USB\VID_0BB4&PID_0C02&MI_00
(Note if you do this out of turn, the HW ID will be different with the phone USB debugging turned off. You want to copy the value that it changes to when the USB debugging is ON)
Now do as the instructions say above, of course customizing the lines you add the the INF file with those relating to your own phone, not the Nexus 10. Here is what to customize; when you downloaded the SDK you should have a file structure expanded from the ZIP such as this:
\adt-bundle-windows-x86_64-20140321\sdk\extras\google\usb_driver
Find the file named: android_winusb.inf in the usb_driver folder
Make a copy of it and name it anything, such as myname.inf
Edit the myname.inf and add the lines as instructed above only modified for your particular phone. For example, for the BLU STUDIO 5.5 S, I added the following 2 lines as instructed in the 2 locations as instructed.
;BLU STUDIO 5.5 S
%SingleAdbInterface% = USB_Install, USB\VID_0BB4&PID_0C02&REV_0216&MI_00
%CompositeAdbInterface% = USB_Install, USB\VID_0BB4&PID_0C02&MI_00
Note that you add these lines to both the 32 and 64 bit sections, matching how the example in the tutorial reads.
Now go back up to the unknown device that appeared in Device Manager when you switched on device USB debugging and right click on this item (has yellow exclamation mark), right click on it and then select Update Driver Software, and then Browse My Computer, Let Me Pick, click on the Have Disk button and browse to find the myname.inf. Continue to agree to all the prompts warning you it might not be the right driver. As the final step, Windows should have identified the device as Android ADB Interface and once that is done, you should be able to go back, open your CMD window and run the command "adb devices" as instructed in this tutorial and now you should see that the phone is now discovered and communicating.
Now you can go have fun with the adb command.
At first Thanks #rmsyk's post.
For my issue and after long time suffering with Meizu C9 Pro witch require just android ADB drivers (no special drivers) referring to manufacturer and it solved in my Windows 7 PC by the bellow steps.
Make Sure to
Install latest version of ADB & Fastboot with the needed drivers.
Enable Developer options & USB Debugging.
Enable Media File Transfer (MTP Mode).
Manually replace C:\Users\USERNAME\.android with the folder included here ,Then kill process 'adb.exe' if found from Windows Task Manager and use adb devices and finally my device listed successfully and just confirm the PC as trusted.
Notes:
Android Studio was uninstalled in earlier time and also i tried to reinstall but was not a solution at all.
Tried adb kill-server & adb start-server but was not a solution too.
As well as the usual settings (enable USB debugging) I also had to select Enable OEM unlock in the Developer options.
This supposedly makes the device less secure, but it's your device and you know what you want to do.
Once checked the device behaved as expected and appears in the adb devices list.
You can always reverse all these settings once you're finished.
Confirm you have the correct platform SDK tools
For Windows 10, had to manually download the latest platform SDK tools from Android as the version supplied through Visual Studio 2017 EMDK for Xamarin was not sufficient. Everything else except adb.exe devices worked.
https://developer.android.com/studio/releases/platform-tools
After the platform tools were manually downloaded, device showed up regardless of USB configuration (charging, MTP, etc.)
Installing an emulator device at this stage is also helpful to see whether the problem is with adb or your physical device.
List of devices attached
12345D1234 device
emulator-5554 device
There could be two reasons why adb devices command is not working for you. Either your phones USB drivers are not installed properly or you have not enabled USB debugging mode.
I created a tool that makes installing USB drivers a one click thing.
Just connect your phone in USB debugging mode to PC.
Run my tool
It will detect and install drivers specific to your phone and also install the latest ADB & Fastboot binaries with it.
The tool is available at my GitHub Repo
It's so easy, just turn off your Android device, and then hold down both "Volume Down" key and "Power" at the same time. Wait a few seconds till it start in recovery mode, done.
Now type adb devices, and you'll see your device.
I had the same problem with my Windows 8. The Android/SDK USB driver was installed correctly, but I forgot to install the USB driver from my phone. After installing the phone USB driver ADB works fine.
I hope this will help.
Turn on debugging in the Nexus settings Developer menu (tap "About Tablet" 7 times to get that menu).
Freaking Google tricks!
Have you had an android update recently? I updated to Lollipop and all the sudden I had no adb devices. Boo! I spent awhile trying a few things to no avail. Then I went into my developer options and lo and behold, "USB debugging" had been turned off. Silly Google. After turning it back on, it immediately showed up and I'm back in business!
GoTo DeviceManager, then right click on the android device and click uninstall driver.
Unplug and plug the device back...then a pop will come on your device while your pc installs the required drivers. Click "allow" on the popup.
You can see your device when you type "adb devices" in command prompt.
For Windows, just end all the processes related to Blue stacks or any such emulator if you are using.
Worked for me.
There's obviously a ton of different problems that could be causing this (and a ton of different solutions to go along with those problems). So think about all the solutions!
If you've gotten this phone and computer pair to work together before, but they aren't working any more, it might be a specific program on your computer rather than a problem on your phone. Some programs install/use their own adb, and only one of these can connect to your phone at a time. I think this makes a race condition, so sometimes it'll connect fine.
Some programs that run adb:
HTC Sync Manager - uninstall this.
chrome://inspect - lets you view localhost on your phone. Just close the window when you're done with it.
To have ADB in MTP mode
If you don't find any ADB device (nothing with exclamation mark) in the device manager (with all developers settings on phone checked), do this:
In Device Manager :
UpdateDriver->Manuel Install->Search on my computer->Select from installed driver list -> then select the one with the word usb in it (not MTP).
Edit: after that, you'll then have 2 or 3 peripheral, one for USB and one for ADB, install adb driver using usual method (see first answers)
For my Nexus 6P downloading drivers from Google helped resolved the issue. Here is the URL with documentation. And here you can download the driver itself.
P.S. I saw some people advice to download some drivers from random places on internet. While this might help it's too dangerous in my mind to download unknown drivers from unofficial places. So the one from Google worked well for me :)

Categories

Resources