I put these notes together for my own understanding as I went through the process of rooting my Boost HTC One SV (K2_CL). I subsequently discovered this thread (by @EarlyMon), which is a resource I wish had shown up in the search results before I went through the process. I'm leaving this thread up in case others have difficulty — like I did — finding comprehensive instruction on how to root an Android from a Mac CLI Terminal.
*******************************************************************************************
The process for gaining root access to HTC One SV (aka K2_CL):
*******************************************************************************************
Step One: Download Requisite Files
You’ll need to download a few things, so let's get that over with upfront.
Okay, so you've downloaded the mini-SDK, the TWRP custom recovery image, and the SuperSU installer.
You'll need to open a Terminal window (or whatever CLI you prefer). If you've never worked with your CLI, I highly recommend taking a free and easy Command Line Crash Course offered by Zed Shaw.
*******************************************************************************************
Step Four: Unlock Bootloader
This is what unlocks the phone so that you can flash a recovery image to it (normally this would need to be done by your mobile provider). Heads up, this part can take *a while* but it will work if you stick with it.
You'll need to go to the HTC Developer site and register as a developer. Once you've registered and confirmed your account, go to the Unlock Bootloader page and select the appropriate Bootloader Unlock from the device dropdown (chances are, you are: "All Other Supported Models"). HTC will need a unique identifier token for your phone. Plug into the USB port of your computer (make sure "USB Debugging" is selected on your phone), and type the following into your Terminal window:
Copy the entire output string <<INCLUDING START/END TAGS>> (use alt+cmd to omit the leading line headers) and paste it into HTC's page in the panel prompting for "my device token." HTC will email you an unlock code. Download it, and then enter the following into your Terminal window to copy the code to your "root" folder, and then install the code on your system:
Enter the following into your Terminal window to flash the unlock code to your phone:
Your phone will prompt for confirmation of the unlock. Go ahead and confirm.
*******************************************************************************************
Step Five: Flash the Custom Recovery Image to Your Phone
Now that your phone is unlocked, you can flash the TWRP recovery image to your phone. Start by putting your phone in Fastboot mode:
Notice that at the top of your phone screen it now says "Tampered/Unlocked." This means that you've successfully unlocked the bootloader.
Enter the following to flash the TWRP recovery image to the recovery partition of your phone:
After it finishes, reboot the bootloader in Fastboot mode:
With the volume buttons, first select Bootloader and then select Recovery. Your phone will go to the white HTC screen and say "Entering Recovery" for a few seconds. This should only take a few seconds, and then you'll see the TEAMWIN logo. If it hangs up, you probably flashed a recovery image that is too old for your phone.
*******************************************************************************************
Step Six: Install SuperSU
From the TWRP menu, you can select Install and navigate to the SuperSU.zip file you put on your phone's SD card (it's probably in the Download folder). Swipe to confirm you want to install SuperSU. After the install is complete, reboot the system.
If done right, your phone will now be rooted. However, just because you've rooted your phone doesn't mean it can do all the awesome things you probably want it to do. But now that you have superuser (i.e., root) access, you can install any custom/modded ROM you want and all the cool rooted-only apps out there. Start owning your phone!
*******************************************************************************************
The process for gaining root access to HTC One SV (aka K2_CL):
1. You'll need to unlock your phone's bootloader. This is a process in and of itself.
2. Once your phone is unlocked, you can flash a custom recovery image to the recovery partition of your phone. I recommend using TeamWin Recovery Project (TWRP).
3. Once you've successfully put your phone into "recovery mode," you'll have the option of using TWRP to install SuperSU — an access management tool that gives you superuser (i.e., root) access — or a custom rooted ROM.
** It probably goes without saying, but you should have a full backup of your phone's data and apps before tampering with any of the current set-up.
2. Once your phone is unlocked, you can flash a custom recovery image to the recovery partition of your phone. I recommend using TeamWin Recovery Project (TWRP).
3. Once you've successfully put your phone into "recovery mode," you'll have the option of using TWRP to install SuperSU — an access management tool that gives you superuser (i.e., root) access — or a custom rooted ROM.
** It probably goes without saying, but you should have a full backup of your phone's data and apps before tampering with any of the current set-up.
*******************************************************************************************
Step One: Download Requisite Files
You’ll need to download a few things, so let's get that over with upfront.
- Download the Android mini-SDK
You'll need two Android Software Development Kit (SDK) utilities: adb & fastboot to connect to your device via your Command Line Interface (CLI). I recommend reading up on the capabilities of these tools, as they're super useful for exploring and interfacing with your Android file system.- On the second post of this forum thread (@El Presidente @scary alien @EarlyMon), you'll find a mini-SDK download that reflects Feb 2013 updates.
- On the second post of this forum thread (@El Presidente @scary alien @EarlyMon), you'll find a mini-SDK download that reflects Feb 2013 updates.
- Download a recovery image
You'll need to download a custom recovery image to flash to your phone's recovery partition and kick it into "recovery mode" after you unlock it. TeamWin Recovery Project has a huge number of recovery images to choose from. Go to their site and find the right recovery image for your phone.
**Two things to keep in mind as you're looking for a recovery image:
- Your phone is like a mini computer. It has an operating system. We need to pass it information [about "recovery"] in a way that it will recognize. So pay attention to how old the recovery image is you're using. If you — like me — are running Android 4.2.2, you'll need a TWRP version that's at least 2.8.
- Remember that this is more than a mini computer. Your phone has to connect to radio signals for your mobile service provider in order to be a functioning phone. So the recovery image has to match your particular carrier's version of your phone. The most helpful thing is to do some research and figure out what board your device comes with. For example, the Boost Mobile HTC One SV for the U.S. is the K2_CL.
- Download the SuperSU installer (or a rooted ROM)
You'll need to download either the Chainfire's SuperSU installer or a custom rooted ROM to install after you unlock your phone and boot it into "recovery" mode. This is what will give you superuser (i.e., root) access.
Okay, so you've downloaded the mini-SDK, the TWRP custom recovery image, and the SuperSU installer.
- For ease of instruction, I'd recommend 1) creating a folder on your desktop called "root," and putting everything in that folder so your computer can find it; 2) naming the TWRP recovery image "recovery.img"; and 3) naming the SuperSU installer "supersu.zip."
- Unzip the Android.zip (the mini-SDK) and make sure the contents go in the "root" folder.
- You’ll need to copy the supersu.zip file onto the root of your phone’s SD card. You can do this with HTC Sync (which, imo, sucks) or you can use your phone's internet browser to navigate to the site and download the file directly onto your phone. Leave it zipped up in the Downloads folder for now.
You'll need to open a Terminal window (or whatever CLI you prefer). If you've never worked with your CLI, I highly recommend taking a free and easy Command Line Crash Course offered by Zed Shaw.
- Open a Terminal window and navigate to the "root" folder you created on your desktop:
cd ~/Desktop/root/ - Run the script @EarlyMon included in the zip by simply typing:
sh sdk.sh
- Move the adb and fastboot utilities to your computer's root directory (you'll be asked to enter your computer's password):
sudo mv ~/Desktop/root/fastboot /usr/bin
sudo mv ~/Desktop/root/adb /usr/bin
*******************************************************************************************
Step Four: Unlock Bootloader
This is what unlocks the phone so that you can flash a recovery image to it (normally this would need to be done by your mobile provider). Heads up, this part can take *a while* but it will work if you stick with it.
You'll need to go to the HTC Developer site and register as a developer. Once you've registered and confirmed your account, go to the Unlock Bootloader page and select the appropriate Bootloader Unlock from the device dropdown (chances are, you are: "All Other Supported Models"). HTC will need a unique identifier token for your phone. Plug into the USB port of your computer (make sure "USB Debugging" is selected on your phone), and type the following into your Terminal window:
fastboot oem get_identifier_token
Copy the entire output string <<INCLUDING START/END TAGS>> (use alt+cmd to omit the leading line headers) and paste it into HTC's page in the panel prompting for "my device token." HTC will email you an unlock code. Download it, and then enter the following into your Terminal window to copy the code to your "root" folder, and then install the code on your system:
cp ~/Downloads/Unlock_code.bin ~/Desktop/root
sudo mv ~/Downloads/Unlock_code.bin /Volumes/Macintosh\ HD/etc
sudo mv ~/Downloads/Unlock_code.bin /Volumes/Macintosh\ HD/etc
Enter the following into your Terminal window to flash the unlock code to your phone:
fastboot flash unlocktoken Unlock_code.bin
Your phone will prompt for confirmation of the unlock. Go ahead and confirm.
*******************************************************************************************
Step Five: Flash the Custom Recovery Image to Your Phone
Now that your phone is unlocked, you can flash the TWRP recovery image to your phone. Start by putting your phone in Fastboot mode:
adb reboot bootloader
Notice that at the top of your phone screen it now says "Tampered/Unlocked." This means that you've successfully unlocked the bootloader.
Enter the following to flash the TWRP recovery image to the recovery partition of your phone:
cd ~/Desktop/root
fastboot flash recovery recovery.img
fastboot flash recovery recovery.img
After it finishes, reboot the bootloader in Fastboot mode:
fastboot reboot-bootloader
With the volume buttons, first select Bootloader and then select Recovery. Your phone will go to the white HTC screen and say "Entering Recovery" for a few seconds. This should only take a few seconds, and then you'll see the TEAMWIN logo. If it hangs up, you probably flashed a recovery image that is too old for your phone.
*******************************************************************************************
Step Six: Install SuperSU
From the TWRP menu, you can select Install and navigate to the SuperSU.zip file you put on your phone's SD card (it's probably in the Download folder). Swipe to confirm you want to install SuperSU. After the install is complete, reboot the system.
If done right, your phone will now be rooted. However, just because you've rooted your phone doesn't mean it can do all the awesome things you probably want it to do. But now that you have superuser (i.e., root) access, you can install any custom/modded ROM you want and all the cool rooted-only apps out there. Start owning your phone!
Last edited: