[HOWTO] Easy installation of drivers needed for adb/fastboot/... - Desire Q&A, Help & Troubleshooting

Tested on Windows 7:
- start installing HTC Sync, the software which comes with your phone (and can also be downloaded from HTC web site).
- it begins with telling you it needs to install Adobe AIR, something else, and the drivers... let it continue at that stage.
- once the previous step is done and installer asks if you want to start installation of HTC Sync software -- select [Cancel]
This way the drivers needed for adb and fastboot get installed while the rest of the (not so useful) HTC software is not installed at all.

You realize that everyone on this forum knows that, don't you?

qktb said:
Tested on Windows 7:
- start installing HTC Sync, the software which comes with your phone (and can also be downloaded from HTC web site).
- it begins with telling you it needs to install Adobe AIR, something else, and the drivers... let it continue at that stage.
- once the previous step is done and installer asks if you want to start installation of HTC Sync software -- select [Cancel]
This way the drivers needed for adb and fastboot get installed while the rest of the (not so useful) HTC software is not installed at all.
Click to expand...
Click to collapse
actually ur wrong, u need different drivers for fastboot
ADB & Fastboot Guide

abaaaabbbb63 said:
You realize that everyone on this forum knows that, don't you?
Click to expand...
Click to collapse
1. There is a lot of info distributed among lots of guides, signatures, stickies, etc. Probably everything has been discussed and described somewhere some time ago. Maybe I'm slow, but it took me a while to find and figure out what is needed for what. I find short posts with quick and specific answers to specific problems/challenges quite useful.
2. Keep in mind that there are people using Google search who view xda forums in the middle of some long thread with lots of comments, trouble reports, etc. Not registered users. Maybe a short brief description will help someone?
3. I knew about stand-alone driver sets or "install/uninstall HTC Sync" way of installing the drivers, but someone may save some time knowing that it is enough just to cancel the installation after pre-requisites are installed.
Still if you think this thread is useless I will not cry and have no hard feelings if it is deleted.

jmcclue said:
actually ur wrong, u need different drivers for fastboot
Click to expand...
Click to collapse
For me both adb and fastboot work fine with the method described. There was nothing HTC-related installed earlier on the PC, it is a new laptop.
Edit: actually you are right and I am right (I guess): different drivers are needed and used for fastboot operation, but all of them are installed with the process described, no further action is needed when using fastboot later on. Windows just says "Installing drivers..." on the first use.

Related

HTC sync, do I really need it?

