yashsingh1/xdaforums huggingface dataset:
[T-Mobile HTC One (M7)] bravo261:
thanks...the toolkit is what worked for me. using the command line was what always gave me errors, until i tried the toolkit
[T-Mobile HTC One (M7)] bdorr1105:
glad it worked and glad the toolkit worked as well. Good stuff
[T-Mobile HTC One (M7)] Z51:
this just saved a customers phone

thanks!
[T-Mobile HTC One (M7)] bdorr1105:
Awesome thanks for letting me know
[One (M7) General] bdorr1105:
[HOW TO] ADB Sideload/Push if you Wipe Internal Storage & No ROM to Flash [19 May 15]

How to Sideload in TWRP if you erase your Internal Memory and don't have a ROM to Flash or Restore

Warning!

#include
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/

Requirements

#include
/*
* Unlocked Phone @ HTCDEV
* Custom Recovery
*/

Before You Start - Update Android SDK - How to set up Android SDK (ADB)

Instructions

If You have any Troubles with ADB

Koush Universal ADB Driver - Works on Windows 8 - Thanks xeroxide

YouTube Video for ADB Help

How to install ADB Drivers for any Device

​

​

​
[One (M7) General] pablo11:
Thanks for spending the time to write this :good:

I used the all in one toolkit and it worked perfectly.

This is great for people who don't know about it.

Cheers
[One (M7) General] gianton:
Great guide for newcomers!
[One (M7) General] wm2001wm2001:
OK I laugh hard when I saw ur file name is almost the same as I do. ARHD 10.2.

Is that becuz it's too long to type in? LOL

Nice tutorial though.
[One (M7) General] bdorr1105:
Thanks guys appreciate it.... Lol yeah man the file name is way too long haha
[One (M7) General] dsymbol:
You're God sent.

I bricked my friend's One & luckily found this post.

Everything's fixed.

Thanks for saving the One.
[One (M7) General] bdorr1105:
I am glad you were able to fix your friends phone bro always good when you dodge that bullet lol
[One (M7) General] isalas16:
As a note I had to do this last week when I upgraded to the new 4.2.2 roms, and I was unable to sideload the rom until I rename it to something smaller.

So instead of something like "rom_trickdroid7.5" I just renamed it to "rom.zip" and at that point sideload command worked fine.
[One (M7) General] bdorr1105:
OK so what you need to do is place the zip in your tools folder in andsdk. I am not sure if you have a platform-tools folder where there is an adb.exe file but whatever folder you have that in the zip also needs to go.

In recovery make sure you navigate to advanced then sideload and then swipe to start sideload. Once sideload is enabled then you type in the command prompt adb devices... It should show your device and have sideload next to it. If that is what you see last step is type

adb sideload nameofzip.zip

It automatically hoes to the root of your internal memory
[One (M7) General] TarekElsakka:
I changed directories to where the adb.exe is (inside platform-tools) and ADB Sideload is already started in TWRP. However, whenever I type "adb devices" it only says "List of attached devices" and nothing under it. Whenever I try flashing the ROM, it says error: device not found. What am I doing wrong here? I even changed the name of the ROM to rom.zip to make it shorter as per a suggestion in the first page of the thread, but that didn't work either.
[One (M7) General] TarekElsakka:
Okay now I realize my device isn't actually recognized, although it works fine with fastboot usb.

What do I do? I tried having windows automatically search for drivers but it didn't find anything.
[One (M7) General] TarekElsakka:
Okay after doing some more reading I realized I never actually opened SDK Manager, and when I try, it just opens a black command prompt window and then shuts down. I then came across this article and realized I need Java JDK drivers before I can actually run SDK Manager and then follow the rest of the tutorial. Maybe that is the problem??
[One (M7) General] xeroxide:
are you trying to use adb while fastboot is running on the phone? if so that won't work.

you need to have your phone in recovery mode or during normal operation for adb to work.

also make sure no other instances of adb are running use task manager (through ctrl+alt+del) to check and make sure no other instance of adb is running. i had the issue where it wouldn't kill previous iterations of itself.

*edit*

hmmm i just noticed your screenshot.

looks like you may need to reinstall the htc drivers, alternatively you could try to install koush's universal adb driver.

