[EVO 4G Q&A, Help & Troubleshooting] dkman123:
Rooting

I had this whole thing written up, but my post hiccupped. My phone was originally on Sprint then switched to Ting. The carrier info was not affected by RUU or rooting. I very recently ran the RUU back to stock and re-rooted. Sorry, I don't have links, but I do have the filenames (and I do have the files so I could upload them somewhere).

The stickies here will have more background info. I'm a techie so I only take the notes I need to get by, but like to have a step-by-step so I'm fairly thourough.

There used to be a one-click sort of option, but HTC took that ability away. None of the steps are super hard but it's nice to have a techie background. The linux LiveCD may be scary for the inexperienced.

Here are my notes:

The steps to rooting this phone (any HTC are) -

Prerequisite: Android SDK (or at least fastboot and adb - when you connect your phone to the PC "adb devices" should identify it)

1. Unlock bootloader using HTCdev.com

WARNING: THIS WILL FACTORY RESET YOUR PHONE

Select Device - All Other Supported Models

Settings->Battery and uncheck Fast boot

Hold Volume Down + Power

Fastboot (Volume buttons to move, power to select)

Connect to PC

run "fastboot oem get_identifier_token"

Copy result (minus INFO) Right Click > Mark > highlight the block of text > Right click to copy (include start and end)

Copy emailed Unlock_code.bin to where fastboot.exe is

*** START HERE IF YOU ALREADY HAVE Unlock_code.bin ***

run "fastboot flash unlocktoken Unlock_code.bin"

Volume buttons to move, power to select

to relock your boot loader run "fastboot oem lock"

2. Install custom recovery (TWRP in my case)

Enable USB Debugging

Settings - More - Mobile Network Sharing - Check HTC Sync Manager

or Developer Options - Check USB Debugging ???

copy the SuperSU.zip to the SD Card

copy the UPDATE-SuperSU-v2.01.zip to the SD Card (you may be able to go straight to 2.01)

reboot to bootloader

go into fastboot

fastboot.exe flash recovery TWRP-Recovery-2.7.1.0b-jewel-CPTB.img

fastboot erase cache

go into bootloader

go into recovery

it may boot normal the first time

if it does shut down

boot into bootloader

and retry fastboot - recovery

3. Use TWRP to install SuperSU to get rooted, or just install a rooted rom.

in TWRP, choose install

navigate to your SuperSU.zip

install it

choose install

navigate to your UPDATE-SuperSU-v2.01.zip

install it

choose reboot system

4. Follow the instructions in S-Off_instruct.txt to get S-Off

--

To run the RUU (which puts your phone back into a stock build) I needed to relock the bootloader

boot into bootloader

fastboot

fastboot oem lock (in android sdk)

prerequisites:

you need to be "relocked"

set Dev Options - USB debugging is on

run the RUU as admin in Windows

RUU_JEWEL_CL_JB43_SENSE50_MR_Sprint_WWE_4.13.651.4_R…igned_one_step.exe

full name RUU_JEWEL_CL_JB43_SENSE50_MR_Sprint_WWE_4.13.651.4_Radio_1.13.11.1105_NV_3.02_003_PRL25007_release_353492_signed_one_step.exe

note: can run "adb reboot bootloader" rather than holding power and volume down to get into the bootloader

--

After running Firewater S-Off

(bootloader info)

*** TAMPERED ***

*** UNLOCKED ***

JEWEL PVT SHIP S-OFF RL

HBOOT-2.10.0000

RADIO-1.13.11.1105

OpenDSP-V33.1.0.45.1128

eMMC-boot

Mar 4 2014,14:26:40:1728

-- (Settings - About - Software info)

Android 4.3

Sense 5.0

Software 4.13.651.4

HTC API 5.45

PCI 3.02_003

PRL 24018

=============================================

contents of S-Off_Instruct.txt:

# To get S-Off on an HTC Evo 4G LTE (Jewel) with HBoot 2.10

#

# Boot a Linux 32 bit LiveCD (such as Ubuntu 12.04)

# these apps are in the Linux32BitApps folder

extract android-studio zip to ~/Downloads

extract jdk zip to ~/Downloads

copy firewater to ~/Downloads

sudo update-alternatives --install "/usr/bin/javac" "javac" "/home/ubuntu/Downloads/jdk1.8.0_05/bin/javac" 1

sudo update-alternatives --install "/usr/bin/java" "java" "/home/ubuntu/Downloads/jdk1.8.0_05/bin/java" 1

sudo update-alternatives --set "javac" "/home/ubuntu/Downloads/jdk1.8.0_05/bin/javac"

sudo update-alternatives --set "java" "/home/ubuntu/Downloads/jdk1.8.0_05/bin/java"

sudo nano /etc/profile

# add the text below to the end

JAVA_HOME=/home/ubuntu/Downloads/jdk1.8.0_05

PATH=$PATH:$JAVA_HOME/bin:/home/ubuntu/Downloads/android-studio/sdk/platform-tools

export JAVA_HOME

export PATH

ANDROID_SDK_HOME=/home/ubuntu/Downloads/android-studio/sdk

export ANDROID_SDK_HOME

# reload system-wide PATH

. /etc/profile

cd ~/Downloads/android-studio/bin

./studio.sh

# firewater

# http://firewater-soff.com/instructions/

# copies the file to the phone and runs it locally on the phone

adb reboot # <-important!!!!

adb wait-for-device push firewater /data/local/tmp

adb shell

su

chmod 755 /data/local/tmp/firewater

/data/local/tmp/firewater

#--------------------------------------------------

# Notes for installing java from a tar.gz file for normal usage

#sudo mkdir -p /usr/lib/jvm

## copy jdk zip to /usr/lib/jvm

#cd /usr/lib/jvm

#sudo tar zxvf jdk-8-linux-i586.tar.gz

#sudo rm jdk-8-linux-i586.tar.gz

#sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.8.0_05/bin/javac" 1

#sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.8.0_05/bin/java" 1

#sudo update-alternatives --set "javac" "/usr/lib/jvm/jdk1.8.0_05/bin/javac"

#sudo update-alternatives --set "java" "/usr/lib/jvm/jdk1.8.0_05/bin/java"

sudo nano /etc/profile

# add the text below to the end

## JAVA_HOME=/usr/lib/jvm/jdk1.8.0_05

## PATH=$PATH:$JAVA_HOME/bin

## export JAVA_HOME

## export PATH