yashsingh1/xdaforums huggingface dataset:
[AT&T HTC One (M7)] telephonemike:
So I have tried everything to get the Win 7 & Win 8 PC to see the phone so that I can side load a ROM after screwing my HTC One. I'm unable to load the ADB driver so allow me to load using the all in one tool.

Can anyone help?
[AT&T HTC One (M7)] bdorr1105:
Hey man go Here and Download Android SDK....

1. After Download, go to My Computer, your C Drive

2. Create a folder named Android

3. Extract the Android SDK folder inside the Android Folder you just made

You should have the following in the folder only

- eclipse

- sdk

- SDK Manager.exe

4. Double click and open SDK Manager.exe

5. under the 4.1.2 and 4.2.2 section, install all the updates possible and it will show installed next to everything under 4.1.2 and 4.2.2

6. Restart Windows after all the updates

7. Open Command Prompt

8. cd c:\android\sdk\platform-tools

9. type adb devices, if you see your phone then reboot to recovery

10. In recovery, type adb devices, it should show your device in recovery, as a last resort you can use the adb push command

11. However, if you want to tstill try sideload, click advanced

12. Swipe to start Sideload

13. type adb devices and if it shows your device and says Sideload, follow the rest of the instructions
[AT&T HTC One (M7)] telephonemike:
Thanks for all the detailed info.

I am now not able to get the phone into bootloader mode only recovery. Using ADB device commands I cant detect the phone.

Has made a crappy Friday even worse.

Maybe its time to start drinking?
[AT&T HTC One (M7)] bdorr1105:
You sure the drivers for your phone are installed?
[AT&T HTC One (M7)] telephonemike:
So I did have the HTC drivers installed but the phone would not let me do anything other that go into the CWM recovery. For some reason I decided to try it another time before I went out for lunch. WHAMO I'm in bootloader mode and I'm using the all-in-one tool kit to push TWRP to the phone. Once I had that in place I was good to push the GE ROM to the phone and flashed it.

I am back on the air thanks to the great contributions of XDA members.

Can't say thanks enough. I should tell you that my "haven't bricked a phone that I couldn't recover" ego is now back in its undeserved place:D
[AT&T HTC One (M7)] bdorr1105:
Hey Man I really appreciate and I got your email.....Just here to help and def ask questions as well when I am stuck. Been where you where and I am 100% glad you were able to get your phone back up and running, makes you sweat bullets.
[AT&T HTC One (M7)] Tinchoska:
i know this is not the right forum, but its about sideload and adb, i am trying to recover my lenovo a2109 and adb keeps telling me this

C:\Android-sdk-windows\sdk\platform-tools>adb sideload paranoid.zip

adb server is out of date. killing...

ADB server didn't ACK

* failed to start daemon *

error:

any idea?
[AT&T HTC One (M7)] bdorr1105:
refer to the top post of this page......step by step to ensure your adb is up to date....you need to update all the 4.1.2 and 4.2.2 stuff

EDIT* You can also refer to the 1st POST in the OP that says Before you start and click show content to see some screen shots
[AT&T HTC One (M7)] (((Pipo 79))):
My Htc one come back, tks 4 all................
[AT&T HTC One (M7)] bdorr1105:
Glad to hear!!!
[AT&T HTC One (M7)] kasper1977:
mike

pushing the rom worked better for me also then flashed it but took me for ever to figure out I didn't have my rom zip in a regular file don't know why but would not push or sideload till rom zip was in an unzipped file
[AT&T HTC One (M7)] bdorr1105:
Thats weird never heard of that before
[AT&T HTC One (M7)] born_fisherman:
I don't see this in the OP, but after the zip file is sent to the phone, the zip file is called "sideload.zip" - I'm on TWRP 2.6.1 ? I believe and this is what the zip was called
[AT&T HTC One (M7)] bdorr1105:
Yes you are correct
[AT&T HTC One (M7)] born_fisherman:
I could see how that would confuse people when they sideload xyz.zip, but then when they look for xyz.zip, they don't see it. Maybe add another line in the op saying the file is sideload.zip? :thumbup:
[AT&T HTC One (M7)] bdorr1105:
I didn't see how because you are using sideload so if you see the zip its gonna be the same name of the program you were just using and your memory is supposed t be blank or empty with nothing on it....So when you sideload the zip it will be the only file to flash on your phone. Thats all I am saying but you are the only one that brought this up but if any others do I will def keep you in mind and post something in the OP about it. I appreciate your concern and feedback
[AT&T HTC One (M7)] Dafer12:
When I type ADB devices it doesn't show HTC(other random letter) it just says "List of devices attached" any help would be appreciated