could very well be, if the sdk isn't properly installed - chances are the drivers aren't either. have you tried manually updating the drivers for the "unknown device"?
[One (M7) General] bdorr1105:
Hey Man, you need to make sure you install HTC Drivers and make sure the phone is recognized by the computer. Also, open sdk Manager and download updates, I will post a screen shot, I am using the same adb bundle you are. Update all the 4.1.2 and 4.2.2 APIs and next to each item under 4.1.2 and 4.2.2 make sure it says installed...May help with adb recognizing your phone.

The only issue right now is your phone being recognized by adb while in sideload because once it is the process will work I can promise you that.

Let me know if you have questions, I would get back to you sooner but I am in Hawaii and where its 11pm on the east its only 5 18pm here
[One (M7) General] TarekElsakka:
Yeah, thank you very much guys. I was playing God of War and waiting for HTC Sync Manager to download so I can install it, haha. Everything went fine and the rom sideloaded 100%. Now I rebooted into recovery but I do not know where the rom.zip is located so I can install it? Any ideas?

---------- Post added at 05:31 AM ---------- Previous post was at 05:26 AM ----------

Never mind, I just realized it should be in the sideload.zip file. I am so dumb today.

Thanks for all your help, guys.
[One (M7) General] bdorr1105:
Glad everything worked out man that is what is important. The forum should always be about helping others
[One (M7) General] Vodka69er:
Quick question guys, does sideload work with Cwm recovery too ?
[One (M7) General] bdorr1105:
I have never used CWM but if you boot into recovery, look for ADB Sideload through the options you have in CWM Recovery, if you do enable sideload and verify its connected and recognized by the computer by typing adb devices and it will show you your device with sideload. If it shows that then yes it will work
[One (M7) General] Matt:
Typo, you wrote one instead of on ;) how ironic.

