5,595,196 Members 46,003 Now Online
XDA Developers Android and Mobile Development Forum

[How to] Install android_winusb.inf, create adb shell loop, and root your phone

Tip us?
 
tdavis42
Old
(Last edited by tdavis42; 12th June 2010 at 10:40 PM.)
#1  
tdavis42's Avatar
Senior Member - OP
Thanks Meter 12
Posts: 500
Join Date: Jul 2009
Location: Orange County, CA
Default [How to] Install android_winusb.inf, create adb shell loop, and root your phone

First off you need to have Android-SDK installed on your computer. I will not go into details about that process but here is the link to Google's official install page. Navigate to the folder you placed Android-SDK and run the SDK Setup.exe and make sure that you download the usb 3.0 driver software from the sdk updater window. I recommend erasing any HTC Sync software or drivers so that you can start from a clean point then reinstalling them.

Once you get the SDK installed from Google you need to go in a modify the USB 3.0 .inf file. Navigate to the folder you placed the Android-SDK and one step down you will see a folder that is named usb driver. Open the usb driver folder and then open the android_winusb.inf file in notepad. It should default into notepad when you click it. Next you need to copy and paste this text into notepad.

Find the section labeled [Google.NTx86]. At the end of that section, add the following lines.

;
;HTC Incredible
%SingleAdbInterface% = USB_Install, USB\VID_0BB4&PID_0C9E
%CompositeAdbInterface% = USB_Install, USB\VID_0BB4&PID_0C9E&MI_01

Then find the section [Google.NTamd64]. At the end of that section, add the following lines.

;
;HTC Incredible
%SingleAdbInterface% = USB_Install, USB\VID_0BB4&PID_0C9E
%CompositeAdbInterface% = USB_Install, USB\VID_0BB4&PID_0C9E&MI_01

Again just copy and paste. I have attached pictures to show where these need to go.

So now we have the USB driver on the computer and ready to be installed once you plug-in your Incredible.

On your Incredible press->Menu->Settings->Applications->Development->(check)USB debugging. Plug in your Incredible and you should get the found new hardware notification, select the No, not this time radio button, Install from a specific location(Advanced), Don't search, I will chose the driver to install. You should now have "Android Composite USB Device" in the white field selection box, click have disk and browse to the location of the android_winusb.inf file and click ok. Click next and it should install the USB driver you need for ADB to work properly.

Now if you click Start->(right click)My Computer->Properties->Hardware(tab)->Device Manager, you should see Android Phone at the top then when you open the tree you should see Android Composite USB Interface.
This will enable you to use the Android SDK from a command prompt to access your Incredible.

Once that is done open a command prompt by clicking Start->Run(XP) or the search box in W7 and type CMD(in W7 you need to right click command prompt and run as admin.). Then in the command prompt window type; cd (your file path to Android-sdk). now to test it type adb shell and press enter then reboot recovery and press enter. This should reboot your Incredible into recovery. (You can also type reboot bootloader to get to that screen.)

Once you make sure that is working press vol. up and power, then select reboot with the power button. GO back into Settings and deslect the USB debugging check box. Now we need to get adb shell to loop so that it can catch the Incredible in its flawed sequence that allows us to access the phone in recovery. Navigate your command prompt box to your tools folder and then follow these directions courtesy of prerunnerseth over at AndroidForums.com

type edit loop.bat

in edit enter the following

Code:
@echo off
:TOP
adb shell
GOTO TOP
press alt-f then x

hit enter for yes

Here is a link to Androidforums.com with two different methods for gaining root access on your phone.

This is a great 10 min. video on how to root as well.

I hope this helps clear some confusion up for those that can't quite get the Android Composite USB interface going. This credited to all parties involved and is just a collection of info.
Nexus 7 8gig

Sprint:
SGSIIE4GT
Nexus S CyanMod

T-Mobile:
Nexus 4
Galaxy Nexus CyanMod current
HTC G2 CyanMod retired
HTC G1 CyanMod retired (found my true love)
HTC MT3G CyanMod retired

Verizon:
HTC Thunderbolt CyanMod (sold, battery life unacceptable)
MOTO DroidX retired
HTC Droid Incredible CyanMod retired (Fav)
MOTO Droid, CyanMod retired
HTC Eris CyanMod retired