Thank you Daniel
[AT&T HTC One (M7)] bdorr1105:
Its not listing any devices attached at all? How about straight from the Main Recovery Screen...Does your phone display then?
[AT&T HTC One (M7)] jdep1:
I have the same issue I get devices not listed. HTC syn opens & my computer recognized the device as HTC but I can't do any commands. I accidentally deleted everything on the phone but it looks like adb is the only fix. Im new to adb any help would be appreciated.
[AT&T HTC One (M7)] bdorr1105:
EDIT* Refert to Post #2 - IF ADB Does Not See Your Device for better instructions

If you don't already have Android SDK then you need to get it. Go Here and download it.

Extract the contents of the zip to your c:\ in a folder named Android

Inside that Android folder should be an eclipse folder, sdk folder, and SDK Manager..

Open SDK Manager and update all the 4.1.2 and 4.2.2 stuff and even 4.3 - This will ensure all the binaries are up to date and ADB should work with no issues

Then follow the OP, remember, you have to place the zip you want to push inside the platform-tools folder because thats where ADB will be pushing the zip from...please ask more questions if you need
[AT&T HTC One (M7)] jdep1:
I did everything the right way. the issue was is with my hct driver certificates on windows 8. I did everything on a windows 7 & sideloaded successfully.
[AT&T HTC One (M7)] bdorr1105:
I did not know you were on windows 8 but I have not had an issue with 8 either. Glad you have it figured out
[AT&T HTC One (M7)] bdorr1105:
Read troubleshooting post 2, you are not entering the command properly from what it looks like... I am at work but at quick glance that is what I am seeing
[AT&T HTC One (M7)] orb3000:
Great guide!

Thanks a lot!

This saved me:
[AT&T HTC One (M7)] bdorr1105:
Good stuff bro
[AT&T HTC One (M7)] Chaios:
THANKS

Thanks sooo much!!! it helped a ton!!1:D:D been stuck here for hours trying to get a rom on my htc one:D accidentally erased the rom while wiping data.
[AT&T HTC One (M7)] bdorr1105:
Glad you are back up and running bro
[AT&T HTC One (M7)] quantumtransfer:
Hello,

I've followed all the directions in post 1 and 2. I've also taken some advice for instances people were able to get it working using other methods yet similar. I however have downloaded the SDK and unzipped it into C: with a folder named android with 4.1., 4.2, 4.3 all downloaded including the extras. Also downloaded HTC sync to see if there were additional drivers that i may need. At this point when i preform adb devices, it shows no devices and also windows doesn't recognize it as being installed. I've tried all the driver ideas and all your ideas.. pretty much. I am S-OFF, and my bootloader is unlocked with TWRP installed for recovery. Not sure what else to do, i think windows just can't see my phone in side load for what ever reason.. any suggestions would be great.
[AT&T HTC One (M7)] bdorr1105:
Why are you making so many folders, Extract the ZIP and then place it on your C: drive. Dont change anything else about it. Open SDK from insde the folders you extracted and update them all. Make sure you have USB Debugging enabled and your HTC Drivers are working properly on the computer. If you can't get adb to recognize your phone you got some big issues.
[AT&T HTC One (M7)] avinashhh:
adb push error closed

When pushing to file with the following code : adb push file.zip /data/media, it says; error: closed.

Why is this happening?

thnkx
[AT&T HTC One (M7)] lejurassien40:
yeah