Also, I have reason to believe that your screenshots are falsified, due to the non presence of a 'ARHD_10.2.zip' in your platform-tools folder. I can only imagine that you meant TrickDroid as shown, and got a bit excited and typed the wrong name (:: You also don't seem to have pressed enter :/ simple mistake my friend.

Have a nice day!
[One (M7) General] bdorr1105:
Actually because the first time I flashed it I used AHRD hoping it had wifi calling, it is my screen shot. You are not making any sense with your point and it's meant to showcase what I typed genius, I also did trick after AHRD. Learn how to read directions and you to one day may be smart enough to do what I did from reading other instructions and trying it out. Have a great day
[One (M7) General] Matt:
It's too* :)

Read my PM, cause I wasn't being negative. My sense of humour, like [MENTION=1190271]makbil[/MENTION] is always telling me, doesn't appeal to some :p
[One (M7) General] bdorr1105:
It's fine don't worry about it
[One (M7) General] law16:
not sure whats up but keep getting this
[One (M7) General] bdorr1105:
If you are having issues, open sdk manager and download all the 4.1.2 and 4.2.2 updates and restart the computer. Then open a command promt and change directories to where you have your adb stuff at. While in Recovery, go to advance and touch adb sideload and swipe to start...It wil say starting and then you type adb devices to verify the computer sees your device connected. It should show your device and then Sideload. After that you are solid. Thats is what happened to me also
[One (M7) General] doctorgallo:
Great guide thanks. Got the idea of wiping everything on the phone and sideload a rom to get a fresh start
[One (M7) General] bdorr1105:
Thanks man appreciate it
[One (M7) General] law16:
Installed adb on another machine and it worked thanks for the help
[One (M7) General] bdorr1105:
Glad to hear it man and no problem!!
[One (M7) General] aburobeen:
Yes it works fine. I tried it myself.

Thanks guys for the guide
[One (M7) General] bdorr1105:
Thanks for sharing about CWM
[One (M7) General] devildog08:
Thx Bro, your guide saved me from a gr8 trouble. Accidentally deleted everythng through recovery and nothing was working after that, neither I was able to install any custom ROM nor through RUU. But your guide worked perfectly, Thx again for your help.
[One (M7) General] bdorr1105:
No problem bro I am just glad it worked, me and a buddy of mine been there before so I know exactly how you felt man. Glad it worked
[One (M7) General] Cloudyherb:
So I accidentally wipe my system without realizing I also deleted a backup of the rom as well, I am trying to sideload this file, however I am stuck at my cmd.exe.

Upon changing directories and locate the correct adb.exe, I have also updated the SDK to the latest as suggested by OP. (They are not in the same folder)

I renamed my rom.zip to something short.

then when I start sideload in TWRP, (it saids starting adb sideload feature)

I then type in my CMD.exe for adb devies. which it saids the device is connected but it said 'host' rather than sideload.

I tried to close my cmd and reopen, reboot my phone into recovery again but it still won't work.

Also restarted my SDK, anyone have any ideas? I should have the latest driver installed, but in MY COMPUTER, it doesn't show as HTC ONE, it shows as a removable hard disk that cannot be opened.
[One (M7) General] bdorr1105:
Something doesn't sound right about how your phone is connecting to your computer. It def should not be mass storage. It needs to be recognized as in sideload mode or it will never work man. Try getting the latest HTC One Drivers and installing them and seeing if the phone is recognized again
[One (M7) General] Cloudyherb:
Thank you kind sir, I will give that a shot,, I have work in about 2 hours and 30 minutes, I just wish I could sideload it before then. I just rebooted my computer, so shouldn I uninstall my current HTC sync manager? Then download the latest one from the HTC website? Does the HTC Sync manager contains the drivers that I needed?
[One (M7) General] descenpet:
Device manager showing 1 mass storage and 1 android usb device is normal. Adb seeing it as host is not normal. But Ya if it does not show as sideload, it won't work

---------- Post added at 05:28 PM ---------- Previous post was at 05:23 PM ----------

You don't need sync manager itself. Sometimes it is known to cause some issues itself. Sync manager installation is 2 steps if you noticed, it will first install drivers if you don't have drivers. You can actually cancel after that.

If you can't get sideload to work, your other option is to just adb push the zip to your phone
[One (M7) General] Cloudyherb:
According to the adb help guide upon putting in an error command, how do I type the adb push zip? since the zip is in my adb.exe's folder, I do not need to type any extended directories path?

For example:

device commands:

adb push <local> <remote> - copy file/dir to device

Sorry I am a beginner in cmd commands....
[One (M7) General] descenpet:
If you want to try adb push, you device need to be in normal recovery mode(not sideload) and adb devices should list it as recovery. Then use this command to push

adb push rom.zip /data/media/0/
[One (M7) General] Cloudyherb:
eeeekk, I will give that a try, since my device was under as host instead of sideload or recovery (before i rebooted my computer), This really give me an unpleasant feeling, more like a chill down the spine....(Kinda scare to face the truth now...)

I have just finished download the sync managers, I was uninstalling it as I was reading your comments, but it seems the device is still able to install its own driver anyway while in recovery mode..... :S

I am installing the newly download sync manager as we speak.

I will update very soon.

Many thanks for the informative help again.
[One (M7) General] bdorr1105:
You are not using adb push commands that is why you are getting an error.

Open SDK Manager and update all the 4.1.2 and 4.2.2 binaries, should have an install next to it....Once all the 4.1.2 and 4.2.2 are updated from opening sdk.exe, then all you literally have to do is this

adb sideload nameofzip.zip (the name of your zip file thats in the adb.exe folder) DO NOT USE PUSH, just literally --> adb sideload nameofzip.zip
[One (M7) General] Cloudyherb:
So I was tinkering around with it a nit more after reinstalling the sync manager,

nonetheless, I immediately typed in adb devices, to my relieve it shows as recovery. Upon seeing this, I then hop to my phone and turn on the sideload features, but this time on my phone it mentions the command line E: Unable to mount '/usb-otg' and it repeated 5 times before saying Starting ADBsideload feature...

it looks like this.

Updating partition details...

E: Unable to mount '/usb-otg'

E: Unable to mount '/usb-otg'

E: Unable to mount '/usb-otg'

E: Unable to mount '/usb-otg'

E: Unable to mount '/usb-otg'

E: Unable to mount '/usb-otg'

Starting ADB Sideload feature...

And that's it, on my cmd adb devies it still say it is host. and I cannot mount USB-OTG manually from the mount option in TWRP main menu. (Cahce, Data, System are or checked, except USB-OTG and it won't respond upon selection)

This is just for anyone's interest and information for possible troubleshooting if similar case occurs in the future

I am going to go ahead and push it. Thanks a bunch!

---------- Post added at 08:00 PM ---------- Previous post was at 07:57 PM ----------

