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

Search This thread

cangia

Senior Member
Jul 17, 2010
216
8
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'

C:\android>adb reboot recovery
adb server is out of date. killing...
* daemon started successfully *
error: device not found


mmm .. there is a problem ...
 

azzledazzle

Senior Member
Dec 12, 2010
5,136
1,995
XDA Sucks !
Right, its ok...

Make sure you got all the right files in the right folder. including fastboot.exe

Infact put everything needed for adb in a folder named adb, put this folder on c drive

so it should be like C:\adb - thats how i have it..

Check usb debugging is ebnabled under settings > develop options.

Then open command prompt and type cd c:\adb
then underneath should be a line saying adb>

if so put adb devices

This should connect your device, if it does it will show you your devices serial number :)

then your good to go !
 

cangia

Senior Member
Jul 17, 2010
216
8
Right, its ok...

Make sure you got all the right files in the right folder. including fastboot.exe

Infact put everything needed for adb in a folder named adb, put this folder on c drive

so it should be like C:\adb - thats how i have it..

Check usb debugging is ebnabled under settings > develop options.

Then open command prompt and type cd c:\adb
then underneath should be a line saying adb>

if so put adb devices

This should connect your device, if it does it will show you your devices serial number :)

then your good to go !

right, i copy ALL the file ( including fastboot.exe and all .lib ) from the platform-tool directory ( SDK ) to a c:\adb directory, then enter and type adb devices :

C:\adb>adb devices
List of devices attached


C:\adb>

now ?
 

azzledazzle

Senior Member
Dec 12, 2010
5,136
1,995
XDA Sucks !
Oh i though when you put
C:\adb>adb devices
List of devices attached

You didnt type the serial number so no one would know it !! D'OH !!

I cant understand why this isnt working ?

where did you download adb from ? it could need updating.

You do have the correct drivers installed right ? And HTC Sync removed / fully closed. ?
 

cangia

Senior Member
Jul 17, 2010
216
8
Oh i though when you put


You didnt type the serial number so no one would know it !! D'OH !!

I cant understand why this isnt working ?

where did you download adb from ? it could need updating.

You do have the correct drivers installed right ? And HTC Sync removed / fully closed. ?

adb is from the last SDK, i think the driver is correctly installed, if i make a bootloader unlock, don't ? I kill ALL HTC process from task manager ...
 

azzledazzle

Senior Member
Dec 12, 2010
5,136
1,995
XDA Sucks !
If you have unlocked the bootloader you should be ok to flash recovery and stuff through adb / fastboot, Ive been doing it myself.

USB Debugging is definately 100% checked ? I can see this being the only problem, Also just for the record, Uncheck fastboot under settings > power.
 

cangia

Senior Member
Jul 17, 2010
216
8
If you have unlocked the bootloader you should be ok to flash recovery and stuff through adb / fastboot, Ive been doing it myself.

USB Debugging is definately 100% checked ? I can see this being the only problem, Also just for the record, Uncheck fastboot under settings > power.

USB Debugging 100% check and Fastboot 100% unckeck :D .. so ?
 

azzledazzle

Senior Member
Dec 12, 2010
5,136
1,995
XDA Sucks !
im out of ideas, its hard to diagnose when i cannot see what is happening lol.

let me do some searching and il be back.........hopefully with some help
 

cangia

Senior Member
Jul 17, 2010
216
8
im out of ideas, its hard to diagnose when i cannot see what is happening lol.

let me do some searching and il be back.........hopefully with some help

maybe i shall try another type of recovery ?

wait a moment ... after i try to flash xxxrecovery, in hboot menu there is a voice " recovery " .. this mean that flashing work ?
 
Last edited:

cangia

Senior Member
Jul 17, 2010
216
8
what do you mean by voice ? Ive never heard this. What recovery are you flashing ?

recovery-clockwork-5.8.2.7-endeavoru and ville_recovery_signed

in the hboot menu there is this :

fastboot
recovery
factory reset
clear storage
simlock
image crc show barcode

if i select "recovery " and push power button, reboot and show " HTC this is only for delevoper ecc ecc bla bla " or rirectly boot normal rom.
 

cangia

Senior Member
Jul 17, 2010
216
8
go to the first page and try to flash r1-modaco-recovery-clockwork-touch-ville.img recovery.

thats the one im using so i know it works,

C:\adb>fastboot.exe flash recovery r2-modaco-recovery-clockwork-touch-ville.img
< waiting for device >
sending 'recovery' (10950 KB)...
OKAY [ 1.542s]
writing 'recovery'...
OKAY [ 2.543s]
finished. total time: 4.086s

...

YEAHHHHHHH :eek: it work ... :D
 

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