Mister,you save me from a bad trip!!! Thank you very much!!!
[AT&T HTC One (M7)] bdorr1105:
Glad it worked out man...YW
[AT&T HTC One (M7)] lifewithsuzy:
I have an Sprint HTC One that has been unlocked and rooted since last spring and worked flawlessly. Two days ago I flashed what I read was a stable 4.3 ROM and suddenly it would only open in bootloader. In the process of trying to fix that everything was wiped, OS, etc. If I tried to go into recovery, TWRP was previously installed, it would kick me back to the bootloader. So through fastboot I was able to reload TWRP, the latest version, and then get back into recovery with the intention of sideloading a ROM. I have the most current drivers and SDK packages installed and device manager shows Android Composite ADB Interface. When I attempt cmd adb devices it responds with "list of devices" and nothing else. When I go into recovery and execute cmd adb devices it responds with "FAxxxxxxxxx recovery". When I attempt to sideload it reads quickly "failed" and shows me that it can't mount data/internal storage/system. I then go to mount and it only gives me the option of cache. After reading that somebody had luck with adb push /data/ in recovery I tried it and was able to get a ROM into data. Through advanced/file manager I moved the zip to cache and then did the install. I've tried three different ROMS - CM 10, MOKEE, and a stock. The stock fails to install and both the CM and MOKEE ROMS are in boot loops. I have re-downloaded, re-installed, re-flashed all associated software :eek:

I have read more threads in the last few days looking for an answer than I have since my first root pre android with windows 5
[AT&T HTC One (M7)] bdorr1105:
You have to upgrade the bootloader to 4.3 and the 4.3 ROM would have booted without flashing anything. I assume you were a 4.1.2 or 4.2.2 ROM before you flashed. I am not sure why recovery can't mount that's kind of weird. I know there is a toolkit that you can use to relock your bootloader and install the stock RUU. Have you tried that yet? You can always get root again and start from square one but your bootloader needs to match the version ROM you are flashing. So if you were coming from a non 4.3 ROM than thats what I would suggest. CM10 will probably boot after you do this. Post the links to those ROMs so I can see the flash instructions
[AT&T HTC One (M7)] lifewithsuzy:
I got it working!!! After reading your post I started looking for ROMS that were 4.1.2, which is what I was prior to this. As I said before I was able to push files over ADB but I found out that there was a size limit. I could push a file that was @200mb without a problem but anything bigger would not show up. The CMD prompt would state the the transfer was a success but the file would not be there. So this became my next problem given that most of the ROMS I was finding were 700mb+. After more searching I came across a thread were someone had an issue because their phone was updated to 1.31 and they had to revert back to 1.29. I was at 1.31 also. This person listed the directions they found to revert back and so I tried it and whalla! The RUU's that I had been trying wouldn't work because they wanted me to be 1.29 and I wasn't figuring that out. The all-in-one program didn't help much because it requires debugging ON and I had no OS to even access that option so it just wasn't finding my device. It is working wonderfully again and I quickly did a nandroid backup and saved it to the cloud as well as my laptop to avoid this nightmare in the future. All I did to get into this mess was flash Maximus 4.3. It walked me through a setup and then rebooted and went to bootloader were it lived until I fixed it.

Thanks for your help you got me moving in the direction to salvation
[AT&T HTC One (M7)] bdorr1105:
Thanks for the really detailed feedback and I am glad that I was able to help.... Happy flashing again
[AT&T HTC One (M7)] TaintedCross:
So I'm already in C:\sdkandroid\adt-bundle-windows-x86_64-20130917\sdk\platform-tools in cmd I type adb sideload nameofzip.zip and it tells me cannot read zip.
[AT&T HTC One (M7)] noobsquared:
Is your zip file in the same folder as adb?
[AT&T HTC One (M7)] bdorr1105:
Don't type nameofzip lol, you have to type the exact name on your actual zip file and it's case sensitive... I found you want rename your zip files to rom.zip and then type adb sideload rom.zip and you will be fine
[AT&T HTC One (M7)] TaintedCross:
I'm not an idiot... I did type the name of the zip.. I said nameofzip as an example...
[AT&T HTC One (M7)] bdorr1105:
no one said your an idiot, its a text interpretation so cool your jets or just don't ask for help in this thread if you want to be a prick.....your not entitled to help, your bring offered it
[AT&T HTC One (M7)] TaintedCross:
No ones being a prick, so cool your jets bud.
[AT&T HTC One (M7)] Nickkrommenie:
Dude, i got a question.