Sir, I have updated all necessary files already, all API 17 and API 16, which means 4.2.2 and 4.1.2 altogetrher, they are all installed, even the documentation, I also have android support Library and googgle USB driver.

Now should I hesitate to push or not? since pushing it is my last resort, I can't sideload it when it says my status of my device is host rather than Recovery or Sideload....

Unless the SDK binaries file and adb.exe needs to be in the same folder?
[One (M7) General] descenpet:
Push works just like copying the zip to your phone. It is valid and proven to be working workaround for those that have sideload problems. I have no idea why he is so against it. You can go ahead and try pushing if you have things to do later. It could save time rather than trying to solve the mysterious host mode issue.
[One (M7) General] bdorr1105:
Who said anyone is against it, you have your way and other people have their ways, don't be a jerk for no reason, this is a sideload thread so beat feet.
[One (M7) General] descenpet:
when you said DO NOT USE PUSH in caps anyone would assume you are against it. fine, it's your thread so suit yourself.
[One (M7) General] bdorr1105:
If you can use push do it, it will also copy today the zip you just need to know the correct paths... You still need to place your zip in the same folder, mine happens to be in platforms-tools, just ensure you have the correct paths and you are good.

Make sure if you try sideload you hit advanced the touch sideload then swipe to start the sideload service. After you swipe type adb devices and see if it says sideload. Either way should set you up good
[One (M7) General] bdorr1105:
Yea I said do not use PUSH commands because if he was in sideload mode it would not have worked. Nothing against push so chill
[One (M7) General] descenpet:
i said the device should be in normal recovery mode when i suggested pushing. :)

it's cool, i just wanted to help him get his phone working asap coz he seems to be pressed against time.
[One (M7) General] Cloudyherb:
Gentlemen, thank you for all the helpful input and facts, I have successfully push the zip instead of sideload, but thank you for OP for sticking around too. Unfortunately the sideload doesn't work for me even I made most of the criteria, I understand your instructions, I have followed through, maybe something is wrong with my phone's setting and it ain't your fault. Mine is showing host instead of sideload, so something was wrong with it i guess, after this I am going to do another wipe of SD card, I will back up this time of course, to start afresh. cause i tried to install my file while I was still pushing, I didn't know it would prompt me and told em it was finished, there were like 180 mb of space just lost, possibly as cache....

But my case is closed and resolved now. thank you again to the senior members. Hope you all are enjoying this lovely HTC One phone!
[One (M7) General] bdorr1105:
Just a misunderstanding both trying to help with different methods at the same time. Thanks for your help I was trying to accomplish the same goal also
[One (M7) General] bdorr1105:
Glad to see you back in business man
[One (M7) General] bdorr1105:
Deleted

Deleted****
[One (M7) General] bdorr1105:
OP Updated

OP Updated and cleaned up a bit
[One (M7) General] kdan8888:
i have exact problem like you do! i can do slideboard in twrp but i can do with cwm touch! and i typed "adb devices" it show host instead of slideboard or stuff like that! idk what is wrong either! and hopefully there will be a fix for us!
[One (M7) General] bdorr1105:
Not sure why adb sideload doesn't work in CWM Touch, its up to the Dev's to fix their recovery so it recognizes the phone in sideload mode....I like TWRP better anyway.....Anyway, once the phone is recognized and in sideload mode, that's all she wrote, you just type the command and off it goes to your internal......Dod you try the push command at the bottom?
[One (M7) General] kdan8888:
It works on cwm but not twrp.
[One (M7) General] bdorr1105:
Worked for me on TWRP a couple times now actually
[One (M7) General] kdan8888:
yep!! worked for me now!! back then i used sideload and all in one tool-kit of hass. that is why it doesnt work!! thanks for your post!!
[One (M7) General] bdorr1105:
Thanks for your feedback it is much appreciated
[One (M7) General] backlyt:
Also, remember to run ADB Sideload with the Command Prompt in administrative mode
[One (M7) General] spdrosin:
Succeded with sideload and rebooted recovery. Which is the next step? Install ROM.zip?

Edit: I found it: install sideload.zip
[One (M7) General] bdorr1105:
Yup you got it man... I am 6 hours behind east coast as well as 3 behind west coast so I am not ignoring you are awake in the morning I am still sleeping, glad you got it thanks for the results
[One (M7) General] spdrosin:
No problem man. Yeap. Did it. Already on custom ROM.
[One (M7) General] bdorr1105:
Good stuff brother thanks
[One (M7) General] mrdevil_25:
Thanks OP! You have saved my @$$. I bought a nexus 7 (used) so i started to wipe down everything from system to SDcard memory. and when i started back up, I HAVE NO ROM INSTALLED!!!

