[GUIDE] Unlock/Root/Flash for HTC One XL

Search This thread

Heisenberg

Retired Forum Moderator
Jun 29, 2011
27,180
18,633
Knocking on your door
OnePlus 9 Pro
[SIZE=+3]Heisenberg's How-To Guide For Beginners[/SIZE]
[SIZE=+2]HTC One XL, AT&T, Rogers HTC One X, Telstra One XL[/SIZE]
LjhgC65.jpg

[SIZE=+1]Intro[/SIZE]

This thread will serve as a location for basic how-to guides for the HTC One XL (Evita). I'm going to start off with a couple of the more obvious ones and go from there. If anyone has any suggestions for additions please feel free to let me know.
Please note: you'll need a working adb/fastboot environment on your PC to get through some of these guides. There are many guides on how to install adb/fastboot available on XDA.
This is not a q&a/help thread, if you have questions regarding the processes mentioned here please ask in the appropriate place

By attempting any of the processes listed this thread you accept full responsibility for your actions. I will not be held responsible if your device stops working, catches on fire, or turns into a hipster and claims to have been modified before it was cool. Make sure you read a section and fully understand it before attempting it.

z7e6jQa.jpg

[SIZE=+1]Index[/SIZE]
  1. How To Unlock The Bootloader On An AT&T Phone With 3.18 Software
  2. How To Unlock The Bootloader On An AT&T Phone With 5.18 Software
  3. How To Install A Custom Recovery On Your Device
  4. How To Make A Nandroid Backup With TWRP Recovery
  5. How To Install A ROM with TWRP Recovery
  6. How To Flash A Boot.img With Fastboot
  7. How To Install A Custom Kernel With TWRP Recovery
  8. How To Make Sure You Can Pretty Much Always Recover From An Accidentally Wiped System
  9. How To Flash The 2.15 Firmware

z7e6jQa.jpg

[SIZE=+1]1. How To Unlock The Bootloader On An AT&T Phone With 3.18 Software[/SIZE]

All AT&T phones are blocked from having their bootloader unlocked at htcdev, they achieve this by checking the CID of the device. Any device with the at&t CID (CWS__001) will not be able to do it, so you need to get temp root which allows you to get SuperCID (11111111). There is a dev thread dedicated to this exploit but it doesn't contain the most user-friendly directions so here's a quick guide.

  • Download the xpwn.tar.gz file from here.
  • Extract it into your fastboot folder.
  • Make sure you're booted into Android with usb debugging enabled. Connect your phone to your PC via usb cable.
  • Open a command prompt from within your fastboot folder (navigate to where you have fastboot.exe located on your PC, shift + right click anywhere within that folder, select open command prompt here).
  • Test the connection by entering this command:
    Code:
    adb devices
  • It should return your device serial number, once you've verified a connection you can start the process.
  • Command #1
    Code:
    adb push oneXchopper /data/local/tmp/xpwn
  • Command #2
    Code:
    adb push busybox /data/local/tmp/busybox
  • Command #3
    Code:
    adb push ownage /data/local/tmp/phase1.sh
  • Command #4
    Code:
    adb shell chmod 755 /data/local/tmp/xpwn /data/local/tmp/busybox
  • Command #5
    Code:
    adb shell ln -s /data/local/tmp/busybox /data/local/tmp/sed
  • Command #6
    Code:
    adb shell "/data/local/tmp/xpwn"
  • Command #7
    Code:
    adb reboot bootloader
  • Now test if it worked by entering this command:
    Code:
    fastboot oem readcid

Hopefully you'll see 11111111, then you can go to htcdev and unlock your bootloader.

z7e6jQa.jpg

[SIZE=+1]2. How To Unlock The Bootloader On An AT&T Phone With 5.18 Software[/SIZE]

All AT&T phones are blocked from having their bootloader unlocked at htcdev, they achieve this by checking the CID of the device. Any device with the at&t CID (CWS__001) will not be able to do it, so you need to use an exploit which allows you to get SuperCID (11111111). There is no actual single exploit to do this on the 5.18 firmware, you need to use a couple of separate methods in conjunction to get it done.

  • Go to the Weaksauce thread and get temporary root using that tool.
  • Once you have temp-root you need to go to the Rumrunner S-off site and use that tool to get s-off. Make sure you read the instructions carefully. The device will have to reboot during the s-off process, which means that the Weaksauce app may or may not automatically root again after boot, you need to keep an eye on this because if it doesn't you'll need to do it manually when the device boots up otherwise the rumrunner method won't work. This can be frustrating, this is a finicky process, this isn't exactly the easiest method in the world but it does indeed work.
  • Checking your bootloader to ensure that you have s-off.
  • Boot into the bootloader, make sure your phone is connected to your PC via usb, and issue this command:
    Code:
    fastboot oem writecid 11111111
  • Confirm that you now have SuperCID with this command:
    Code:
    fastboot oem readcid