I accidently wiped everything on my HTC One. (OS included) ( I was running Android revolution)

However, i managed to push a ROM to my HTC

However, now i'm stuck at the boot logo

I have tried different ROM's

Can you help me out?
[AT&T HTC One (M7)] chrisxpratt:
what if you dont have twrp on your phone? as in, i have absolutely nothing on my phone...
[AT&T HTC One (M7)] bdorr1105:
Sorry I have been banned from XDA from a couple days... It you pushed your original ROM it should boot again.... What base are you switching to, what I mean are you going from 4.1.2 to 4.2.2 or 4.3 or even anything 4.4 out there. Male sure you see if there any instructions for upgrading your bootloader because that will cause the phone to get stuck. Let me know if you are still needing help. Today is the first time in 5 days I could get on since being banned
[AT&T HTC One (M7)] clsA:
that's why you have a bootloader

if you lost your recovery and everything, just start over like it's a new phone

The steps are unlock bootloader [MENTION=1676777]HTCDev[/MENTION]

- fastboot flash recovery (fastboot flash recovery TWRP.img)

- recovery flash root

- recovery flash Rom

from TWRP you can also use ADB Push to get your rom and SuperSU to you phone storage.

the command is-> adb push Rom.zip /data/media/0/

and adb push SuperSU.zip /data/media/0/
[AT&T HTC One (M7)] irish.iolar:
What if you can't authorize adb and u just get no devices in sideload and it shows up when in the bootloop but it says "unauthorized" ?
[AT&T HTC One (M7)] boost91:
Maybe this will help somebody:

I could never find the file after I had completed the ADB Sideload. At the end of the process the power button would not turn the screen on so I would have to use ADB reboot command but I could never locate my zip, so I tried again and made sure to have the screen on during the end of the sideload process and once completed it kicks it straight to Aroma. Hope this helps someone out. Also thanks to the OP.
[AT&T HTC One (M7)] vectorer:
can I also put a boot.img file in the sideload?
[AT&T HTC One (M7)] vectorer:
no joy!!

after going through and trying everything the sideload starts then at 22%.....

* failed to write data 'protocol fault <no status>' *

what the hell is that ??
[AT&T HTC One (M7)] Davek30:
I cannot get sideload to even start. After I change the location it says "adb is not recognized as an internat or external command, operable program or batch file

I don't know what to do as im doing it how I have done it before.
[AT&T HTC One (M7)] bdorr1105:
ensure you are Chaning directory in command prompt where adb is stored....ie to platform-tools, ensure adb debugging is on and also make sure in device manager it shows your device under adb and not unknown, drivers would then be an issue
[AT&T HTC One (M7)] gmfeny:
I just tried this 3 times and it keeps failing. I wiped everything on my phone on twrp by accident and I need to sideload a rom. Can anyone help me. Im on the latest version of twrp
[AT&T HTC One (M7)] bdorr1105:
Does your phone display in recovery by chance where you do show adb devices
[AT&T HTC One (M7)] sbrownla:
Please add it to the OP

PLEASE add that to the OP! It was so helpful. Even if it's in parentheses. I

dug down through to the 5th or 6th page until I found it, and yes, knowledge is power, but still ... it was extremely helpful.