Ok, here's the deal:
I don't like installing software on my computer that I don't need, and as far as I can tell, HTC sync is primarily aimed at synchronizing contacts and calendar to your computer, none of which I want or need. It also offers installation of apps to the phone, but for that I would prefer using either the adb tool from the sdk or just putting the apk files on the memory card and installing via a file manager on the phone.
First question:
I realize that I need the adb driver for my phone, and this driver is installed alongside/by HTC sync, so it is clearly packaged inside the HTC sync setup file. Does anyone know if it is possible to extract just the driver from the setup file? I know there is a zip floating around with the adb driver (I've downloaded that), but if it can be extracted from the setup file that's even better, since it would be an easy way to obtain the latest version.
Second question:
At some point in the future I expect there will be ROM updates to the phone. These are self contained exe-files, but according to the HTC support pages you need to have HTC sync installed to install them. Is this really true, or is it sufficient to have the adb driver installed?
Third question:
If I want to use the phone for USB tethering to give the computer internet access, which driver is needed for that? The ADB driver? Or must I have the full HTC sync installed for that to work?
Any answers appreciated!
Best regards
-Øyvind
Here are my answers to the best of my knowledge:
#1 - I have not found the driver available on it's on yet. However, I'm sure Mircosoft is soon to be adding it to it's list of drivers.
#2 - Most updates to the phones are done OTA ( Over the air), so you need not worry about about the HTC sync doing updates.
#3 - You will need the driver to tether your phone, but not the HTC desktop app.
For my setup I ran the setup file than uninstalled the HTC Sync but left the driver and everything seems to be ok.
Hope this helps
Thanks. Regarding #1, as I mentioned in the OP, a reportedly working ADB driver can be found in this post, but if it can be extracted from the HTC sync setup that would be even better. I've looked at it, but none of the files inside the setup file looked very promising (no inf-file to be found).
I know about OTA updates, but for older HTC phones (the Hero, for instance) there are downloadable rom updates. Are the exact same updates usually also sent out as OTAs?
As for #3, I know a driver is required, I just wanted to know which driver it was, and if it can be found separately.
Your tip on installing HTC sync to get the driver and then unistalling has been noted. Thanks.
+1 on installing and then uninstalling.
HTC sync installs two items, the second one, HTC Driver Installer, contains the ADB driver and the Tethering driver.
This was really helpful!
I tried installing HTC sync in a virtual machine to avoid cluttering my real machine, and during the install I chose "Custom". There I deselected the option for "Sync Manager" and installed only the "Application Installer" item.
I also monitored the install with a utility uninstaller, and it turns out that there is actually a "HTC Driver Installer" lurking inside the setup file. This file is temporarily extracted during the install, and I was able to manually make a copy of it before it was removed. The file name is HTCDriver.msi, and it contains all the driver files (both 32 and 64 bit). It can be used for a standalone install of just the drivers.
Thanks again! I think I'm fully sorted now!
Hi any chance of uploading the msi?
s4vva said:
Hi any chance of uploading the msi?
Click to expand...
Click to collapse
The file is ~14 MB, so it is too big to attach here. Any preferred site where I could upload it? The msi has been extracted from HTC sync version 2.0.33, btw.
Edit: I found out that 7zip actually could compress the file a lot more, so I have attached it. Please be aware that even though it has a .zip extension, it is really a 7z-file. Had to rename it to zip to get it to upload. The mods could perhaps allow 7z-files in addition to .zip?
MegaUpload or SendSpace personally
EddyOS said:
MegaUpload or SendSpace personally
Click to expand...
Click to collapse
I've edited my post. I found a way to attach it after my initial posting.
The wonders of 7-Zip!!
Thanks a lot!! I use HTC Sync but this is handy
Thanks, just what I needed.
mroek said:
This was really helpful!
I tried installing HTC sync in a virtual machine to avoid cluttering my real machine, and during the install I chose "Custom". There I deselected the option for "Sync Manager" and installed only the "Application Installer" item.
I also monitored the install with a utility uninstaller, and it turns out that there is actually a "HTC Driver Installer" lurking inside the setup file. This file is temporarily extracted during the install, and I was able to manually make a copy of it before it was removed. The file name is HTCDriver.msi, and it contains all the driver files (both 32 and 64 bit). It can be used for a standalone install of just the drivers.
Thanks again! I think I'm fully sorted now!
Click to expand...
Click to collapse
Hi,
Can you please share the HTCDriver.msi OR can the procedure or extracting the same from the setup exe?
Many thanks!
Vivek
This file seems useless to my windows 10 laptop....

Help, Please

So, I have tried all methods posted here. I have not gotten a new sdcard, so that could be it, but if you sift through all these threads, many people have gotten root with the card that came from verizon. Also, would it help to wipe out my phone? Not exactly sure how to do it, but would it help? Also, I hear my phone connect with the usb sounds, but it seems like sometimes I get a quick 3 tones and it doesn't connect. Not sure what that means either.
If anyone can please help, I would appreciate it!
if your not sure if it connected right, open the device manager and see if it is appearing on there.
As far as i know wiping your phone probly won't really help much either.
rstandi said:
So, I have tried all methods posted here. I have not gotten a new sdcard, so that could be it, but if you sift through all these threads, many people have gotten root with the card that came from verizon. Also, would it help to wipe out my phone? Not exactly sure how to do it, but would it help? Also, I hear my phone connect with the usb sounds, but it seems like sometimes I get a quick 3 tones and it doesn't connect. Not sure what that means either.
If anyone can please help, I would appreciate it!
Click to expand...
Click to collapse
There are about 10 threads on adb shell/rooting difficulties already. Why didn't you just bump an older one?
When you connect the usb to the phone what mounting setting did you select? It needs to be on charge only.
So, I have tried all methods posted here.
Click to expand...
Click to collapse
I have rooted two phones using various methods. The Easiest method? Who knows, but this is what I did, I in NO way take credit for this method. This is a culmination of various methods I found on various forums. Thank you to everyone here and on androidforums. Give it a shot.
1. Uninstall HTC sync and PDAnet (If installed)
2. Install drivers as specified for re-flash recovery from revoked team (HTML file has instruction in recovery zip - unrevoked.com/recovery/android-usb-driver.zip
3. Restart PC
4. Install PDANet - junefabrics.com/android/
5. Make sure to complete all steps for PDANet
6. Make default connection on phone, "Disk Drive" AND Turn on "USB Debugging"
7. Shut down the phone
8. Unclick the card
9. Volume down + Power into bootloader
10. Run adb shell in cmd prompt as loop(loop.bat)
11. Start recovery and wait .5 - 1 second after you hear the disconnect sound to click in your card.
12. You should see error device not found change to the other message IF LUCKY.
13. IF NOT,
- Let loop.bat continue to run
- Pull battery, unclick SD card
- Vol down + Power
- Recovery
- Listen for 2 tones (Count aloud..it helps)..
Quick - Insert card right after/during second (Change timing up slightly between tries)
Keep trying, my second root didn't take as long as my first but was easier. I think the unrevoked bootloader drivers with the PDANet usb drivers really make this easier. The other great thing is after you get root, you are set up to do the flash immediately using this method. Its just one more method that worked for me, hope this method helps you succeed. Good luck.
can anyone definitively explain to me which type of usb connection (e.g. "charge only", "disk drive") is necessary to get into shell and why? I have looked at what the various threads have to say about this. In fact that's the problem--I have found contradicting opinions posted on this matter. In my admittedly inexperienced mind, it seems like I should be fine either way, as long as adb recognizes my device.
davisbs999 said:
can anyone definitively explain to me which type of usb connection (e.g. "charge only", "disk drive") is necessary to get into shell and why? I have looked at what the various threads have to say about this. In fact that's the problem--I have found contradicting opinions posted on this matter. In my admittedly inexperienced mind, it seems like I should be fine either way, as long as adb recognizes my device.
Click to expand...
Click to collapse
I used disk drive the first time, and can not recall what I used on my second device. I see that it is contradicting throughout. I really do not think it even makes a difference because you are doing a battery pull and it never reaches that step on the phone. The important thing in my opinion are the drivers and timing.
Studmf said:
I used disk drive the first time, and can not recall what I used on my second device. I see that it is contradicting throughout. I really do not think it even makes a difference because you are doing a battery pull and it never reaches that step on the phone. The important thing in my opinion are the drivers and timing.
Click to expand...
Click to collapse
I rooted my cousin's Droid Incredible and I had Disk Drive enabled. I just want to say THANK YOU Studmf!!!!! I was stuck because I had HTC Sync installed and was stuck forever trying to root the Incredible. The instructions that I WAS following left that detail out.

Problem with HTC Diag driver, and MSL#... Please help!

So I tried following one of the guides posted here at XDA to retrieve my MSL#.
** EDIT **
XDA FORUMS WILL NOT allow me to post links, because I have a new account, and it hasnt been approved. So I am just going to post the links to the screenshots without the "http" in front. I also had to remove the "." from the first part of the web address. So "google.com" would be "google com". You will have to manually copy and paste the URL, and add the periods to first part of the address.
IF A MOD IS READING THIS CAN YOU PRETTY PLEASE APPROVE MY ACCOUNT? Thanks!
I followed this guide:
forum xda-developers com/showthread.php?t=697487#
I downloaded the pre-requisites, and started to follow the steps.
I am on Windows 7 32bit, and these instructions are for Windows 7 64bit.
Once I cam to the section where I chose my drivers I chose the ones for x86 since I am running 32bit.
It installed the drivers fine. However, it installed the device under the "PORTS" section of the "Device Manager".
The screenshots for the instructions show the device being installed under the "MODEMS" section.
So I thought I did something wrong, and before doing any further research, I decided to delete the device that was installed under the "PORTS" section. I figured by doing this I could start from scratch, and correct whatever it was that I did wrong. Dumb move!!!
I removed the drivers from "C:\windows\system32\drivers" and also from "C:\windows\system32\driversstore\filerepository"
I unplugged my phone, rebooted my machine, dialed "##3424#" to enter diagnostic mode, connected my phone to the computer, and it DID NOT recoginze any new hardware.
I also tried removing any references from regedit for "htcdiag", which is the driver that was installed.
This produced the same result.
I have attached screenshots of the devices currently in my device manager.
Device Manager Screenshot #1:
img46 imageshack us/img46/8923/screenshot1ka.jpg
Device Manager Screenshot #2:
img163 imageshack us/img163/1479/screenshot2m.jpg
Device Manager Screenshot #3:
img202 imageshack us/img202/9158/screenshot3hj.jpg
Please help me get this working!
Thank you!
Have you tried msl reader from the market ?
mendez_v said:
Have you tried msl reader from the market ?
Click to expand...
Click to collapse
No, but at this point I am less worried about the MSL, and more worried about getting the android phone to show up properly under the device manager. When I rooted the phone I installed a modified HTC USB Driver, and then my phone showed up under device manager. As you can see from the screenshots my phone does not show up in device manager AT ALL anymore.
I know this was a rookie move, but someone must have done this before, or at the VERY least must have some suggestions on how to get the drivers reinstalled on my machine for my phone.
Anyone.... Bueller? Bueller?
** ONE MORE BUMP **
Perhaps all the useful contributors were on an extended Labor Day vacation.
guht said:
No, but at this point I am less worried about the MSL, and more worried about getting the android phone to show up properly under the device manager. When I rooted the phone I installed a modified HTC USB Driver, and then my phone showed up under device manager. As you can see from the screenshots my phone does not show up in device manager AT ALL anymore.
Click to expand...
Click to collapse
Have you plugged the phone in and tried "scan for hardware changes"?
Still no luck.....The HTC website has a support section with drivers you can download.
OR-
Do you have the android sdk installed on your computer? There is a usb driver package you can use in the sdk.
If you still cannot get it to connect, then flash a rooted stock rom and see if your computer can connect then.
As far as your MSL, just call Sprint and ask them. The rep will ask why you need it. Just tell them your phone has been acting odd and that you are going to do a reset, which you have done before in the past ; ). They will then transfer you to a tech which will ask you again why you need it. Just respond the same about doing a reset, which you have done many times before.....you will then have your MSL - takes only a couple of minutes.

Updated version to enable Unknown Sources

This is the latest release of my fix (June 14, 2011). This version addresses the Market ID and Moto Blur issue.
This version does not require the use of scripts on the phone. It uses ADB and sqlite3 (both are included in the zip file).
I created a new thread here because the older version was so full of bugs and comments about said bugs I figured it was time to start fresh, seeing how I am using a different method (the method I should have used to begin with) for this hack. Also, this should have been in development to begin with.
I have not had a chance to test the latest version, aside from verifying the awk command works as exptected. The rest is a strong educated guess, mixed with a re-tooling of it to just use Android Debug Bridge to do what I was having scripts do in the past. Should be much more reliable.
IF YOU DECIDE TO USE THESE INSTRUCTIONS: PLEASE, read through this page entirely from top to bottom at least once prior to doing anything. This way, if you are unsure on anything, you can ask the questions you need answers to. I am not liable for anybody messing up their phone because they didn't think to read the F'n manual prior to following these steps.
If you don't read this through completely before starting, and you brick your system, Don't come crying to me. I warned you.
This version makes it close to impossible to brick the system, but I left that bit in to cover my arse.
If you do not have the phone rooted, download the second zip file, and install the drivers found below:
Motorola Driver(install before you run the batch file)
You will need to enable USB Debugging:
On your phone,go to Settings->Applications->Development->Check "USB Debugging"
Latest version installs busybox for you, but if it doesn't, the script will pause for you to check, and tell you how to quit out of my script before proceding. If you have issues with that, let me know. I haven't tested this version, but by all accounts, it should be more reliable than my previous iterations, with the plus side of not having to purchase an app.
I have not tested it, so you may still need to tell it to install, but it should install the apk.
1. Download the attachment located in this post.
Unzip to a folder on your desktop.
PLUG IN YOUR PHONE NOW!!!
Double click on the batch file ("enable_unknown_sources.bat"). You may have to run as administrator, but I don't think so. Built on Windows XP (I'm a linux guy who wrote this at work in a couple minutes)
When it prompts for you to OK the super user for "unknown", look at your phone. It should have a prompt. If not, it may be ok. We will see....
once your phone has rebooted, you phone will have "unknown sources" enabled already. Don't worry about rebooting. The batch file did that for you.
Quite a bit less work than before. Good news: it's done! never to worry about it again...unless you upgrade....
DISCLAIMER:
DO NOT FOLLOW ANY OF MY STEPS IF YOU ARE UNSURE OF WHAT YOU ARE DOING! I have done my best to ensure that the instructions are accurate, but I made mistakes in the first revision, so who's to say that I didn't miss something this go 'round as well? If you decide to follow this walk-through, your actions are an agreement to not hold me liable if your phone becomes a pretty brick. I am not responsible for what you do with this information. If you have no idea how to do any portion of these instructions, you can either walk away (best idea), or ask for help here.
I am also not the 2nd shooter on the grassy knoll, nor am I the cause of all your woes throughout life. I always wanted to say that in a disclaimer.
Thanks to Vahnyyz for reminding me that I forgot to have you enable USB Debugging.
IF YOU HAVE PROBLEMS:
Have you installed the Motorola Drivers?
Do you have Debugging enabled?
If the answer to the 2 questions above are "yes, damnit! Give me a good answer, and stop wasting my time with these stupid questions", then you will need to tell me at what point the scripts fail. I will look into the problem as fast as I can.
so I tried the program you put on and everything because I haven't been able to root my phone as of yet, but the file I downloaded that included rooting did not work, everytime I ran the application it stated that "Device Not Found" and my phone is connected through USB at the moment.
Forgot a part
Thanks for letting me know about your issue. You need to do the following:
Ensure you have installed the drivers on you computer
Ensure USB Debugging is turned on
To enable USB Debugging, (on your phone...duh) go to Settings->Applications->Development->Check "USB Debugging"
as soon as I run the. bat file, command screen tells me to make sure that busybox is installed, which it is, to unplug phone, go to, busybox and install. Wife's phone is already rooted, once I hit next, "unknown" will pop up on the screen for a second and then....nothing.
Need to fix that to state "....after you ensure busybox is installed, plug phone back in"
Just plug the phone back up prior to proceding
Sent from my GT-I9000 using XDA App
How is the no blur version coming along....anxiously waiting for that!
JBallin4life27 said:
How is the no blur version coming along....anxiously waiting for that!
Click to expand...
Click to collapse
I am running into a problem I believe is caused by an older version of clockworkmod. I am trying to see if I can get a newer version running.
The issue:
It appears that the update file I generate is incompatable with the updater built into the version of ClockWorkMod I am running. Anybody have a newer build of the CWM I can use for testing?
jonsjava said:
I am running into a problem I believe is caused by an older version of clockworkmod. I am trying to see if I can get a newer version running.
The issue:
It appears that the update file I generate is incompatable with the updater built into the version of ClockWorkMod I am running. Anybody have a newer build of the CWM I can use for testing?
Click to expand...
Click to collapse
I had CM6 running on my motorola backflip and still have all the files saved on my computer...would it be in there somewhere and would that be useful to you?
JBallin4life27 said:
I had CM6 running on my motorola backflip and still have all the files saved on my computer...would it be in there somewhere and would that be useful to you?
Click to expand...
Click to collapse
I'm needing the second stage recovery file to make ClockWorkMod something newer than 2.x.x Needing to have it somewhere in the neighborhood of 3.x
jonsjava said:
I'm needing the second stage recovery file to make ClockWorkMod something newer than 2.x.x Needing to have it somewhere in the neighborhood of 3.x
Click to expand...
Click to collapse
Yea lol...no idea what that all means...sorry i'm not any help

