Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,770,247 Members 51,478 Now Online
XDA Developers Android and Mobile Development Forum

[GUIDES]{Evita/One XL} Timmaaa's How-To Guide For Beginners

Tip us?
 
timmaaa
Old
(Last edited by timmaaa; 28th June 2014 at 02:28 PM.)
#1  
timmaaa's Avatar
Recognized Contributor - OP
Thanks Meter 5736
Posts: 12,330
Join Date: Jun 2011
Location: Melbourne

 
DONATE TO ME
Default [GUIDES]{Evita/One XL} Timmaaa's How-To Guide For Beginners

Timmaaa's How-To Guide For Beginners
HTC One XL, AT&T, Rogers HTC One X, Telstra One XL

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.


Index
1. How To Unlock The Bootloader On An AT&T Phone With 3.18 Software

2. How To Install A Custom Recovery On Your Device

3. How To Make A Nandroid Backup With TWRP Recovery

4. How To Install A ROM with TWRP Recovery

5. How To Flash A Boot.img With Fastboot

6. How To Install A Custom Kernel With TWRP Recovery

7. How To Make Sure You Can Pretty Much Always Recover From An Accidentally Wiped System

8. How To Flash The 2.15 Firmware

1. How To Unlock The Bootloader On An AT&T Phone With 3.18 Software
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.

You need to download the xpwn.tar.gz file from this thread and 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.
You need to open a command prompt from within your fastboot folder. To do this navigate to the location where adb.exe and fastboot.exe are located, shift + right click, then 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.

2. How To Install A Custom Recovery On Your Device
Download the recovery of your choice, make sure you check the md5 to verify its integrity. Place the file in your fastboot folder (this is where fastboot.exe is located on your PC), connect your phone in fastboot mode (reboot to bootloader, connect usb cable, "fastboot usb" should now be displayed on the screen), 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 "filename.img"
(the exact filename, minus the talking marks)

Code:
fastboot erase cache
Code:
fastboot reboot-bootloader
Now you can select the recovery option from your bootloader screen to enter your custom recovery.

3. How To Make A Nandroid Backup With 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.

4. How To Install A ROM with 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).
Step 1. Perform a full wipe. Select the wipe option from the TWRP home screen, select advanced wipe, check every option except sd card/internal storage, swipe to wipe.
Step 2. Install the ROM. Select the install option from the TWRP home screen, a file explorer will now show up, 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 installing an aosp 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.

5. How To Flash A Boot.img With Fastboot
If your phone has a hboot of 1.14 or higher and is s-on simply flashing a ROM or kernel through your recovery of choice won't get the phone to boot. This is because 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. So this basically means every time you want to flash a ROM you also need to flash the boot.img manually via fastboot.

What you need to do is open/extract/view the ROM zip and in the root directory you'll see a file called "boot.img", this is what we need. You'll need to make a copy of 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. All you need to do now is 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 manually reboot your phone or use the following command to reboot it:

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.

6. How To Install A Custom Kernel With TWRP Recovery
A custom kernel can open up a new level of control over your device, such as overclocking/underclocking, changing governors, enabling sweep2wake, and many other options. Download a kernel that is compatible with your current ROM and 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. Make sure you wipe cache/dalvik cache before rebooting the system. 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.

7. How To Make Sure You Can Pretty Much Always Recover From An Accidentally Wiped System
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.

8. How To Flash The 2.15 Firmware
S-off and SuperCID required!

Download the firmware from here:

http://www.androidfilehost.com/?fid=23060877490004040

Place it in your fastboot folder (the folder where you have fastboot located on your PC). Rename it to "215firmware.zip" to make things easier later on. Open a command prompt from within that folder, or just open a command prompt and use the CD command to change directory to that fastboot directory. Connect your phone in fastboot mode and issue this command to make sure your connection is good:

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 not boot into rebootRUU mode which is a black screen with the HTC logo. Now 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 everything was successful by looking at 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
Now just reboot your phone by issuing this command:

Code:
fastboot reboot


Donate To Me
Sent from my Evita
OnePlus One | CM11S | TWRP 2.7.1.1

Do not PM me asking for assistance, that's what my Q&A thread is for!
The Following 32 Users Say Thank You to timmaaa For This Useful Post: [ Click to Expand ]
 
timmaaa
Old
(Last edited by TonyStark; 22nd February 2014 at 04:30 PM.) Reason: For future reference
#2  
timmaaa's Avatar
Recognized Contributor - OP
Thanks Meter 5736
Posts: 12,330
Join Date: Jun 2011
Location: Melbourne

 
DONATE TO ME
For further information
OnePlus One | CM11S | TWRP 2.7.1.1

Do not PM me asking for assistance, that's what my Q&A thread is for!
The Following 3 Users Say Thank You to timmaaa For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes