5,593,293 Members 32,607 Now Online
XDA Developers Android and Mobile Development Forum

[Q] How do I push a stock recovery to my HTCone using ADB?

Tip us?
 
adodson927
Old
#1  
adodson927's Avatar
Junior Member - OP
Thanks Meter 2
Posts: 22
Join Date: Sep 2010
Default [Q] How do I push a stock recovery to my HTCone using ADB?

So I admit I screwed up and started the whole root process without reading and studying about adb. What happened was I enabled developer mode and disabled fast boot on my HTCone. I then tried to use the rumrunner root method. It was successful and gave me S-off, unlock and SUser. Where I failed at was just coming over from an iPhone and having a HTC Evo in the past I was not familiar with adb or have I done any development. So I didn't even have adb set up and it left me with my custom recovery. I let a friend look at it that had some linux experience and he deleted my stock recovery and tried to push the TeamWin Recovery Project recovery to my phone. This failed and left me with no recovery at all. I then still not knowing what was going on got frustrated and tried to remove root and just run everything stock till I studied up more. Well I removed root access but I still have s-off, fastboot and unlocked. Since I had no recovery I can not do anything but run what I have on my phone now. I did however do a backup of everything before this using titanium backup. But my understanding you have to have root to use it.

Since my screw up I have studied up on adb and installed everything needed. I have played around with it just without making changes just to get familiar and test if it was working. I tried to use rumrunner again but it fails at the end but does connect to adb now.

What I need to know is can I push my stock recovery back to my phone via adb then try to use rumrunner again for root? Or what can I do since S-off and unlocked?

I admit I pulled an idiot move and will study and learn the whole process before doing anything new.


Thanks in advance for all help.
 
adodson927
Old
#2  
adodson927's Avatar
Junior Member - OP
Thanks Meter 2
Posts: 22
Join Date: Sep 2010
I have the 1.10.605.8 software version and I'm on Android 4.2.2
 
digitalbot
Old
#3  
digitalbot's Avatar
Senior Member
Thanks Meter 15
Posts: 123
Join Date: Nov 2012
You didnt really do anything to your device honestly.. Its pretty much untouched, for root, simply download superuser from playstore, rumrunner is manily for the s off , bootloader. Also head over to original android development section and install twrp recovery.
Use flashify from playstore to flash recovery if you like aswell instead of adb.

Sent from my M7 using xda app-developers app
The Following User Says Thank You to digitalbot For This Useful Post: [ Click to Expand ]
 
xenakis
Old
#4  
xenakis's Avatar
Member
Thanks Meter 17
Posts: 64
Join Date: Jul 2011
First, take a deep breath! Everything will be OK. As digitalbot mentioned, you phone should be fine.

Some clarification first. You do not use adb to flash a recovery, kernel, or anything else. That's fastboot and you'll be doing that from the bootloader, not while booted in the OS. Fastboot does not work while in the OS, adb does not work while in the bootloader. Since you were able to use rumrunner, adb and fastboot should already be installed on your computer and working. Now, understand that the fast boot that you disabled to use rumrunner is not the same as the fastboot that you use to to communicate between your computer and phone. Similar term, but completely and unrelated things.

Sounds like you are still s-off so no need to use rumrunner again. You mention having a custom recovery. Did you install it? Rumrunner does not install a custom recovery so unless you did, you still have stock recovery. To verify, plug in your phone to your computer and open a command prompt and type "adb reboot recovery." Phone your reboot to recovery. What recovery does it boot? If it's not TWRP or CWM, find a custom recovery in the forum (I use TWRP) and follow the instructions there to flash it to your phone from the bootloader. You'll do that with fastboot not adb.

Now for root, verify that you do not have root. Install a root checker from the playstore and check. If you don't have root, you'll have to flash SuperSU from recovery so go to http://download.chainfire.eu/supersu and download SuperSU to your phone. Reboot your phone to recovery and install the zip. You should now be rooted, double check with root checker. Now go to the playstore and install SuperSU to stay up to date.

Not sure if I covered all your questions, so post back if you still need clarification. Good luck!
The Following User Says Thank You to xenakis For This Useful Post: [ Click to Expand ]
 
adodson927
Old
#5  
adodson927's Avatar
Junior Member - OP
Thanks Meter 2
Posts: 22
Join Date: Sep 2010
Thanks guys!

I was able to install TWRP and also Superuser the same way.

Here are the instructions I used. Maybe they will help someone else like me.

Power off your device, then press and hold Power and Volume Down until you're in the bootloader menu. Highlight FASTBOOT and press Power. You should see Fastboot USB highlighted in red.

Open a command prompt on your computer and navigate to your SDK directory. Type "fastboot flash recovery twrp.img" and hit Enter.

Then I backed up my stock rom using TWRP

In TWRP's main menu, tap Reboot. It will tell you that you're not rooted and ask you to install SuperSU, so swipe to confirm. When you reboot your phone, you should see a notification that you need to install the SuperSU app. Open the notification and select TWRP, since the app from Google Play only works with S-OFF.

Worked flawlessly.

I installed NuSenseONE max and I love it so far.
 
adodson927
Old
#6  
adodson927's Avatar
Junior Member - OP
Thanks Meter 2
Posts: 22
Join Date: Sep 2010
Oh of course I downloaded the latest TWRP build and renamed it before I copied it over.
 
digitalbot
Old
#7  
digitalbot's Avatar
Senior Member
Thanks Meter 15
Posts: 123
Join Date: Nov 2012
Good work, yeah not really that tough, now accidently wipe your internal storage and flash a RUU, fun all over again haha :beer:

Sent from my M7 using xda app-developers app

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


TRENDING IN THEMER...