i know this is a completely different device but TWRP all works the same!

Thanks again!
[One (M7) General] bdorr1105:
Just glad it worked for ya, esp that you happen to stumble on to this
[One (M7) General] alibalter:
Guys help me

Guys help me :/ i'm trying sideload but when its come to %26 it says me that on the picture :/ what must i do
[One (M7) General] bdorr1105:
So its pushing the zip but then freezes at 26% ?
[One (M7) General] alibalter:
yes
[One (M7) General] bhodoan:
help!

after i successfully flash the rom, i reboot. once i reboot, i see the htc quietly brilliant screen and then it shuts off.
[One (M7) General] bdorr1105:
Sorry man I had a busy day and work and I am in Hawaii so the time difference is 6 hours. Not ignoring you. Have you tried anymore? If you are not having luck... Shutdown to complete off, let it chill and then try again.

If you Still have a problem then wipe the bootloader cache and lastly, as a last resort there is an adb push command in the OP in post 1. You should have success with any of the above. Let us know
[One (M7) General] bdorr1105:
Boot into the bootloader and wipe bootloader cache, also go into recovery, do a complete wipe again and reflash the zip. Before you reboot wipe cache and dalvick and you should be good to go
[One (M7) General] bhodoan:
after i flash the zip, it prompts me to install the rom right away. after i do so it automatically reboots and im now stuck at the htc screen. i do appreciate you trying to help!

EDIT: before i rebooted i wiped the cache and dalvick. however, before i went to reboot it also said i had no os installed, even though i flashed a rom and it said success. now im stuck at the htc screen once again
[One (M7) General] bdorr1105:
Ok, the ROM you are flashing may be correct, try to download a different more stock like ROM, I dont know which variant you have but I also am not sure why its sticking, seems to be something wrong with the zip...You can always do an RUU worse case scenario
[One (M7) General] alibalter:
i got it :) i tried another rom zip and it did not freeze i rescued system :) thank u :)
[One (M7) General] bhodoan:
how would i do an RUU, im sorry im not to familiar with all of this.
[One (M7) General] Johnny424:
Thanks for this tutorial. I used it when when I was in a jam with my nexus 4. For the life of me I couldnt get sideload to work. But adb push worked no problem. Pretty sure I was doing something wrong with sideload. Maybe my path to the Rom. But none the less thanks for this info
[One (M7) General] bdorr1105:
There is a toolkit that you can use, but it will relock the bootloader because its an official stock, however I would try downloading another ROM or zip and just try again with a different ROM just so you can be up and running
[One (M7) General] bhodoan:
so i tried to flash two different roms, and it got stuck at the htc quietly brilliant screen. flashing the stock ruu using hasoon's toolkit says i need the ruu zip file, any idea where i can find it?
[One (M7) General] silencecloak:
I managed to wipe EVERYTHING via TWP with "Format Data".

I cant start sideload, it fails instantly with cant mount such n such errors

I cant push with ADB, it freeses on pushes and the file never makes it.

I tried relocking and using an RUU tool, it was just stuck on sending for 6 hours before I cancelled it.

via TWRP, I can't mount system/data or anything to be able to drag a rom onto the thing.

Halp? :(

Also, sprint.
[One (M7) General] KRIZDUEL:
It happened to me before... tried sideload with no luck. So I went to electronic store (frys) and bought a micro usb OTG for $5. U can plug this to your phone and mount a flash drive with your Rom in it.

Fyi usb otg is a flash drive reader... hope this helps
[One (M7) General] tospace2006:
For some reason when I run the command adb devices I get that it's sideload but when I actually run the command adb sideload it gives me error :( I checked that all my SDK are up to date with 4.2.2 and 4.3 as well help! I formatted the phone accidentally and can't get a rom on the phone right now and need to restore this phone asap
[One (M7) General] HolyAngel:
Strange, I did this a week ago and while I did end up having issues using adb push, a restart of the phone and the computer solved it. Definitely need to push it over for the best way to recover, it will take some time for sure, like 15-20min for a 1gb rom