yashsingh1/xdaforums huggingface dataset:
[EVO 4G Android Development] deviouskater:
Hope this helps. Today was my first day flashing and installing custom roms.

I used the idiot proof guide + toast orginal method to root and unlock NAND. I had trouble with the idiot proof guide when Clockwork was not installing a custom rom so i did toast method.

adb was pretty simple but anyways heres my situation i had and RESOLVED

after flashing the rooted stock rom. I Flashed the new radio. after I rebooted I lost SD (NO SD found) and USB was not recognized)

I did the SD Fix, worked perfect, but getting USB was a headache but after being really patience i got it to work.

So heres what i did to get USB back.

took my sd out of evo plug it in to the computer and put the two files that where extracted to the SD "to the root of the card"

Note: I actually used my old Blackberry to get the files on to the card. No SD card reader at my house

put SD back in EVO and booted it up again

I connected phone to PC with USB cable.

I did the fastboot check by doing the power and volume down button on start up.

I waited till it loaded then I selected fastboot by pressing the power button.

On windows xp went to Start -> Run type "cmd"

then typed "cd C:\android-sdk-windows\tools\"

then typed "fastboot oem boot"

scrolled up on command prompt screen to check if "INFOCID is SPCS_001 was correct. It was Correct so i did not use generator.

rebooted phone

Make sure unknown sources and debug is on under application and development under settings.

1.) went online with the phone searched for Connectbot on google and downloaded the apk.

"ConnectBot-svn-r505-english.apk" no link sorry Im a new user

2) installed and then where it says shh pick local add a nickname (anything)

3.) after entering nickname hit enter on the keyboard on your evo. That will bring you into the in phone command screen.

Be patient and type 1 line like so (to get arrows symbol press # button and on left side of space bar go to second options) make sure you add in the spaces between words. I copied and pasted in note pad to check spaces.

4.)

su "then press enter on keyboard"

cat /sdcard/flash_image > /data/flash_image "then press enter"

cat /sdcard/mtd0.img > /data/mtd0.img "then press enter"

chmod 755 /data/flash_image "then press enter"

/data/flash_image misc /data/mtd0.img "then press enter"

reboot "then press enter"

5) when i type "reboot" I got a response of permission not accepted..

6) I decided to just reboot manually after exiting "not sure if i just press the home sreen then rebooted or back arrowed the connectbot program"

7) after reboot, usb was working

Other Notes: On the 4th line i first inputed "chmod 755 /data/flash_image or chmod u+x /data/flash_image" I got an error somthing not recognized so i inputed "chmod 755 /data/flash_image" instead

well hope this helps anybody
[EVO 4G Android Development] clocker6633:
Wow. I feel like dumbass. You're explanation of the command lines cleared everything up for me

su "then press enter on keyboard"

cat /sdcard/flash_image > /data/flash_image "then press enter"

cat /sdcard/mtd0.img > /data/mtd0.img "then press enter"

chmod 755 /data/flash_image "then press enter"

/data/flash_image misc /data/mtd0.img "then press enter"

For some reason I was thinking the last command line was a continuation of the 3rd lines optional or command. Wow.

I highly recommend that anyone having problems with the usb portion double check their shell command entries.

Thank you very much sir. You have made my phone life much easier.
[EVO 4G Android Development] richardrk:
Guys Im scared, I have no idea what ADB is at all. So where do i get it? I cant fix my phone at all cuz it requires this program... Both my SD and USB are gone. Please help me
[EVO 4G Android Development] clocker6633:
Go to the following link and download the Android sdk.

http://developer.android.com/sdk/index.html

When u unzip it u will find a folder inside labeled tools. Fastboot and adb are located there. It would be a good idea to place the entire, unzipped folder in the root of ur OS drive. U will then have to open a command prompt (in Windows click start, run and type in cmd). Once at the command prompt u will have to navigate to the Android folder. For example type

cd \ and enter.

This will take u to the root of ur OS drive. Let's say u called ur Android folder Android. You would then type

cd Android\tools and enter.

This will put u into the proper subfolder with the tools u need. At this point u just enter ur shell commands such as adb. Make sure ur evo is plugged in via usb and usb debugging is enabled. Hope this helps.
[EVO 4G Android Development] deviouskater:
To learn how to use adb use the idiot pr proof guide to learn how to install and run commands . Its in the section right before unlocking NAND.

