DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: For those who CANNOT root: It seems to be a driver problem

  1. Junior Droid
    blazercist's Avatar
    Member #
    80085
    Join Date
    Jun 2010
    Posts
    10
    Phone
    Droid Incredible
    #1

    For those who CANNOT root: It seems to be a driver problem

    Like the title says I think this is a driver issue.

    I've been beating my head against the wall trying to get my phone recognized by adb in recovery mode with little success.

    What I've learned:

    My droid incredible has a Hardware Id matching the hack:
    ;HTC Incredible
    %SingleAdbInterface% = USB_Install, USB\VID_0BB4&PID_0C9E
    %CompositeAdbInterface% = USB_Install, USB\VID_0BB4&PID_0C9E&MI_01
    %SingleBootLoaderInterface% = USB_Install, USB\VID_0BB4&PID_0C94

    I can issue "adb devices" at the command prompt and my phone is listed.

    This is only in the normal OS, however in recovery mode the Hardware Id changes to:

    ;HTC Incredible
    %SingleAdbInterface% = USB_Install, USB\VID_0BB4&PID_0FF9
    %CompositeAdbInterface% = USB_Install, USB\VID_0BB4&PID_0FF9&REV_0100
    %SingleBootLoaderInterface% = USB_Install, USB\VID_0BB4&PID_0FF9

    If I add the above to the .inf file I can successfully install the driver when the phone is in recovery mode, otherwise Windows complains that it hasn't found a driver for my device. (I had to change the permissions of USBSTOR.SYS so that none of the users had read permissions - this made it so that the USB Mass Storage driver wouldn't auto install and I could manually select the android_winusb.inf driver)

    However, after installing the driver this way "adb devices" will not recognize my phone in recovery mode. Don't let this confuse you!!! Windows recognizes the phone as "Android ADB Composite Interface", but "adb devices" list is empty. I believe this is the major problem with the "device not found" error never changing.

    This is where my understanding of drivers ends, but to me it seems that perhaps something isn't lined up quite correctly for some of us as far as the driver Hardware Id and the adb tool.

    If any of the devs or someone with a greater knowledge of the driver architecture/adb tool care to comment on this to clear it up I'd greatly appreciate it.
  2.  
     
     
     
  3. Junior Droid
    blazercist's Avatar
    Member #
    80085
    Join Date
    Jun 2010
    Posts
    10
    Phone
    Droid Incredible
    #2
    Nevermind, now I understand what going on...

    The phone is not supposed to be recognized because adb is not supposed to be running in recovery at the time when the phone is recognizable by the driver, hence the race. We are booting into recovery and praying that adb starts while the phone is in recovery and keeps running until we can communicate with it via the driver(I think?) Soooo, the question really is what causes adb to run in recovery because it seems that using the SD trick we can reliably cause it to run long enough to get in.

    Now I'm still stuck, I don't understand why some people can get it to run adb in recovery almost every time while I cannot and have not ever gotten it to run adb in recovery mode.

    Oh well, I'm sure the devs will come up with some way to force it eventually so I'll just stop posting and be patient.
  4. Junior Droid
    blazercist's Avatar
    Member #
    80085
    Join Date
    Jun 2010
    Posts
    10
    Phone
    Droid Incredible
    #3
    Ok, right after I posted I thought about it a bit and realized what might cause adb to run in recovery and IT WORKED!

    My guess is that if you run adb shell in the normal OS it creates a lockfile so that multiple instances can't run, if you then pull the battery while adb shell in running the lockfile will remain on the filesystem.

    After that you put the battery back in and boot into recovery, after trying this it worked on the first try for me.

    Finally after over a week of trying I have su!
  5. Droid
    mclarryjr's Avatar
    Member #
    23395
    Join Date
    Jan 2010
    Posts
    52
    Phone
    Droid
    #4
    Didn't work for me
  6. Junior Droid
    blazercist's Avatar
    Member #
    80085
    Join Date
    Jun 2010
    Posts
    10
    Phone
    Droid Incredible
    #5
    @ mclarryjr: What exactly didn't work? Let me lay out the process for you. Please read through once as the process is a little confusing.

    1. Uninstall HTC Sync and HTC Driver Installer.
    2. Add both:
    ;HTC Incredible
    %SingleAdbInterface% = USB_Install, USB\VID_0BB4&PID_0C9E
    %CompositeAdbInterface% = USB_Install, USB\VID_0BB4&PID_0C9E&MI_01
    %SingleBootLoaderInterface% = USB_Install, USB\VID_0BB4&PID_0C94

    and

    ;HTC Incredible
    %SingleAdbInterface% = USB_Install, USB\VID_0BB4&PID_0FF9
    %CompositeAdbInterface% = USB_Install, USB\VID_0BB4&PID_0FF9&REV_0100
    %SingleBootLoaderInterface% = USB_Install, USB\VID_0BB4&PID_0FF9

    to android_winusb.inf under [Google.NTx86] and [Google.NTamd64]

    3. Change the permissions of C:/Windows/System32/drivers/USBSTOR.SYS make sure that none of your users have any permissions to read it.
    4. Boot your Incredible into recovery mode (with the triangle !)
    5. You should see an error installing the device, go into Device Manager and Update Driver, choose the android_winusb.inf file (ignore all the warnings and install anyway)

    6. Now reboot your phone into its normal mode.
    7. Once the phone is booted and ready to go, use the command prompt and issue "adb shell" you should see $ and a blinking cursor (I issued a few commands like ls, cat file, mkdir, most of which were met with error permission denied)
    8. Now with your phone still in the regular OS and adb shell still running and connected pull the battery.
    9. Reinsert the battery and run loop.bat at the command prompt.
    10. Hold volume down/power to boot into recovery.
    11. The SD card errors out.
    12. Click out your SD card.
    13. Press volume down and then power.
    14. Once the white HTC Incredible screen shows you should look at it very carefully for a black line or a blink, immediately upon seeing this you must click your SD card back in.
    15. You should get the directory error within 15-20 seconds.
  7. Droid Newbie
    glowskull03's Avatar
    Member #
    67689
    Join Date
    May 2010
    Posts
    4
    Phone
    HTC Incredible
    #6
    Quote Originally Posted by blazercist View Post
    @ mclarryjr: What exactly didn't work? Let me lay out the process for you. Please read through once as the process is a little confusing.

    1. Uninstall HTC Sync and HTC Driver Installer.
    2. Add both:
    ;HTC Incredible
    %SingleAdbInterface% = USB_Install, USB\VID_0BB4&PID_0C9E
    %CompositeAdbInterface% = USB_Install, USB\VID_0BB4&PID_0C9E&MI_01
    %SingleBootLoaderInterface% = USB_Install, USB\VID_0BB4&PID_0C94

    and

    ;HTC Incredible
    %SingleAdbInterface% = USB_Install, USB\VID_0BB4&PID_0FF9
    %CompositeAdbInterface% = USB_Install, USB\VID_0BB4&PID_0FF9&REV_0100
    %SingleBootLoaderInterface% = USB_Install, USB\VID_0BB4&PID_0FF9

    to android_winusb.inf under [Google.NTx86] and [Google.NTamd64]

    3. Change the permissions of C:/Windows/System32/drivers/USBSTOR.SYS make sure that none of your users have any permissions to read it.
    4. Boot your Incredible into recovery mode (with the triangle !)
    5. You should see an error installing the device, go into Device Manager and Update Driver, choose the android_winusb.inf file (ignore all the warnings and install anyway)

    6. Now reboot your phone into its normal mode.
    7. Once the phone is booted and ready to go, use the command prompt and issue "adb shell" you should see $ and a blinking cursor (I issued a few commands like ls, cat file, mkdir, most of which were met with error permission denied)
    8. Now with your phone still in the regular OS and adb shell still running and connected pull the battery.
    9. Reinsert the battery and run loop.bat at the command prompt.
    10. Hold volume down/power to boot into recovery.
    11. The SD card errors out.
    12. Click out your SD card.
    13. Press volume down and then power.
    14. Once the white HTC Incredible screen shows you should look at it very carefully for a black line or a blink, immediately upon seeing this you must click your SD card back in.
    15. You should get the directory error within 15-20 seconds.

    I don't know if i'm missing something here...

    1. I uninstalled the htc drivers and sync and added the 2 entries to android_winusb.inf.
    2. I'm not sure about the USBSTOR.SYS I don't see where I can remove permissions even for myself I'm the only user on my machine.
    3. I reboot my phone into recovery mode and then plug in my phone, I get the installing driver message and i go through and update the driver with the android_winusb.inf file.
    4. I then reboot my phone to normal mode and when it comes backup i can't see the "Android Phone" in device manager unless I change the setting on my phone to "HTC Sync" is that correct? At which point it appears in device manager as Android Phone -> Android Composite ADB interface
    5. Next I go to the command prompt and type "adb shell" but still the get the good ol error "error: device not found"

    Please help I've at this for days trying several different methods flying around in different sites.
  8. Junior Droid
    blazercist's Avatar
    Member #
    80085
    Join Date
    Jun 2010
    Posts
    10
    Phone
    Droid Incredible
    #7
    I should have clarified, you don't need to put your phone into HTC Sync mode only USB debugging has to be enabled.

    In order to change the permissions of USBSTOR.SYS you need to take ownership of the file, there are other users on your machine, the SYSTEM user and Trusted Installer. This part is a windows issue and there are plenty of guides that tell you how to take ownership of system files.

    Also, if you can't adb shell into a phone in its normal state then you don't have the driver installed... as I stated the phone has two different Hardware Ids so just because you installed the driver correctly while the phone was in Recovery Mode doesn't mean the driver is installed properly for the normal mode. Hint: its the same driver so just go through the Update driver thing again while the phone is in normal mode.
  9. Droid Newbie
    glowskull03's Avatar
    Member #
    67689
    Join Date
    May 2010
    Posts
    4
    Phone
    HTC Incredible
    #8
    Thanks for the pointers but still no luck. I finally got the drivers installed properly and I'm now able to get the adb shell when in regular mode. After i reboot to recovery mode I keep failing to get the all wonderful error I'm looking for I just keep getting "error: device not found"
  10. Junior Droid
    Phonegeek's Avatar
    Member #
    63831
    Join Date
    Apr 2010
    Posts
    19
    Phone
    Droid Incredible
    #9
    to android_winusb.inf under [Google.NTx86] and [Google.NTamd64]

    Where do I find this file?
  11. Droid Newbie
    glowskull03's Avatar
    Member #
    67689
    Join Date
    May 2010
    Posts
    4
    Phone
    HTC Incredible
    #10
    @phonegeek - you need to download the android sdk. once you download it run the executable, the window that pops up scroll all the way down the list and select usb 3.0 and install it. It will create a directory in the sdk folder usb_driver which contains that file
Page 1 of 2 12 LastLast

Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. ADB Driver Problem
    By Yodes in forum Android Hacks and Help
    Replies: 0
    Last Post: 04-28-2010, 04:46 PM
  2. Root Explorer Problem?
    By Boardwalk30 in forum Android Applications
    Replies: 4
    Last Post: 03-26-2010, 07:09 PM
  3. Root Explorer problem
    By triplem007 in forum Android Hacks and Help
    Replies: 7
    Last Post: 02-22-2010, 10:31 AM
  4. Root Problem?
    By sports96 in forum Android Hacks and Help
    Replies: 0
    Last Post: 02-18-2010, 09:21 AM
  5. Root Problem?
    By sports96 in forum Android General Discussions
    Replies: 1
    Last Post: 02-18-2010, 08:11 AM

Search tags for this page

android winusb access denied
,

android winusb.inf

,

android winusb.inf access denied

,
tcmd interface
,

tcmd interface driver

,
tcmd interface droid x
,
usb\vid 0bb4&pid
,
usb\vid 0bb4&pid 0ff9
,
vid 0bb4 pid 0ff9
,
vid 0bb4&pid 0ff9
Click on a term to search our site for related topics.
Find us on Google+