[Tutorial]Root, Unlock, Recovery and flashing a Custom ROM

Search This thread

fleming222

Senior Member
Aug 27, 2009
58
2
My adb hangs at 'sending recovery'
I've tried every different recovery and reinstalled the sdk, it just makes no sense to me :(

EDIT: Worked on another PC, must be an issue with the USB Driver
 
Last edited:

Dubhaltach

Senior Member
Nov 20, 2009
141
18
Androot

Just wondering if there is possibly a way to do all of this without unlocking the bootloader via htcDEV? What I did on my hero was install universal ANDroot, (but Superoneclick worked too) and that way I could flash recovery via terminal using chmod 777 to give it permissions. Npw I'm not sure if we're even able to root inside the rom as such so I wouldn't work if that was the case. I had to do it that way for my hero as hBoot upgrade wasn't working.
 

TricE

Senior Member
Jun 24, 2007
80
4
rooted or not?

hey guys,

i have done everything like described and now i have installed root checker and it says:
Superuser: No SuperUser Found
Busybox: BusyBox Binary Not Found
Su Location: Su Binary Not Found
Sudo Location: Sudo Binary Not Found

In SuperSU the Superuser ist enabled :-/

so what now?
 

azzledazzle

Senior Member
Dec 12, 2010
5,136
1,995
XDA Sucks !
download SU from the market, Check root with something like Titanium Backup (it also gives options to update busy box and such)

if root fails, Re flash the root zip a few times, then reboot

---------- Post added at 11:55 AM ---------- Previous post was at 11:52 AM ----------

Just wondering if there is possibly a way to do all of this without unlocking the bootloader via htcDEV? What I did on my hero was install universal ANDroot, (but Superoneclick worked too) and that way I could flash recovery via terminal using chmod 777 to give it permissions. Npw I'm not sure if we're even able to root inside the rom as such so I wouldn't work if that was the case. I had to do it that way for my hero as hBoot upgrade wasn't working.


I think the only way (at the moment) is via unlocking the bootloader via HTCDev.

Development is slow due to the phone only being released so its upto you whether to wait or not ?

Such tools / mods WILL come in time, But until a particular dev makes it, The only current method (what i know) is HTC Dev