That's it, once you have SuperCID you can go to htcdev and unlock your bootloader.

z7e6jQa.jpg

[SIZE=+1]3. How To Install A Custom Recovery On Your Device[/SIZE]

Prerequisites: unlocked bootloader.

  • Download the recovery of your choice.
  • Check the md5 to verify its integrity (where possible).
  • Place the file in your fastboot folder (this is where fastboot.exe is located on your PC).
  • Put the phone in fastboot mode and connect it to your PC via usb cable.
  • Open a command prompt from within your fastboot folder (shift + right click, select open command prompt here), and enter the following commands:
    Code:
    fastboot flash recovery openrecovery-twrp-2.8.7.0-evita.img
    (The recovery filename in the command will change depending on which recovery you're flashing)
    Code:
    fastboot erase cache
    Code:
    fastboot reboot
  • Select the recovery option from your bootloader screen to enter your custom recovery.

z7e6jQa.jpg

[SIZE=+1]4. How To Make A Nandroid Backup With TWRP Recovery[/SIZE]

Prerequisites: unlocked bootloader, TWRP recovery.

A nandroid backup is a very important thing to have before installing any custom software on your device. It's basically a backup of your stock system that you can fall back on if anything goes wrong or if you just want your stock ROM back. You can also use the backup tool to create a backup of your favourite ROM set up exactly the way you like it. The backup you create can be easily restored using the restore tool in TWRP recovery.

All you need to do is enter TWRP recovery, select the backup option from the TWRP home screen, check the system/data/boot boxes, and swipe to backup. The process will take a few minutes.
Please note: Backups can easily take up over 1gb of space in your internal storage. Moving them to a PC or external drive is a great idea to save space on your phone.

z7e6jQa.jpg

[SIZE=+1]5. How To Install A ROM with TWRP Recovery[/SIZE]

Prerequisites: unlocked bootloader, TWRP recovery.

Installing a ROM is a pretty straight forward and easy process. Before you install anything you should make a nandroid backup (instructions above).

  • Download a ROM and appropriate Gapps package (if required) and place on your device.
  • Boot into your custom recovery.
  • Perform a full wipe.
    • Select the wipe option from the TWRP home screen.
    • Select advanced wipe.
    • Check the system, data, cache, and dalvik cache options.
    • Swipe to wipe.
  • Install the ROM.
    • Select the install option from the TWRP home screen.
    • Navigate to where you have the ROM zip stored on your sd card and select it.
    • Swipe to install.
      Most ROMs will run an installer script at this point but some ROMs have what is called an Aroma Installer which allow you to choose some install options before the script runs.​
    • If you're flashing an aosp (not Sense based) ROM you will also need to install the appropriate gapps package directly after installing the ROM.
  • Once you've installed all necessary zips you'll have an option to wipe cache/dalvik and an option to reboot system. Wipe the cache/dalvik, hit the back button, and hit the reboot system button.
Please note: if your phone has a hboot of 1.14 or higher and is s-on you'll also need to flash the boot.img with fastboot. Do not hit the reboot system button at the end of this process. Hit the home button, select the reboot option from the TWRP home screen, then hit the reboot bootloader button. Instructions to flash the boot.img are below.

z7e6jQa.jpg

[SIZE=+1]6. How To Flash A Boot.img With Fastboot[/SIZE]

Prerequisites: unlocked bootloader.

If your phone has a hboot of 1.14 or higher and is s-on, flashing a ROM or kernel through your recovery of choice won't be enough to boot the phone. The boot.img included in the ROM zip is unable to be installed by the recovery due to a security restriction that was introduced in the 1.14 hboot. Every time you want to flash a ROM you also need to flash the boot.img manually via fastboot.

  • Open/extract/view the ROM zip and in the root directory you'll see a file called "boot.img", copy this file and put it in your fastboot folder on your PC.
  • After you've flashed the ROM in recovery, instead of selecting a normal reboot select to reboot to the bootloader.
  • Once your phone has booted into the bootloader you can connect it to your PC, it should now say "fastboot usb" on the screen.
  • Open a command prompt from within your fastboot folder (shift + right click, select open command prompt here) and issue this fastboot command:

    Code:
    fastboot flash boot boot.img
    It'll take a few seconds to flash the boot.img.
  • Once it's finished you can use the following command to reboot:
    Code:
    fastboot reboot
Now your phone should successfully boot up into your brand new ROM. Remember, each time you want to flash a new ROM you need to flash the boot.img as well. If you decide to get s-off on your device you will no longer need to go through this process.

z7e6jQa.jpg

[SIZE=+1]7. How To Install A Custom Kernel With TWRP Recovery[/SIZE]

Prerequisites: unlocked bootloader, TWRP recovery.

A custom kernel can open up a new level of control over your device, such as overclocking/underclocking, undervolting, changing governors, changing I/O schedulers, adjusting colour calibrations, adjusting sound calibrations, and many other options.

  • Download a kernel that is compatible with your current ROM.
  • Check the md5 to verify its integrity.
  • Enter TWRP recovery.
  • Select the install option from the TWRP home screen.
  • Navigate to the kernel and select it.
  • Swipe to install.
  • You'll have an option to wipe cache/dalvik and an option to reboot system. Wipe the cache/dalvik, hit the back button, and hit the reboot system button.

Once your phone has booted up you can use a kernel tuning app to change governors, I/O scheduler, clock speed, and other options. Some of the popular kernel apps are Trickster Mod, No Frills, Kernel Tuner, and many more.

z7e6jQa.jpg

[SIZE=+1]8. How To Make Sure You Can Pretty Much Always Recover From An Accidentally Wiped System[/SIZE]

Prerequisites: unlocked bootloader, TWRP recovery.

There may come a time when you accidentally wipe your OS while trying to perform a basic cache wipe in recovery. Don't laugh, it can happen to the best of us. The best way to insure yourself against being stuck in recovery is to keep a ROM zip or a TWRP/CWM backup (a nandroid backup) on your sd card at all times.
This solution seems like common sense but apparently there are quite a few people out there who don't store a ROM or backup on their phone. You might think it's easy to just mount the sd card and copy a ROM across to your phone from your PC (which is definitely an option), but there's always a chance that you won't be near your PC at the time, or it won't recognise your phone properly. Basically you need to insure yourself against Murphy's law.

z7e6jQa.jpg

[SIZE=+1]9. How To Flash The 2.15 Firmware[/SIZE]

Prerequisites: unlocked bootloader, s-off, SuperCID.

Warning! If you have the middle eastern variant (Evita_utl) do not flash this firmware, it is not compatible with your device and will cause irreparable damage.
  • Download the firmware from here.
  • Place it in your fastboot folder and rename it to "215firmware.zip" to make things easier later on.
  • Reboot into the bootloader and connect your phone to your PC via usb cable.
  • Open a command prompt from within your fastboot folder (shift + right click, select open command prompt here) and issue this fastboot command to check your fastboot connection:
    Code:
    fastboot devices
  • Once you've established a working connection (it'll show your serial number) you can start the process with this command:
    Code:
    fastboot oem rebootRUU
    The phone will now boot into rebootRUU mode which is a black screen with the HTC logo.
  • Issue this command:
    Code:
    fastboot flash zip 215firmware.zip
    If the output ends with "FAILED (remote: 90 hboot pre-update! please flush image again immediately)", run the previous command again. If it ends with "INFO..... OK", just reboot to the bootloader with this command:
    Code:
    fastboot reboot-bootloader
  • Verify the flash was successful by checking the hboot version and radio version in the bootloader screen. They should be as follows:
    Hboot: 2.15
    Radio: 1.31a.32.45.16_2
  • Reboot your phone by issuing this command:
    Code:
    fastboot reboot