:eek:
[AT&T HTC One (M7)] YoungStarDC:
I accidentally wiped everything from my HTC One which was previously running Android Revolution HD 31.0. I tried using ADB sideload from TWRP recovery, which is still on my phone, and when typing ADB devices, I do see a random string of numbers with the text ''sideload'' next to it. However, when I try to sideload the rom I get an error: closed or cannot read 'sideload' message. Any ideas? I really need my phone to work..:confused:
[AT&T HTC One (M7)] chrisxpratt:
ugh, having problems and im hoping you can help :(

when the phone is plugged in and im in the bootloader screen the phone shows up as Android USB Devices: MY HTC. however, when i do a cmd prompt where all my files are, adb devices lists nothing. but when i type in fastboot devices, it shows up.

now when i go into recovery (TWRP 2.6.3.0) and go to do sideload, i swipe to start sideload, and at the top it says ADB Sideload Complete Failed and a whole bunch of E:unable to mount etc. when im in the cmd prompt and do the 'adb sideload .zip file, it says error:closed and thats it.

any ideas???

edit: i thought id add the fact that adb devices and fastboot devices both work when im in recovery. but only in recovery. if i try those while its in the bootloader adb devices is the only one that doesnt work. dunno if that means anything.

ive also tried adb push .zip while the phone is in recovery and it acts like its installing the file, completes, i reboot, and nothing. no file anywhere. TWRP says my internal storage is 0 MB so obviously it didnt transfer.
[AT&T HTC One (M7)] crlowryjr:
If you have an OTG cable, put a ROM on a USB thumb drive, get into TWRP, mount the usb-otg and then flash that way... I intentionally wiped everything today and that's how I got a ROM back.
[AT&T HTC One (M7)] bdorr1105:
Ok you do not have an OTG, that is what this forum is for. Ensure all software is up to date including drivers and all the zips are in the proper directory to adb push and adb sideload... You need to ensure the adb drivers are working properly. Ensure that in device manager you don't see an unknown device but a device that shows ADB driver or similar
[AT&T HTC One (M7)] KillingspreeRift:
Huge thnx m8, worked perfectly!! :laugh::laugh:
[AT&T HTC One (M7)] bdorr1105:
Glad to hear thanks for reporting back
[AT&T HTC One (M7)] yoitsjustin:
I keep getting "Error:closed" when I try to ADB push. When I ADB sideload it says Corrupt zip on my phone, freaks out or just doesn't go through. What should I mount? Am I doing this right? Sprint LG G2, but should have the same idea as this..
[AT&T HTC One (M7)] uscommander:
I would assume pushing a 2gb rom would take a long time.

I pushed a few small test files and they show up on the sdcard. On the small files the speed in kbps would show up immediately. On the 2gb rom file it just sits there. I have been letting it run for 10mins and nothings changed. Is it normal to take longer than 10mins?
[AT&T HTC One (M7)] yoitsjustin:
Try redoing it. Mine just sits at 83% and if I mount system then it says "file invalid" or something. ADB is annoying ugh. Good luck!
[AT&T HTC One (M7)] Udonitron:
Any ideas on why my device is no longer found?

ADB seems to not see it and I am in this very predicament now where it was late and I wiped my phone completely and as I hit it I did big "WTF am I doing!?" :(

Without it being seen I cannot sideload any ROM to get me back up and running.

My USB OTG cable doesn't want to work in TWRP Recovery...says it cannot mount it.
[AT&T HTC One (M7)] Udonitron:
OK my laptop worked, PC didn't however no matter how many times I download and install the stock rooted 4.3 Sense it just boot loops.

Gets the the lock screen building photo and when I swipe up there is the HTC logo and it sits there for about a min or more then reboots.
[AT&T HTC One (M7)] bdorr1105:
Sounds like a ROM issue, once you are able to flash then this thread has done the job. Is this the first 4.3 ROM you tried
[AT&T HTC One (M7)] Udonitron:
I just managed to RUU the legit Sprint zip.

Cool thing is not only does it work but it also notified me that it had flipped to International Mode and my GSM SIM works without a hitch! :laugh:

Also did the OTA updates to 4.3.
[AT&T HTC One (M7)] tale419:
delete
[AT&T HTC One (M7)] tale419:
TWRP not flashing Rom after installing zip

I used adb to put the zip on but can't install it. Error updating partitions. I tried fixing permissions but it says unable to do that after factory reset (which I needed to do before installing a rom??)
[AT&T HTC One (M7)] bdorr1105:
What version ROM were you on and what version are you trying to flash.... You must stay on the same version unless you updated the bootloader. If you were running 4.3 then stick with that... Run the last known good ROM
[AT&T HTC One (M7)] tale419:
I was on 4.3 before I accidentally deleted the OS. Which lead me to this thread. Stuck after sideloading the rom.
[AT&T HTC One (M7)] TopoX84:
Try sideloading /pushing this one,

http://xdaforums.com/showthread.php?p=45958462 ,

I did the same thing a while back and this Rom saved my life
[AT&T HTC One (M7)] bdorr1105:
He is good to go again