[GUIDE] Crash Course in ADB/Unlocking on WINDOWS

Just wanted to try and put together something helpful for those who are unlocking their devices who might be doing this for the first time or just are having issues.
THIS GUIDE ONLY WORKS FOR WINDOWS FOLK, SORRY! IF YOU HAPPEN TO BREAK YOUR DEVICE OR DO ANYTHING TO IT THAT PREVENTS YOU FROM USING, I AM NOT RESPONSIBLE, CAVETE LIBERUM OPUS.
ADB
Download ADB from here: http://developer.android.com/sdk/index.html
Make sure you install it where ever you are comfortable with, I tend to keep mine in my main installation (C: )
HTC Sync
Download HTC Sync here - http://www.htc.com/www/software/htc-sync-manager/
Why download HTC Sync? For the drivers. After the installation is complete you can remove HTC Sync, just not the drivers.
Appropriate Drivers
In your Program Files (x86) folder, there should be an HTC Folder, with the drivers in it.
What you are going to need to do is make sure that your device has the HTC drivers installed.
You'll need to open Control Panel ----> Hardware and Sound ----> Device Manager
Your HTC One should be under portable device or android phone, or something similar to that. If it is telling you the current drivers are up to date, you may need to disable driver signature enforcement, and that method is different between Windows 7 and 8.
You'll want to update the driver software by right clicking ----> Update Driver Software ----> Browse my computer for driver software ----> Browse...; then select the HTC Driver folder from within the HTC folder (you'll have to navigate to it)
If you need to disable driver signature:
Windows 7 - http://bit.ly/1bE0jZT
Windows 8 - http://bit.ly/1bE0mF7
Trouble Shooting ADB and Rumrunner
I am, in no way, saying that I am an expert in running rumrunner. If you can use irc and contact beaups please do. However, just in general, here are tips I think might work -
Go to "System and Security" from Control Panel and click "Allow an app through Windows Firewall." Click "Change Settings" at the top and then click "Allow another app...". Navigate to your extracted rumrunner file and select the soju.exe to be allowed through. Why do this? Because I personally rather not take down my entire firewall to allow this program to run. No offense to beaups, just doesn't seem terribly practical to me.
In your ADB installation folder, go into SDK -----> platform tools ----> Hold down left shift and right click -----> Open command window here
type in adb devices; if you are not seeing
List of devices attached
XXXXXXXXXXXXXXXXXX device (read the X's as a string of numbers which are your device)
then it isn't ready to be use rumrunner. You'll have to go into Settings -----> About Phone -----> Software Information -----> Then click 7 times on Build Number to unlock developer options. Go into "Developer Options" and enable USB Debugging.
As mentioned in Rumrunner, please run soju.exe AS ADMINISTRATOR, to avoid permission issues on computer-side.
OEM Cables are also ideal in this situation. Also make sure you downloaded the right file (.8 version versus .10)
Last but not least, IT TAKES A WHILE FOR SOJU TO RUN. BE PATIENT Your phone will reboot A LOT during the entire process. It'll take awhile, but if you run into the (.........) problems or an error because your drivers aren't installed correctly be patient.
The guide isn't perfect, but hopefully it helps. I'll add advice if it comes in.
Great guide!
Make sure to remember to do a fastboot devices check too. that is my problem adb works great fastboot is another story
Sent from my HTC6500LVW using xda app-developers app
It also hates USB3
It also hates USB 3.0, had to use my fiances laptop todo it, but very straightforward.

Categories

Resources