Please note that the progress bar on the screen of your phone won't ever reach 100% even after the process is finished. As long as the process says it's finished in the command prompt it's safe to reboot.

z7e6jQa.jpg

aDlDoZJ.jpg

Donate To Me
Sent from my Evita
 
Last edited:

Surideepu

New member
Oct 20, 2014
1
0
unable to transfer on HTC onex AT&T

C:\adb>adb devices
List of devices attached
HT282W306697 device


C:\adb>adb push oneXchopper /data/local/tmp/xpwn
cannot stat 'oneXchopper': No such file or directory

C:\adb>cd xpwn

C:\adb\xpwn>adb push oneXchopper /data/local/tmp/xpwn
4177 KB/s (1283460 bytes in 0.300s)

C:\adb\xpwn>adb push busybox /data/local/tmp/busybox
2809 KB/s (811432 bytes in 0.282s)

C:\adb\xpwn>adb push ownage /data/local/tmp/phase1.sh
24 KB/s (296 bytes in 0.012s)

C:\adb\xpwn>adb shell chmod 755 /data/local/tmp/xpwn /data/local/tmp/busybox

C:\adb\xpwn>adb shell ln -s /data/local/tmp/busybox /data/local/tmp/sed

C:\adb\xpwn>adb reboot bootloader

