次の方法で共有


Enabling USB Debugging for Nexus 7 on Windows 8

While preparing for my BUILD talk that introduces Windows 8 to Android developers, I went to the nearest GameStop and brought home a brand new Nexus 7 to try it out. I enabled USB debugging before I fired up the IDE.  When I tried to deploy the app to Nexus 7, to my frustration it was not being recognized by ADB. The Nexus 7 device was showing up as a USB drive with obvious name “Nexus 7”. It is good if I wanted to copy files to and from the device but my purpose is to deploy the app and test it out.

After Bing’ing for a couple of minutes I realized that I needed to install Google USB Driver (rev 7). I installed the driver from the SDK Manager.exe and rebooted the box. When I plugged Nexus 7 back in, now my USB drive disappeared and it showed up as a MTP ( Media Device). Still ADB doesn’t see Nexus 7… it was a bit frustrating not a lost cause yet.

Again, Bing to the rescue… I found a thread that was describing the process to show an Android device as a USB drive instead of an MTP device. I also found that if Nexus 7 shows up as a “camera” the ADB may pick up the device. I thought I would give it a shot; from the Settings –>Device->Storage->USB Computer Connection (from the menu), I changed the device to “Camera (PTP)” and ran “adb devices –l” at the command prompt. Voila, ADB lists the device and  ADT was able to deploy the app to Nexus 7!

 

Here are the high level steps:

  1. Enable Developer Options (settings –> About Tablet –> Build Number (tap 7 times to make Developer Options available in the menu)
  2. Turn on Developer Options (top menu) and USB Debugging
  3. Install Google USB Driver (rev7)
  4. Configure USB Computer Connection (located in the contextual menu of settings—>Storage) to appear Nexus 7 as a camera

Happy development on Windows 8!

Technorati Tags: Nexus 7,Android,Windows 8

Comments

  • Anonymous
    October 25, 2013
    i got my nexus plugged into mu usb it charge wont turn on pls help any1

  • Anonymous
    November 11, 2013
    Thanks Hanuk It's certainly not as easy as it should be get a Nexus7 talking to Eclipse.  Your post was very helpful and it worked for me.   Step 1 was good.  Step 2 in Settings/System/Developer Options then Debugging/USB debugging was a little tricky to find amongst all those options. I had loaded the driver from the ASUS website before I read your post.  That was no good.  Going to developer.android.com/.../win-usb.html to get the version 8 Google driver was the key for me as you suggested in Step 3. Step 4 was important so I could still see the Nexus 7 as a storage device. Antony

  • Anonymous
    December 08, 2013
    Thank you very much for posting this. Not only did you get me going again for my Nexus 7, but it turns out that the same thing worked for my Galaxy Nexus phone. I had gone 3-4 months without ADB connections.

  • Anonymous
    January 17, 2014
    support.google.com/.../2840804

  • Anonymous
    March 03, 2014
    how to enable debuging mode if your nexus is in the boot loop and can't access anything via the touchscreen.  Is there a way to do it through the pc?

  • Anonymous
    August 28, 2014
    Spent an hour looking. You saved me many additional hours. Didn't even think about setting it up as a camera. Missed that step.