but by using HTC Dev, your letting HTC Know your tampering with your phone :( Cant wait for a proper S-OFF tool, But i cant live without root lol
 

unk2009

Senior Member
Jul 22, 2009
986
278
New York(Hudson Valley)
download SU from the market, Check root with something like Titanium Backup (it also gives options to update busy box and such)

if root fails, Re flash the root zip a few times, then reboot

---------- Post added at 11:55 AM ---------- Previous post was at 11:52 AM ----------




I think the only way (at the moment) is via unlocking the bootloader via HTCDev.

Development is slow due to the phone only being released so its upto you whether to wait or not ?

Such tools / mods WILL come in time, But until a particular dev makes it, The only current method (what i know) is HTC Dev

but by using HTC Dev, your letting HTC Know your tampering with your phone :( Cant wait for a proper S-OFF tool, But i cant live without root lol

+1

Sent from my HTC Glacier using xda premium
 

TricE

Senior Member
Jun 24, 2007
80
4
The status is:
Root: device rooted
Superuser: no su found

I have root but no su?

What is root and what su? I thought its one and the same.

Btw, when i install SuperSU from the market, it doesnt want to update and it says installation abborted. I have to install the zip it in recovery mode, like described at the beginnig in this topic, then SuperSU works, but just root and no superuser... I think, i am too stupid for this...
 

azzledazzle

Senior Member
Dec 12, 2010
5,136
1,995
XDA Sucks !
Root is like running your PC as administrator. It just gives you extra rights to make changes to system.

SU acts as a 'go between' between ROM and System...

What im trying to say is ROOT is good, You shouldnt be without it ! Its your phone, you should be able to do as you please with it and not face numerous restrictions !!

Also, SU should have been installed after flashing root zip in recovery. If it did, go into it and go to settings and try to update SU Binary
 

cangia

Senior Member
Jul 17, 2010
216
8
i try to flash recovery-clockwork-5.8.2.4 ( same result with recovery-clockwork-5.8.2.7 and ville-recovery-signed) , flashing all ok, reboot in recovery but .. o show a white screen with HTC logo and above " this is ONLY for developement bla bla bla " , or load diretcly the rom ... why?
 

cangia

Senior Member
Jul 17, 2010
216
8
i try to flash recovery-clockwork-5.8.2.4 ( same result with recovery-clockwork-5.8.2.7 and ville-recovery-signed) , flashing all ok, reboot in recovery but .. o show a white screen with HTC logo and above " this is ONLY for developement bla bla bla " , or load diretcly the rom ... why?

..someone ?
 

azzledazzle

Senior Member
Dec 12, 2010
5,136
1,995
XDA Sucks !
from what i know (coming from the sensation)

OTA Updates are fine to use, But you will lose root.

It can cause issues with bootloader (unable to gain S-OFF) But there is no S-OFF tool as of yet anyway.

Its upto you, I doubt HTC will be pushing updates out so quickly. And in a few weeks when this phone is available world wide, You will see the development sky-rocket and there will be no need for a horrible nasty stock ROM :D
 

cangia

Senior Member
Jul 17, 2010
216
8
and was the flash successful ?

have you tried the command 'fastboot reboot recovery' whilst in adb ?

the flash successful ..

C:\android>fastboot flash recovery recovery-clockwork-5.8.2.7-endeavoru.img
sending 'recovery' (5450 KB)...
OKAY [ 0.875s]
writing 'recovery'...
OKAY [ 1.536s]
finished. total time: 2.412s

do this command after flash right ? and , i forgot, all command must be done with the One S in the main hboot menù or in the submenu flashboot ?

---------- Post added at 05:47 PM ---------- Previous post was at 05:34 PM ----------

and the command " fastboot reboot recovery " don't work...
 
Last edited:

azzledazzle

Senior Member
Dec 12, 2010
5,136
1,995
XDA Sucks !
all commands must be in fastboot. USB debugging must be enabled..

you can use the command fastboot reboot recovery anytime, it doesnt have to be after flash, it just has to be whilst your in fastboot.

otherwise use 'adb reboot recovery'
 

Top Liked Posts

  • There are no posts matching your filters.
  • 240
    Just a quick step by step tutorial to get a Custom ROM working on your One S.

    Step 1: Unlock

    • Go on http://www.htcdev.com and create yourself an account on HTCDEV.
    • Download These Fastboot Files
    • Make a new folder on your C:/ drive called fastboot.
    • Extract The Zip downloaded in step 2 to the new folder
    • Go Here http://www.htcdev.com/bootloader/ and select "All Other Supported Models" and "then begin unlock bootloader"
    • Yes, Tick both Boxes, Proceed
    • Skip up to step 8 as we have all we need for the first 7 steps
    • Power off your phone by holding the power button down for 10 seconds
    • Power your phone on by holding power and volume down
    • Highlight Fastboot With Volume+or- then press Power
    • Plug your phone into your PC and open a Command Prompt.
    • (windows XP - Click Start > Run > type CMD in box then press OK
    • (Windows 7 - Click Start > type CMD in search box then press Enter)
    • Change directory to your folder where we put fastboot files cd c:\fastboot
    • Type this into your command prompt window fastboot oem get_identifier_token
    • Select & copy the text as per step 9 on the HTCDev website
    • Paste your identifier token into the box at the bottom and submit
    • You Will Very Shortly Receive an email from HTCDev with a link to the second part of the instructions and your "Unlock_code.bin" attached
    • Download the "Unlock_code.bin" from the email and save it to the same folder that we extracted fastboot files to in step 2
    • Type this into your command prompt window fastboot flash unlocktoken Unlock_code.bin
    • The Display Will change on your phone, press Vol + to accept and power to confirm.

    Thanks to bagofcrap24 for this part!

    Step 2: Recovery


    Step 3: Root

    Make sure you are on the stock kernel!

    • Now root your phone with SuperSU by Chainfire, thanks a lot!
    • Download SuperSU from the end of the thread
    • Flash it with the Recovery:
    • Power off your device and then hold the VOL DOWN + Power to boot into the Bootloader
    • Navigate with VOL and Power to Recovery
    • Now flash the .zip:

      - install zip from sdcard
      - choose zip from sdcard
      - select the CWN-SuperSU-v0.87.zip file and flash it
      - Reboot now

    Now you are able to flash any Custom ROM.

    Credits:

    Paul for the Recovery: http://xdaforums.com/showthread.php?t=1579584
    Chainfire for SuperSU: http://xdaforums.com/showthread.php?t=1538053

    Video-Tutorial by Flow-Wolf (thanks buddy):

    Bootloader Unlock:


    Recovery Installation:


    Root:


    Custom ROM Installation:


    If this helped you, make sure to thank me and to donate to Paul, Chainfire, koush or/and Flow Wolf!
    7
    The HTC method is good as well :)

    Android without root is nothing..
    3
    what exactly are you typing at command prompt

    you need to have usb debugging checked on phone
    you need the recovery image in same folder as your fastboot.exe/adb files
    you need to cd to that directory/folder
    you need the recovery image in that same folder
    you need to be booted into bootloader with fastboot highlighted
    and phone plugged into pc

    you have to type fastboot flash recovery recovery.img

    where recovery.img is the exact name of the recovery image image you put in the folder where fastboot/adb is--usually tools or platform tools of your sdk

    you can check the exact name by right clicking the recovery image in the folder and going to properties. I usually just copy and paste that into the command line

    i solved it! i was missing the command fastboot flash "recovery" keyword before the recovery name! :D im dumb! lol thanks though
    3
    hm.. first time unlocking, rooting etc using a mac and well, it could be going smoother.
    Anyways.

    Ive unlocked the bootloader but when i try to flash the cwm recovery I'm getting the message;


    unknown partition 'recovery-clockwork-touch-5.8.3.1-ville.img'
    error: cannot determine image filename for 'recovery-clockwork-touch-5.8.3.1-ville.img'

    What am i doing wrong? The file is in the same folder as fastboot.exe and I've tried renaming it to a shorter filename (thinking I were typing it wrong).
    Ive tried both versions of cwm with the same result.


    Im using this command;
    ./fastboot flash XXXXXXX.img

    Should be
    Code:
    fastboot flash [B]recovery[/B] recovery.img

    looks like you forgot the recovery bit
    2
    But don't be afraid of htcdev, you don't loose the whole warranty

    HTC One X with tapatalk 2