C:\adb\xpwn>fastboot oem readcid
...
(bootloader) cid: CWS__001
OKAY [ 0.011s]
finished. total time: 0.012s

C:\adb\xpwn>
 
Last edited:

solodancer

Member
Jul 19, 2014
15
0
new delhi
Ive soft bricked my htc one x AT&T and my computer does not recognize my device

@timma U need to help me man !!!! Ive soft bricked my htc one x at&t(Deleted my ROM) . When i start my phone with normal Power on i just GET the white HTC screen . I am able to reach to the TWRP screen its got the following details :
S-ON RL
HBOOT-1.14.002
RADIO-0.19as.32.09.11_2
I tried fastboot and recovery mode and when i try and restart it it tells me no os installed.
I use Ubuntu 14.04 installed the android SDK with eclipse and tried the adb sideload with a custom rom but it does not find my device
though when its switched off and usb attached to my computer it charges.
WHAT TO DO ? PLZ HELP ME :crying:!!!!!!!!!!
 

Heisenberg

Retired Forum Moderator
Jun 29, 2011
27,180
18,633
Knocking on your door
OnePlus 9 Pro
@timma U need to help me man !!!! Ive soft bricked my htc one x at&t(Deleted my ROM) . When i start my phone with normal Power on i just GET the white HTC screen . I am able to reach to the TWRP screen its got the following details :
S-ON RL
HBOOT-1.14.002
RADIO-0.19as.32.09.11_2
I tried fastboot and recovery mode and when i try and restart it it tells me no os installed.
I use Ubuntu 14.04 installed the android SDK with eclipse and tried the adb sideload with a custom rom but it does not find my device
though when its switched off and usb attached to my computer it charges.
WHAT TO DO ? PLZ HELP ME :crying:!!!!!!!!!!

Ok, first, the screen with the s-on, hboot, radio details isn't your TWRP screen, that's your bootloader. What recovery do you have installed?

Transmitted via Bacon
 

Heisenberg

Retired Forum Moderator
Jun 29, 2011
27,180
18,633
Knocking on your door
OnePlus 9 Pro
From the Bootloader screen when i click on recovery option it takes me to the TWRP v2.6.3.0 screen.
Ok. You're gonna need to flash a ROM, but first you're gonna need to copy one from your PC to your phone. In order to do that you're gonna need to temporarily install TWRP 2.6, it's the last version that actually allows to your mount your internal storage to a PC. Download it from here

https://goo.im/devs/OpenRecovery/evita/openrecovery-twrp-2.6.0.0-evita.img/

Flash it with fastboot:

Code:
fastboot flash recovery openrecovery-twrp-2.6.0.0-evita.img

Once that's done, boot into TWRP and select the mount option from the main menu, connect your phone to your PC, and then hit the mount usb storage option. Your phone should now mount to your PC as a removable drive which will allow you to transfer a ROM zip across.

Now to the next part. You need to get s-off, because you need to update your firmware in order to run any recent ROM. The best way to get s-off is to flash the Kickdroid 5.0 ROM, and then use Rumrunner to get s-off. Once you have s-off you can update your firmware (instructions at beginning of this thread). Once you've done that you can flash whatever ROM you like (for aosp ROMs you'll need to put TWRP 2.6.3.0 or above back on your phone).

Kickdroid

Rumrunner
 

solodancer

Member
Jul 19, 2014
15
0
new delhi
Ok. You're gonna need to flash a ROM, but first you're gonna need to copy one from your PC to your phone. In order to do that you're gonna need to temporarily install TWRP 2.6, it's the last version that actually allows to your mount your internal storage to a PC. Download it from here