Oh your welcome post above
[EVO 4G Android Development] iceman99393:
after i type the first line i get /sdcard/flash_image: invalid length
[EVO 4G Android Development] deviouskater:
have you put the two files on the root of your SD card from the first post. Make sure you extract it also
[EVO 4G Android Development] iceman99393:
yes sir, i did both of those. The sd card fix worked but i cant get the usb to work, the commands do nothing for me in commbot
[EVO 4G Android Development] blockhead428:
USB Issue

I'm confused about what exactly the USB issue was you were having Calkulin. I'm having an issue myself. After fully rooting my phone...actually after the last step of flashing the recovery.img to unlock nand, when I plug my phone into the charger, any charger, and then unplug it, my phone will continue to show that its charging. The led stays on and the charging indicator in the taskbar keeps going up and up. Strangely enough, the only way to fix it is to use ATK to kill everything, then immediately unplug it. Would doing your steps in post 1 fix this? Thanks for any help!
[EVO 4G Android Development] deviouskater:
not sure what you can do then. I read a couple of pages back that once he got sd fix. he transfered the pc36img.zip to his SD card (assuming thru a sd car reader) and reflashed from recovery and fix his usb problem.

nevermind it just fixed charging the phone.

have you guys tried to completely reflash thru clockworks recovery

or maybe try toast method thru adb. i already fixed mine so i can'T test these out :(
[EVO 4G Android Development] berkmanmd:
you saved my ass...thanks for the insightful post!
[EVO 4G Android Development] eurominican:
Thanks!

Thanks so much Calkulin for re-posting this info!! same thing happened to me and it helped me a lot!!
[EVO 4G Android Development] screamin69:
I can't figure out where to type that fastboot stuff, i got the same problem, it wont see my sdcard or usb. Im new to this with some real minor knowledge is there a way you could walk me threw this. Thanks
[EVO 4G Android Development] deviouskater:
you have to have ADB installed. Go to the idiot proof guide tutorial and it will show you how to install and run commands. The section right before Unlocking NAND
[EVO 4G Android Development] danitl:
Guys, i have the same problem, but instead of having the "Qualcomm CDMA Technologies MSM" showing in the device manager, i have them as "unknown device"...the solution posted isnt working for me. any idea??
[EVO 4G Android Development] danitl:
nathing happens when typing "fastboot oem enableqxdm 0" once i open my Comand promt... i need to type soemthing before that?? can someone address my question??
[EVO 4G Android Development] destevez1:
How do I do this on a MAC?
[EVO 4G Android Development] cordodor:
HUGE thanks to calkulin and sruon. that's enough to freak a guy out right there.
[EVO 4G Android Development] benshtc:
Holy Smokes I finally got it after two days of working on it. I had to do so much to do realistically so little to fix both the SD card as well as the USB issue. I never had android sdk on my computer so I put that on then figured out how to run the simple commands to run the sd card fix. Then on day 2 I went the whole route of connectbot download to phone open, I did get hung up on the ssh thing for a good while before I realized to hit the ssh drop down menu and select local and after that it was easy to get it reconnected. One piece of advice to those stuck is to make sure the extracted files that are in the extracted folder are removed and just the contents are placed in the root of the sd card. This was a really trying experience because you do so many things repeatedly and figure out along the way that either you don't have all the parts which are android sdk, the image files on the first post, and connectbot. A card reader that you can put into your computer helps so you transfer the files easily except the whole lets hide the sd card under the battery and make nearly impossible to remove thing. Wow I'm just so grateful that this happened to someone smarter than me to rescue my bootie. thanks again.
[EVO 4G Android Development] fredcatsmommy:
I finally did all of the above as explained above . . . . but still my USB is not working. it does see the USB debugging and it does charge, but it does not give me the connection option pop-up or connect to the computer or read the sd card as removable storage. I had no SD problems so I jumped to the USB fix. Any ideas? Any help is greatly appreciated.
[EVO 4G Android Development] bboy_201:
can you help!?

============================================================

I tried that before but it didn't work!

I will try again! Right now i need to manually download the HTC EVO drives for windows 7 since it will not do it automatically!

