问题
I am trying to get Eclipse and DDMS to see my Google Glass device. I have followed the instructions found here:
https://developers.google.com/glass/develop/gdk/quick-start
However the DDMS device list is still empty no matter what I do. I have tried multiple USB ports and different cables. The Device Manager can see the Glass device but the DDMS doesn't. The DDMS can see emulators however.
After doing a little digging it seems that you need to make sure that a driver is installed for actual devices vs emulators. However I can't find any instructions on how to do that with Google Glass. I tried installed the generic Google USB driver however that wouldn't install for the Glass device. I am running all of this on Windows 8.1, though I can't seem to find anything where that would make a difference. I am wondering if anyone else has had this problem or can offer any advise.
回答1:
First - Disable driver signature enforcement for Windows 8. Google for a buffet of how-to tutorials/instructions, if you don't already know.
Second - Update android_winusb.inf file @
Example: C:\Development\adt-bundle-windows-x86_64-20131030\sdk\extras\google\usb_driver
[Google.NTamd64]
;GoogleGlass
%SingleAdbInterface% = USB_Install, USB\VID_18D1&PID_4E11&REV_0216
%CompositeAdbInterface% = USB_Install, USB\VID_18D1&PID_4E11&MI_01
%SingleAdbInterface% = USB_Install, USB\VID_18D1&PID_9001&REV_0216
%CompositeAdbInterface% = USB_Install, USB\VID_18D1&PID_9001&MI_01
[Google.NTx86]
;GoogleGlass
%SingleAdbInterface% = USB_Install, USB\VID_18D1&PID_4E11&REV_0216
%CompositeAdbInterface% = USB_Install, USB\VID_18D1&PID_4E11&MI_01
%SingleAdbInterface% = USB_Install, USB\VID_18D1&PID_9001&REV_0216
%CompositeAdbInterface% = USB_Install, USB\VID_18D1&PID_9001&MI_01
Once inf file is edited, go into your Windows Device Manager, right click on the Glass Device, select Update Driver Software. When prompted, choose "Select From Computer" and enter your android_winusb.inf parent folder location.
NOTE: During Driver Update you may receive an unsigned driver warning; you must proceed with the unsigned driver to succeed.
Open eclipse. If you don't see the Glass device in DDMS perspective right off, run your application/sample as an Android Application and the device should be available as an selectable option during an Android Device Chooser dialog (Provided Glass is running with debug on and plugged into the machine).
回答2:
matthew06854's solution works well! Thanks. Just one thing, after connecting glass to the computer, one needs to confirm on the glass to allow this connection (trusted computer, or something like it).
回答3:
Welcome.
2 things to check -
Ensure driver signature enforcement is disabled; repeat disabling process.
Ensure the Google Glass .inf file entries for [Google.NTamd64] and [Google.NTx86] are listed under the existing [Google.NTamd64] [Google.NTx86] entries.
The Hash file not present message is usually an indicator the driver signature enforcement is not off yet. E.G. If you alter/remove the .inf entries, then try updating the driver again, you will get a different message - something like cannot find driver (if you removed the entries) I believe.
回答4:
It is necessary to check that VID and PID matches what you see in Control Panel/System/Device Manager/Portable Devices/Glass 1/Properties/Details/Hardware Ids. I only got USB\VID_18D1&PID_9001&REV_0216 and USB\VID_18D1&PID_9001, so I changed the file \adt-bundle-windows-x86_64-20131030\sdk\extras\google\usb_driver to reflect this:
%SingleAdbInterface% = USB_Install, USB\VID_18D1&PID_9001&REV_0216
%CompositeAdbInterface% = USB_Install, USB\VID_18D1&PID_9001&MI_01
Since I had already installed first version og the driver I had to remove driver before I could install with new settings. Now it works for me also :)
回答5:
Easy way Download these custmized drivers from http://www.androidfilehost.com/?fid=22979706399752791
Then go to device manager look for glass-right click-update divers-custom brows location and provide the path of above folder
This link really helped me http://appliedanalog.com/agw/?p=17
回答6:
There's a missing step here ,that I figured out. In my case, my andriod_winusb.inf already had some values under the ;Google Glass line. That made the Google Glass device appear in the device manager, but as an "Android ADB Interface" instead of an "Android Composite ADB Interface". Any changes to the andriod_winusb.inf didn't make any difference.
What worked for me was to click on the Andid ADB Interface in the Device Manager. Click uninstall, and (very important) check the check box that says : "Delete the driver software for this device".
Then I modified the andriod_winusb.inf file, and clicked on Glass 1 in the Device manager, and updated the driver.
I'm guessing that once Windows knows about a driver, it caches it somewhere, so uninstalling it and reinstalling ,without "deleting the driver software" just brings the cached driver back, and completely disregards the changes in the original driver folder.
来源:https://stackoverflow.com/questions/20390624/ddms-unable-to-see-google-glass