https://goo.im/devs/OpenRecovery/evita/openrecovery-twrp-2.6.0.0-evita.img/

Flash it with fastboot:

Code:
fastboot flash recovery openrecovery-twrp-2.6.0.0-evita.img

Once that's done, boot into TWRP and select the mount option from the main menu, connect your phone to your PC, and then hit the mount usb storage option. Your phone should now mount to your PC as a removable drive which will allow you to transfer a ROM zip across.

Now to the next part. You need to get s-off, because you need to update your firmware in order to run any recent ROM. The best way to get s-off is to flash the Kickdroid 5.0 ROM, and then use Rumrunner to get s-off. Once you have s-off you can update your firmware (instructions at beginning of this thread). Once you've done that you can flash whatever ROM you like (for aosp ROMs you'll need to put TWRP 2.6.3.0 or above back on your phone).

Kickdroid

Rumrunner

Thanks a lot for the help but could you please explain to me the 1. step in a bit detail how do i go about installing twrp-2.6.0.0 image ? what steps do i need to follow on my phone ?
1. I connected my phone to the pc i see the charging light flashing
2. went to the bootloader screen and selected the fastboot mode.
3. ran the fastboot command on pc
4.In the bootloader screen selected reboot bootloader
but now on reboot in fastboot mode i dont see a fastboot usb mode and the command it keeps on waiting for the device nothing happens after that .
Am i doing something wrong?
 
Last edited:

Heisenberg

Retired Forum Moderator
Jun 29, 2011
27,180
18,633
Knocking on your door
OnePlus 9 Pro
Thanks a lot for the help but could you please explain to me the 1. step in a bit detail how do i go about installing twrp-2.6.0.0 image ? what steps do i need to follow on my phone ?
1. I connected my phone to the pc i see the charging light flashing
2. went to the bootloader screen and selected the fastboot mode.
3. ran the fastboot command on pc
4.In the bootloader screen selected reboot bootloader
but now on reboot in fastboot mode i dont see a fastboot usb mode and the command it keeps on waiting for the device nothing happens after that .
Am i doing something wrong?

Have you selected recovery from the bootloader menu to confirm that the recovery image flashed?

Transmitted via Bacon
 