also when i tried the fastboot code in cmd it didn't recognize fastboot.

i know how access to my sd card o yeah!!!!! ty soo much!!!!! xda!!!!!!!

but is there away i can do the below without a rooted htc evo:

Open a terminal emulator(I used ConnectBot) and type

su

cat /sdcard/flash_image > /data/flash_image

cat /sdcard/mtd0.img > /data/mtd0.img

chmod 755 /data/flash_image or chmod u+x /data/flash_image

/data/flash_image misc /data/mtd0.img

reboot

i dont have permission it's denied!!!!!!!!!

so i would suggest anyone who has root to first try and get their usb working than work on there sd card!!!!!!!!!!! so you will not have this problem

im back to normal i can read my sd card and i can connect to pc thank you all
[EVO 4G Android Development] fredcatsmommy:
still no USB working for me. From the beginning I've not had a problem with the sd card; just can't connect to the pc. Anyone?
[EVO 4G Android Development] deffez:
Me too, anyone can help to make this steps with a phone without root please?
[EVO 4G Android Development] HeyItsDan:
I'm having this same problem. I typed "fastboot oem boot" into CMD but it gets stuck at < waiting for device >

Anybody have any ideas to get the computer to recognize the phone or how to send commands to fastboot from my pc?

Thanks.
[EVO 4G Android Development] skovy:
Can someone tell what I`m doing...I have no USB or SD. i`ve tried hard reset...wipe. no luck. I did fastboot and used CMD fastboot reboot...no luck. Says cannot find any file as such. I`m wanting to just get back to stock evo...rooted or unrooted...whatever is easiest to get back to. Help!
[EVO 4G Android Development] guesswhatimevan:
When i try to use the command "fastboot oem boot" it just says waiting for device. So i can't really continue with the guide.
[EVO 4G Android Development] MarcoEmerson:
I'm having the exact same issue. Ran the SD fix, even though my card worked, then used the custom CID generator. Followed the directions, but no change. Any ideas?
[EVO 4G Android Development] guesswhatimevan:
I tried everything and nothing would fix my usb problems, so i went back to the stock ROM and took it to a sprint store. They took the phone for an hour until they said they'll give me a new one.
[EVO 4G Android Development] kawasaki00:
This is what I did to fix my evo that I bricked, I always had flash but no usb, I was down to 5 percent battery and finally did this. I followed the guide here h**p://android.modaco.com/content/htc-desire-desire-modaco-com/309939/usb-brick-rickrolled-b0rked-fixed/[/url] and took the card out of the phone, I put it in a old blackberry curve, put the update .zip file on the card. Take it out of the other phone of choice and put it into the evo, flash recovery and apply update .zip find the file and flash. It fixed my no usb, it took me like 4 hours to figure it out. You have to have either another phone or a card reader because if you cant connect usb you can never ge the file to the card in the first place. Hope this helps for some. This file is for the desire but it also works with evo.
[EVO 4G Android Development] Mekishiko:
Repair Method for both SD card not being recognized and USB driver not installing (Was showing 3x Qualcomm CDMA Devices in device manager)

I was having some issues but it was my fault (for some reason I thought the file name was flash_img instead of flash_image

worked perfect though thanks!
[EVO 4G Android Development] efrommel:
How I do this????
[EVO 4G Android Development] roxtar21:
the command doesnt work for me :(
[EVO 4G Android Development] DavidTroy:
Thank you soooo much sruon! This thread is great.

I've been having a bit of trouble with adb and fastboot, but I got it to work with the ConnectBot terminal app.

I put the flash_image file and generated mtd0.img to my SD card via card reader. After patiently inputting all the code, it gave me an error ('not permited!) when I tried to reboot (even though I obviously had root permissions), so I just did that manually.

I've never been so happy to see that orange charging LED and Connect to PC prompt pop up after booting.
[EVO 4G Android Development] AndroidFileHost:
Need Major Help! Plz

It starts to read the pc36img but then goes to the main page. doesnt let me choose to update or not. Im stuck at 1.47. I bricked it last night and lost sd card and usb. I got the sd card working but not the usb. It need me to use terminal and issue su command but permission denied. I made the mistake of going back to stock and updating to the newest ota. I was thinking the ota update would fix my sd card but it didnt. I have clockworks mod but it wont work since im not rooted. I can only charge when the phones off and cant use the usb cable to connect to the computer and view files and use adb. I can get into the phone via fastboot but nothing else. My computer does beep when I plug it in but nothing else.

Thanks
[EVO 4G Android Development] androidrhodium:
sir, u neeed to have root, if so then u must have superuser white list from the market to give it permission to move files
[EVO 4G Android Development] mezkal24:
I keep getting "cat/sdcard/flash_image: not found" each time.

I have tried on connectbot and terminal emulator.

I can see both files via Astro file manager. (They are unziped)

Can someone help me please?

Thanks!
[EVO 4G Android Development] mezkal24:
Fixed my own issue. I was not spacing...
[EVO 4G Android Development] biged87:
3x Qualcomm driver

I was able to the SD card fix but when i go into recovery mode i cannot communicate with my windows 7 (32bit) pc. device manager shows 3 qualcomm cdma devices. i can't boot into android to do anything else. i have tried everything i can find and think of. Any help is greatly appreciated.
[EVO 4G Android Development] Calkulin:
I really need to update this thread and make the instructions a little clearer.

The USB fix will fix that, that's what happens when the USB port is messed up.

Make sure you have the files needed for the USB part on the SD before starting. Run those commands, reboot and it should be fixed
[EVO 4G Android Development] biged87:
1 clarification question

Thanks for the quick reply. I have the files on the SD card but doesnt the phone need to boot to run the commands in the terminal emulator? I've never used a terminal emulator but thought connectbot was an android app, not windows. thanks again for your help.
[EVO 4G Android Development] Calkulin:
Sorry I didn't read that part, just flash one of Toast's PC36IMG.zip and that will get you into Android to do the rest
[EVO 4G Android Development] biged87:
That was my first thought and i have redownloaded everything, but without success. i put them on a new sd card and when it should find them it says not found or wrong version. my guess is that since i have updated the radio 2.15.00 this no longer works the same. any thoughts? thanks again
[EVO 4G Android Development] pzztgotbagz:
nevermind comp was too low to charge fixed with your steps. works on froyo also.....for people having problems remember you have to extract botht the flash and mtd files to root of sd card
[EVO 4G Android Development] Alto101:
Also without USB

I followed the instructions here, rebooted and am still without USB. What do I need to do to get this fixed? Should I do a complete wipe and reinstall netarchy's 2.2 ROM? I do have my SD card working thanks to this thread:)

***Update*** I gave up on this for the night and updated my radio and FPS kernal and the radio update brought back my USB connection. Or maybe it is was the 10th reboot? I wish I knew the answer. Anyway, all is good right now - got SD card back and USB back! Thanks:)
[EVO 4G Android Development] biged87:
I am now able to get into android. apparently it won't recognize a 2GB sdcard to push the pcimg file.

Now i am trying to do the usb fix but get "permission denied" when executing the last command

/data/flash_image misc /data/mtd-eng.img

Does anyone know how to get permission. I was rooted so maybe im not anymore???

Any help is appreciated.

<Ok, i'm and idiot.... did not unzip the flash_image file. im new to android and somethings you unzip while some you dont... just assumed you didnt unzip this one since it didnt have a file extension. Key learnings:

1. If you want to use pc36img.zip you need to put it on a micro sdcard larger than 2gb, otherwise it wont read.

2. Unzip the files for the usb fix and then follow directions to the letter.

I've learned alot the past 24hours.

Many thanks Calk, I cant wait for you to release a 2.2 rom.>
[EVO 4G Android Development] Beejis:
Tried the usb fix and it's still not working, any idea what I should try next? Follow the directions to the T...
[EVO 4G Android Development] BIGWORM:
So this will fix my phone's inability to be seen by the computer? I hook it up to my computer, and I don't get the "Connect to PC" windows. It only charges the phone. I can't access my disk drive, so I can't root, nor am I rooted. =/
[EVO 4G Android Development] Beejis:
Mine doesn't even charge it anymore. Does this mean I need a new usb cable now?
[EVO 4G Android Development] amallama:
I tried these commands and after flashing netarchys kernel, I still dont have sd card access from the phone. Anyone know whats wrong?
[EVO 4G Android Development] BIGWORM:
Bump to this thread.

I'm getting a USB device not recognized error from my Windows 7 even as the phone is booting up. My computer can see the sd card no problem and so can my phone, seperately. I'm rooted on Evio ROM and tried the USB fix but it didn't seem to do anything. Any suggestions?
[EVO 4G Android Development] BIGWORM:
*double post*
[EVO 4G Android Development] bmwboyee:
I need help with this as well. I have followed the instructions and mtd-eng.img is still showing permission denied. Any help would be greatly appreciated.

*Edit: I feel silly, I wasn't entering cat. Rebooting now, will see how it goes.

*Edit II: Still didn't work. Still won't show on my computer. I'm starting to hate android sync as much as itunes. yuck.

*Edit III: It's WORKING!!! I tried a different usb cord and it worked!!!!!!!!!!!!!
[EVO 4G Android Development] BIGWORM:
Now here is what I don't understand:

I got this 2nd EVO as a warranty replacement because the first one wasn't seen by my computer. I get this one, it hooks up perfectly fine. It came with stock 1.47, so I simpleroot. Simpleroot takes it back down to 1.32 stock, and so I run simpleroot for 1.32, which roots my phone with NAND unlocked. I install EViO 2, update with the modified radio and WiMAX, and now I have the "USB device not recognized" problem with my computer. I just tried to go back to fully rooted stock (HERE), but I still have the same problem with "USB Device not recognized".

Am I gonna have to take this phone back, too?
[EVO 4G Android Development] Beejis:
Neither of this "fixes" worked for me. Everytime I flash a kernel from netarchy I can't see my sdcard and the "fix" doesn't correct it, and the usb "fix" didn't work for my usb cable so I just ended up using another usb cable.
[EVO 4G Android Development] BIGWORM:
I'm completely stumped, again. Now my computer won't pick up my phone at all...not even the "USB Device not recognized" error, anymore. It's just like the EVO I returned just a couple days ago. =/ Will wiping partition help?
[EVO 4G Android Development] Beejis:
After struggling forever with the sdcard fix, I finally came to terms that it isn't the fix that isn't working, it's my card. Every time I flashed a 2.2 rom and installed any of netarchy's kernels, my sdcard would not show up on my 8gb class 6 card.

I then inserted my 8gb class 2 card and loaded a 2.2 rom and netarchy's kernel and now I can see my sdcard. The problem is the card, not the kernel/rom. Even after reformatting the class 6 card it doesn't show up so it appears the card is shot.
[EVO 4G Android Development] Tourman1:
I went from a phone that would not mount the sdcard and USB would not get recognized in Android OS, to rooted + nand unlocked DamageControl 3.5.

This thread saved my phone!! :D
[EVO 4G Android Development] verngator:
I am also stuck at <waiting for device> after typing fastboot oem enableqxdm 0

Anyone stuck at this point able to get the command to work?

I did the terminal emulator commands directly first (for the first fix). They seemed to work successfully as they were at least recognized/no error message.

Then I tried the adb shell commands. Error is "device not recognized". So I can't run the fastboot commands.

EDIT1 - OK, I can consistently charge the phone from the wall and via USB, but I still can't run adb shell commands or get the computer to recognize the EVO as a drive. I could do these things before the 2.2 update (I'm running Damage Control) but now I cannot. I don't think this is a DC issue as I see folks with other 2.2 versions having the same issue.

Anyone get to this point and find a fix?

EDIT2 - tried everthing except new cable - I am doing this while out of town/on vacation and so will try again once I"m home and have access to the OEM cable. Arrgh, this is driving me crazy! No adb shell commands are recognized by the device in fastboot. At least I can charge the phone - that's the important part for now.
[EVO 4G Android Development] rajah sulayman:
So I followed the OP to the letter and every step of the way worked fine without issue, but I'm still unable to charge via USB unless the phone is powered off. SD card is fine, it's just the charging that isn't.

Suggestions?

EDIT: Rebooted my phone a third time while poking around in fastboot and now it appears to be working. I have no clue why it's working as I haven't actually done anything to it since the first time, but I'm not about to look a gift horse in the mouth. :)
[EVO 4G Android Development] GrooGrux:
Works like a charm! Thanks a ton for the post.