Hope you girls like cat food and pickles because that's all I've got!
 
RLKirk
Old
#2  
Senior Member
Thanks Meter 94
Posts: 451
Join Date: Sep 2008
Location: Knoxville
So what you are saying is we need to take it off of debug mode before looping the shell command?
 
SeanRinVA
Old
(Last edited by SeanRinVA; 13th June 2010 at 03:05 AM.)
#3  
SeanRinVA's Avatar
Senior Member
Thanks Meter 17
Posts: 103
Join Date: Aug 2008
Hmmm...I had mine in Debug mode every time (failed every time, too). Ok...headed to BB to get the PNY card and try again w/o debug mode on.
 
touchpro247
Old
(Last edited by touchpro247; 12th June 2010 at 11:40 PM.)
#4  
touchpro247's Avatar
Senior Member
Thanks Meter 297
Posts: 1,235
Join Date: Apr 2009

 
DONATE TO ME
Here's the android_winusb.inf file for the Incredible.

Switch this file out with the one that's inside your AndroidSDK/usb_driver folder.

http://www.megaupload.com/?d=S2H4R3QZ

Here's the adb shell loop for Windows.

I placed it inside my AndroidSDK/tools folder.

http://www.megaupload.com/?d=N0150VUI

I hope this helps!
 
touchpro247
Old
#5  
touchpro247's Avatar
Senior Member
Thanks Meter 297
Posts: 1,235
Join Date: Apr 2009

 
DONATE TO ME
Quote:
Originally Posted by SeanRinVA View Post
Hmmm...I had mine in Debug mode every time. Ok...headed to BB to get the PNY card and try again w/o debug mode on.
I had mine on and it worked. Try, try, try you'll get it!

Good luck!!!
 
rynosaur
Old
#6  
rynosaur's Avatar
Senior Member
Thanks Meter 28
Posts: 765
Join Date: Nov 2008
Location: Dekalb

 
DONATE TO ME
Quote:
Originally Posted by SeanRinVA View Post
Hmmm...I had mine in Debug mode every time. Ok...headed to BB to get the PNY card and try again w/o debug mode on.
Report back. Rooting the DI will only get simpler and more reliable the old fashioned way: a LEAK from HTC!! If we had something to flash from fastboot or recovery without first obtaining root, we would all have root except for those who didn't check their MD5's, in which case they'd brick. So this new (not you, OP, or you Unrevoked team, but this exploit in general), ****ty, hard way = relatively safe, totally unreliable. Old way = almost 100% reliable but little room for error.

MONKEYS made me do it.
 
sylent101
Old
#7  
Senior Member
Thanks Meter 0
Posts: 126
Join Date: Jan 2010
Default jesus this is frustrating

when i click on android phone it says android adb interface am i doing something wrong??! also when i try to install sdk a black box flashes then leaves immediately
 
RLKirk
Old
#8  
Senior Member
Thanks Meter 94
Posts: 451
Join Date: Sep 2008
Location: Knoxville
Quote:
Originally Posted by sylent101 View Post
when i click on android phone it says android adb interface am i doing something wrong??! also when i try to install sdk a black box flashes then leaves immediately
It is supposed to say that... and you can't install the android sdk you can only open it... its is just a basic dos applicarion with a GUI front of it if I'm not mistaken so just try redownloading it
 
Reddog80p
Old
#9  
Senior Member
Thanks Meter 6
Posts: 753
Join Date: Apr 2009
Location: Central California
Try following the 10 minute video exactly on a cpu that does not have the sdk already on it. I used the same exact sd card and could not get it on my pc that already had the sdk , sync , drivers on it. I followed the instructions on the 10 minute video using the sdk and htc sync from the video link on a machine that did not have them prior and it worked first try using the first (adb shell) method. I think it had something to do with the prior sdk install I had.
StraightTalk i717 Galaxy Note
Kindle Fire HDX 7"
 
socalracer
Old
#10  
Member
Thanks Meter 1
Posts: 89
Join Date: Aug 2009
another let down, tried with the 10 mins video also, oh well

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


TRENDING IN THEMER...