Top Liked Posts

  • There are no posts matching your filters.
  • 42
    [SIZE=+3]Heisenberg's How-To Guide For Beginners[/SIZE]
    [SIZE=+2]HTC One XL, AT&T, Rogers HTC One X, Telstra One XL[/SIZE]
    LjhgC65.jpg

    [SIZE=+1]Intro[/SIZE]

    This thread will serve as a location for basic how-to guides for the HTC One XL (Evita). I'm going to start off with a couple of the more obvious ones and go from there. If anyone has any suggestions for additions please feel free to let me know.
    Please note: you'll need a working adb/fastboot environment on your PC to get through some of these guides. There are many guides on how to install adb/fastboot available on XDA.
    This is not a q&a/help thread, if you have questions regarding the processes mentioned here please ask in the appropriate place

    By attempting any of the processes listed this thread you accept full responsibility for your actions. I will not be held responsible if your device stops working, catches on fire, or turns into a hipster and claims to have been modified before it was cool. Make sure you read a section and fully understand it before attempting it.

    z7e6jQa.jpg

    [SIZE=+1]Index[/SIZE]
    1. How To Unlock The Bootloader On An AT&T Phone With 3.18 Software
    2. How To Unlock The Bootloader On An AT&T Phone With 5.18 Software
    3. How To Install A Custom Recovery On Your Device
    4. How To Make A Nandroid Backup With TWRP Recovery
    5. How To Install A ROM with TWRP Recovery
    6. How To Flash A Boot.img With Fastboot
    7. How To Install A Custom Kernel With TWRP Recovery
    8. How To Make Sure You Can Pretty Much Always Recover From An Accidentally Wiped System
    9. How To Flash The 2.15 Firmware

    z7e6jQa.jpg

    [SIZE=+1]1. How To Unlock The Bootloader On An AT&T Phone With 3.18 Software[/SIZE]

    All AT&T phones are blocked from having their bootloader unlocked at htcdev, they achieve this by checking the CID of the device. Any device with the at&t CID (CWS__001) will not be able to do it, so you need to get temp root which allows you to get SuperCID (11111111). There is a dev thread dedicated to this exploit but it doesn't contain the most user-friendly directions so here's a quick guide.

    • Download the xpwn.tar.gz file from here.
    • Extract it into your fastboot folder.
    • Make sure you're booted into Android with usb debugging enabled. Connect your phone to your PC via usb cable.
    • Open a command prompt from within your fastboot folder (navigate to where you have fastboot.exe located on your PC, shift + right click anywhere within that folder, select open command prompt here).
    • Test the connection by entering this command:
      Code:
      adb devices
    • It should return your device serial number, once you've verified a connection you can start the process.
    • Command #1
      Code:
      adb push oneXchopper /data/local/tmp/xpwn
    • Command #2
      Code:
      adb push busybox /data/local/tmp/busybox
    • Command #3
      Code:
      adb push ownage /data/local/tmp/phase1.sh
    • Command #4
      Code:
      adb shell chmod 755 /data/local/tmp/xpwn /data/local/tmp/busybox
    • Command #5
      Code:
      adb shell ln -s /data/local/tmp/busybox /data/local/tmp/sed
    • Command #6
      Code:
      adb shell "/data/local/tmp/xpwn"
    • Command #7
      Code:
      adb reboot bootloader
    • Now test if it worked by entering this command:
      Code:
      fastboot oem readcid

    Hopefully you'll see 11111111, then you can go to htcdev and unlock your bootloader.

    z7e6jQa.jpg

    [SIZE=+1]2. How To Unlock The Bootloader On An AT&T Phone With 5.18 Software[/SIZE]

    All AT&T phones are blocked from having their bootloader unlocked at htcdev, they achieve this by checking the CID of the device. Any device with the at&t CID (CWS__001) will not be able to do it, so you need to use an exploit which allows you to get SuperCID (11111111). There is no actual single exploit to do this on the 5.18 firmware, you need to use a couple of separate methods in conjunction to get it done.

    • Go to the Weaksauce thread and get temporary root using that tool.
    • Once you have temp-root you need to go to the Rumrunner S-off site and use that tool to get s-off. Make sure you read the instructions carefully. The device will have to reboot during the s-off process, which means that the Weaksauce app may or may not automatically root again after boot, you need to keep an eye on this because if it doesn't you'll need to do it manually when the device boots up otherwise the rumrunner method won't work. This can be frustrating, this is a finicky process, this isn't exactly the easiest method in the world but it does indeed work.
    • Checking your bootloader to ensure that you have s-off.
    • Boot into the bootloader, make sure your phone is connected to your PC via usb, and issue this command:
      Code:
      fastboot oem writecid 11111111
    • Confirm that you now have SuperCID with this command:
      Code:
      fastboot oem readcid

    That's it, once you have SuperCID you can go to htcdev and unlock your bootloader.

    z7e6jQa.jpg

    [SIZE=+1]3. How To Install A Custom Recovery On Your Device[/SIZE]

    Prerequisites: unlocked bootloader.

    • Download the recovery of your choice.
    • Check the md5 to verify its integrity (where possible).
    • Place the file in your fastboot folder (this is where fastboot.exe is located on your PC).
    • Put the phone in fastboot mode and connect it to your PC via usb cable.
    • Open a command prompt from within your fastboot folder (shift + right click, select open command prompt here), and enter the following commands:
      Code:
      fastboot flash recovery openrecovery-twrp-2.8.7.0-evita.img
      (The recovery filename in the command will change depending on which recovery you're flashing)
      Code:
      fastboot erase cache
      Code:
      fastboot reboot
    • Select the recovery option from your bootloader screen to enter your custom recovery.

    z7e6jQa.jpg

    [SIZE=+1]4. How To Make A Nandroid Backup With TWRP Recovery[/SIZE]

    Prerequisites: unlocked bootloader, TWRP recovery.

    A nandroid backup is a very important thing to have before installing any custom software on your device. It's basically a backup of your stock system that you can fall back on if anything goes wrong or if you just want your stock ROM back. You can also use the backup tool to create a backup of your favourite ROM set up exactly the way you like it. The backup you create can be easily restored using the restore tool in TWRP recovery.

    All you need to do is enter TWRP recovery, select the backup option from the TWRP home screen, check the system/data/boot boxes, and swipe to backup. The process will take a few minutes.
    Please note: Backups can easily take up over 1gb of space in your internal storage. Moving them to a PC or external drive is a great idea to save space on your phone.

    z7e6jQa.jpg

    [SIZE=+1]5. How To Install A ROM with TWRP Recovery[/SIZE]

    Prerequisites: unlocked bootloader, TWRP recovery.

    Installing a ROM is a pretty straight forward and easy process. Before you install anything you should make a nandroid backup (instructions above).

    • Download a ROM and appropriate Gapps package (if required) and place on your device.
    • Boot into your custom recovery.
    • Perform a full wipe.
      • Select the wipe option from the TWRP home screen.
      • Select advanced wipe.
      • Check the system, data, cache, and dalvik cache options.
      • Swipe to wipe.
    • Install the ROM.
      • Select the install option from the TWRP home screen.
      • Navigate to where you have the ROM zip stored on your sd card and select it.
      • Swipe to install.
        Most ROMs will run an installer script at this point but some ROMs have what is called an Aroma Installer which allow you to choose some install options before the script runs.​
      • If you're flashing an aosp (not Sense based) ROM you will also need to install the appropriate gapps package directly after installing the ROM.
    • Once you've installed all necessary zips you'll have an option to wipe cache/dalvik and an option to reboot system. Wipe the cache/dalvik, hit the back button, and hit the reboot system button.
    Please note: if your phone has a hboot of 1.14 or higher and is s-on you'll also need to flash the boot.img with fastboot. Do not hit the reboot system button at the end of this process. Hit the home button, select the reboot option from the TWRP home screen, then hit the reboot bootloader button. Instructions to flash the boot.img are below.

    z7e6jQa.jpg

    [SIZE=+1]6. How To Flash A Boot.img With Fastboot[/SIZE]

    Prerequisites: unlocked bootloader.

    If your phone has a hboot of 1.14 or higher and is s-on, flashing a ROM or kernel through your recovery of choice won't be enough to boot the phone. The boot.img included in the ROM zip is unable to be installed by the recovery due to a security restriction that was introduced in the 1.14 hboot. Every time you want to flash a ROM you also need to flash the boot.img manually via fastboot.

    • Open/extract/view the ROM zip and in the root directory you'll see a file called "boot.img", copy this file and put it in your fastboot folder on your PC.
    • After you've flashed the ROM in recovery, instead of selecting a normal reboot select to reboot to the bootloader.
    • Once your phone has booted into the bootloader you can connect it to your PC, it should now say "fastboot usb" on the screen.
    • Open a command prompt from within your fastboot folder (shift + right click, select open command prompt here) and issue this fastboot command:

      Code:
      fastboot flash boot boot.img
      It'll take a few seconds to flash the boot.img.
    • Once it's finished you can use the following command to reboot:
      Code:
      fastboot reboot
    Now your phone should successfully boot up into your brand new ROM. Remember, each time you want to flash a new ROM you need to flash the boot.img as well. If you decide to get s-off on your device you will no longer need to go through this process.

    z7e6jQa.jpg

    [SIZE=+1]7. How To Install A Custom Kernel With TWRP Recovery[/SIZE]

    Prerequisites: unlocked bootloader, TWRP recovery.

    A custom kernel can open up a new level of control over your device, such as overclocking/underclocking, undervolting, changing governors, changing I/O schedulers, adjusting colour calibrations, adjusting sound calibrations, and many other options.

    • Download a kernel that is compatible with your current ROM.
    • Check the md5 to verify its integrity.
    • Enter TWRP recovery.
    • Select the install option from the TWRP home screen.
    • Navigate to the kernel and select it.
    • Swipe to install.
    • You'll have an option to wipe cache/dalvik and an option to reboot system. Wipe the cache/dalvik, hit the back button, and hit the reboot system button.

    Once your phone has booted up you can use a kernel tuning app to change governors, I/O scheduler, clock speed, and other options. Some of the popular kernel apps are Trickster Mod, No Frills, Kernel Tuner, and many more.

    z7e6jQa.jpg

    [SIZE=+1]8. How To Make Sure You Can Pretty Much Always Recover From An Accidentally Wiped System[/SIZE]

    Prerequisites: unlocked bootloader, TWRP recovery.

    There may come a time when you accidentally wipe your OS while trying to perform a basic cache wipe in recovery. Don't laugh, it can happen to the best of us. The best way to insure yourself against being stuck in recovery is to keep a ROM zip or a TWRP/CWM backup (a nandroid backup) on your sd card at all times.
    This solution seems like common sense but apparently there are quite a few people out there who don't store a ROM or backup on their phone. You might think it's easy to just mount the sd card and copy a ROM across to your phone from your PC (which is definitely an option), but there's always a chance that you won't be near your PC at the time, or it won't recognise your phone properly. Basically you need to insure yourself against Murphy's law.

    z7e6jQa.jpg

    [SIZE=+1]9. How To Flash The 2.15 Firmware[/SIZE]

    Prerequisites: unlocked bootloader, s-off, SuperCID.

    Warning! If you have the middle eastern variant (Evita_utl) do not flash this firmware, it is not compatible with your device and will cause irreparable damage.
    • Download the firmware from here.
    • Place it in your fastboot folder and rename it to "215firmware.zip" to make things easier later on.
    • Reboot into the bootloader and connect your phone to your PC via usb cable.
    • Open a command prompt from within your fastboot folder (shift + right click, select open command prompt here) and issue this fastboot command to check your fastboot connection:
      Code:
      fastboot devices
    • Once you've established a working connection (it'll show your serial number) you can start the process with this command:
      Code:
      fastboot oem rebootRUU
      The phone will now boot into rebootRUU mode which is a black screen with the HTC logo.
    • Issue this command:
      Code:
      fastboot flash zip 215firmware.zip
      If the output ends with "FAILED (remote: 90 hboot pre-update! please flush image again immediately)", run the previous command again. If it ends with "INFO..... OK", just reboot to the bootloader with this command:
      Code:
      fastboot reboot-bootloader
    • Verify the flash was successful by checking the hboot version and radio version in the bootloader screen. They should be as follows:
      Hboot: 2.15
      Radio: 1.31a.32.45.16_2
    • Reboot your phone by issuing this command:
      Code:
      fastboot reboot
    Please note that the progress bar on the screen of your phone won't ever reach 100% even after the process is finished. As long as the process says it's finished in the command prompt it's safe to reboot.

    z7e6jQa.jpg

    aDlDoZJ.jpg

    Donate To Me
    Sent from my Evita
    3
    For further information
    2
    Thank you so much.
    Now my device have 2.15 firmware with s-off
    You can suggest me best and latest ROM

    No problems, glad to help. I can't suggest a ROM as I don't use this device anymore, just have a look in the development sections and find one you think you might like.
    1
    Hi Timmaaa,
    Assuming my evita, which is locked on 4.2.2, can be unlocked following the steps in http://xdaforums.com/one-x-att/general/how-to-unlock-bootloader-s-off-sense-5-t2865712 - would I just pick up on your guide starting with installing TWRP? It seems like if Rumrunner works, it will take care of the CID, S-OFF and bootloader unlocking.

    Thanks!

    P.S. my apologies if its a silly question- I've only rooted/flashed my TF300t which was a while ago

    Once you have s-off you need to change your CID to SuperCID:

    Code:
    fastboot oem writecid 11111111

    Then you can go unlock your bootloader at htcdev. Then you can go to my guide and install TWRP, make a backup, and install ROMs.

    Transmitted via Bacon
    1
    That was quick!

    Following your advice i tried:

    • r1-endeavor-superboot.zip
    • recovery-clockwork-touch-5.8.4.0-endeavoru.img
    • philz_touch_6.01.0-endeavoru
    • recovery r1-modaco-recovery-clockwork-touch-endeavoru
    • boot r1-modaco-recovery-clockwork-touch-endeavoru

    i ended by loading the recovery twrp-2.8.7.5-evita, and now it works! Thank you very much!
    The problem is that i tried to install Liberty-6th-4.4.2-ville-evita-r123 (and flashing the boot.img) and that it's not going further than the HTC one screen... I'm still working on this.
    Do you know a way to copy a ROM from the bootloader?

    The problem is that you were flashing files for an entirely different device. Those files that have Endeavoru in the filename are for the HTC One X. You must be very careful, you're lucky you didn't brick your phone flashing those zips. You have the HTC One XL / AT&T One X (codename Evita), not the HTC One X (codename Endeavoru), I can only guess that you wandered into the wrong device section here on XDA and found those. Make sure you stay within the section you're in now, and only flash zips found within it (those with Evita in the filename) or you could brick your phone.

    You can't transfer files while in the bootloader. Have you followed all instructions for that ROM?