Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,811,290 Members 46,686 Now Online
XDA Developers Android and Mobile Development Forum

VomerGuides [M8]: Bootldr Unlock, S-OFF, SuperCID, Firmware Upgrade & Custom Recovery

Tip us?
 
vomer
Old
(Last edited by vomer; 31st August 2014 at 01:58 AM.)
#1  
vomer's Avatar
Recognized Contributor - OP
Thanks Meter 5,884
Posts: 3,705
Join Date: Nov 2008

 
DONATE TO ME
Default VomerGuides [M8]: Bootldr Unlock, S-OFF, SuperCID, Firmware Upgrade & Custom Recovery

Welcome to VomerGuides: [M8 Edition]

Introduction:

Following this guide will allow you to:

- Unlock Bootloader
- Install Custom Recovery
- Root your device
- Achieve S-OFF
- Change your CID to SuperCID (allowing you to bypass regional ROM restrictions)
- Upgrade to the latest firmware (without loosing any data on your SD card)

This guide is based on the UL model of the M8 - you may follow the same steps for other editions but will need to find your respective firmware elsewhere.

Donations:

I do not believe that I should be charging for information sharing. However, having the physical hardware helps me improve this content and support you better as I do require hardware to test/work on for all my content and it's not always possible for me to find someone to borrow devices from.

If you would like to support my work donate to me via:



Thank you

Disclaimer & Copyrights:

I test everything before I share these guides - thus I know they work as intended. However, please proceed at your own risk as I do not take any liability for your devices.

Please do not copy contents of this guide without explicit permission from me. I like to maintain a set standard and quality of the information I share.

Please refrain from posting mirrors as I like to track downloads - I primarily use AndroidFileHost and they mirror files on multiple servers automatically.

READING & FOLLOWING EACH STEP IS KEY TO SUCCESS.

Let's get started!


SECTION 0: SYSTEM PREP:

Let's setup ADB and fastboot

Windows:

- Automated: http://forum.xda-developers.com/show....php?t=2588979 (follow the steps in the software)

- Manual Method:

Download this file and extract the folder called "adb" to your C: drive. Your path should look like this:

Code:
C:\adb\
You will need to open a command prompt window using this method:

Code:
- Go to the C:\adb\ folder 
- hold down SHIFT key and RIGHT-CLICK 
- select "Open command window here".
Mac & Linux:

Install ADB & fastboot using: this file

1. Extract the downloaded zip to your desktop
2. Open Terminal and type in:

Code:
su
cd Desktop/Android/ (note: Android is the directory extracted from zip file)
3. Now type

Code:
./ADB-Install-Mac.sh
Note: By using the method above, your adb and fastboot files are stored at this location on your Mac: /usr/bin/

Let's setup HTC Drivers:

Install HTC Sync Manager to get the HTC One M8 drivers installed, which you will need for this process

SECTION 1: UNLOCK BOOTLOADER, CUSTOM RECOVERY & ROOT

BOOTLOADER UNLOCK:

Make sure you check off all of the following before moving on to the first step.

- Make sure your phone is at least 60% charged.
- Register for an account at HTCdev.
- Enable USB debugging in your phone's Developer options.
- Un-check "Fast boot" on your phone by going to Settings -> Battery Manager.
- Install ADB and Fastboot on your computer.
- Make sure to back up all of your app data using either ADB or HTC Sync, because you will be wiping your phone.
- Install the HTC One M8 drivers on your computer (if you have HTC Sync installed, then you already have them).

Enter Fastboot (bootloader) Mode

Place your device into fastboot mode by plugging in your HTC One to your computer,
then powering it down by holding both the Power and Volume Down buttons until you see the screen below.



Locate Your Identifier Token

Once the screen above appears, open up a terminal (command prompt) on your computer. To get the right Unlock Code for your HTC One, you first need to get your device's specific Identifier Token, so type the following into your terminal window, followed by the Enter key.

Code:
fastboot oem get_identifier_token
Copy the Token

Now copy the code you get, but do not include the first (bootloader) portions.



HTCdev

Go to HTCdev and log in to your account.

- Select Unlock Bootloader and then Get Started.
- From the drop-down menu, select HTC One (M8), then click on Begin Unlock Bootloader.
- Agree to the terms and conditions and click Proceed to Unlock.
- On the next page, scroll all the way down and click on Proceed to Step 5.
- Paste the identifier token you copied earlier into its corresponding box near the bottom (called My Device Identifier Token) and click Submit.
- The Unlock Code will be emailed to you, so once you receive the email, download the attachment and place it on your Desktop.

- Initiate the Unlock Code - in the terminal/command prompt, type the following:

Code:
fastboot flash unlocktoken Desktop/Unlock_code.bin

Note: Change Desktop/Unlock_code.bin to the location of your code.
- Your phone will now prompt you to unlock your bootloader, using the Volume Up button, select Yes and confirm your unlock with the Power button.
- Your phone will reboot and your bootloader will be unlocked!
- After the reboot, you will need to set up your device again as if it were new.
- After getting set up, make sure to re-enable USB debugging and plug it back into your computer.

CUSTOM RECOVERY

Get latest TWRP: http://techerrata.com/browse/twrp2/m8

With your phone plugged into your PC, type in:

Code:
adb reboot bootloader
Once in bootloader mode, type:

Code:
Mac/Linux: fastboot flash recovery /Users/vomer/Desktop/openrecovery-twrp-2.7.1.0-m8.img
Windows: fastboot flash recovery C:\adb\openrecovery-twrp-2.7.1.0-m8.img
Then:
Code:
fastboot reboot
You are now the the latest version of TWRP.

ROOT

- Download SuperSU to your device
- Reboot into recovery mode:
Code:
via fastboot: With your phone plugged in, type in: adb reboot recovery
or
manually: Switch off the device first and then press the Volume Down + Power buttons - once on the bootloader screen use the volume keys to scroll to "Recovery Mode" and press the power button to make the selection
- In recovery, tap on Install and then select the SuperSU zip file.
- When done, select the Reboot system option to boot the device into Android OS.

You can confirm this by using apps like Root checker on the Play Store

SECTION 2: S-OFF & SUPER CID

There are a few basics you need to get out of the way before you can start this process:

- Uninstall HTC Sync.
- Enable USB debugging on your phone
- Turn off all security settings from Settings -> Security.
- Disable Fast boot mode from Settings -> Power/Battery Manager.

Now for the good part!

- Download firewater
- Save the downloaded file to your ADB folder (C:/adb/ or the Desktop if you are on Mac/Linux)
- Plug in your device to your computer.
- Hold Shift and right-click on any empty space in the adb folder and click on Open command prompt window here
- Enter the following in the command prompt window:

Code:
adb reboot
Code:
adb wait-for-device push firewater /data/local/tmp
Code:
adb shell
Code:
su
Code:
chmod 755 /data/local/tmp/firewater
Code:
/data/local/tmp/firewater
- Type in Yes when prompted and hit enter.

- When it is done and says you have S-Off, type the following:

Code:
exit
Code:
exit
Code:
adb reboot bootloader
- The phone should now be S-OFF
- Stay at this bootloader screen - let's get you SuperCID:

- Copy/Paste the command below or make sure there a eight 1's:

Code:
fastboot oem writecid 11111111
- Reboot phone into bootloader mode (by typing: adb reboot bootloader) and verify CID#. It should look similar to this:



SECTION 3: FIRMWARE UPGRADE

Latest firmware's can be found in the post below.

Download the firmware zip file you would like to flash & rename it to firmware.zip

Plug in phone to PC and type this in terminal/command prompt:

Code:
adb reboot bootloader
Start by checking current system details. Type:

Code:
fastboot getvar all

(bootloader) version: 0.5
(bootloader) version-bootloader: 3.16.0.0000 < This is your bootloader version
(bootloader) version-baseband: 1.15.2133156.UA13G < This is your radio version
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main: 1.54.401.5 < This is your firmware version
(bootloader) cidnum: 11111111 < This is your CID
Now type:

Code:
fastboot reboot-bootloader
After that, type:

Code:
fastboot oem rebootRUU 

Note: if this command freezes,  just disconnect the USB cable and hold the power and volume down buttons until the device reboots. 
Then, repeat the steps above again.
Next, type:

Code:
fastboot flash zip /Users/vomer/Desktop/firmware.zip

Windows users: your command will look something like this: fastboot flash zip C:\adb\firmware.zip
Next, repeat the step above a second time.

Last Step:

Code:
fastboot reboot
Then I went back to the bootloader mode (after the phone reboots successfully):

Code:
adb reboot bootloader
Checked if the update worked:

Code:
fastboot getvar all

(bootloader) version: 0.5
(bootloader) version-bootloader: 3.16.0.0000
(bootloader) version-baseband: 1.16.2133156.UA15G < Looks New!
(bootloader) version-main: 1.54.401.10 < Looks New!
CONCLUSION:

Please note my comments on donations/help at the beginning of this guide - it help's me keep the quality up to par for all of us.

Please feel free to provide any feedback!

Thanks for using VomerGuides
ARHD - Recognized User
VomerGuides - M7 | M8
VomerTweaks - Supported Devices
MISC - N5: Stock 4.4.4 | L Preview

DONATE - Donate via PayPal
The Following 130 Users Say Thank You to vomer For This Useful Post: [ Click to Expand ]
 
vomer
Old
#2  
vomer's Avatar
Recognized Contributor - OP
Thanks Meter 5,884
Posts: 3,705
Join Date: Nov 2008

 
DONATE TO ME
reserved if needed
ARHD - Recognized User
VomerGuides - M7 | M8
VomerTweaks - Supported Devices
MISC - N5: Stock 4.4.4 | L Preview

DONATE - Donate via PayPal
The Following 8 Users Say Thank You to vomer For This Useful Post: [ Click to Expand ]
 
Sojourner353
Old
(Last edited by Sojourner353; 17th August 2014 at 11:56 AM.)
#3  
Senior Member
Thanks Meter 115
Posts: 177
Join Date: Apr 2007
Location: Sydney

 
DONATE TO ME
I am assisting vomer with the Custom Firmware creation and uploads as he does not have an M8 for testing purposes.

All my files have been tested on my device prior to uploading however please proceed at your own risk as I do not take any liability for your devices, also confirm md5's match prior to flashing, enjoy!

As with vomer if you would like to support my work please use the Donation Button in my Signature, thank you.

Firmware Downloads (Device & SD card will not be wiped using these files):

4.4 Base Without Red Text

- 1.54.401.5 (Rename to firmware.zip after downloading)

- 1.54.401.10 (Rename to firmware.zip after downloading)

- 2.12.401.3 (Rename to firmware.zip after downloading)

- 2.22.401.4 (Rename to firmware.zip after downloading)

- 2.22.401.5 (Rename to firmware.zip after downloading)

4.4 Base With Red Text

- 1.54.401.5 (Rename to firmware.zip after downloading)

- 1.54.401.10 (Rename to firmware.zip after downloading)

- 2.12.401.3 (Rename to firmware.zip after downloading)

- 2.22.401.4 (Rename to firmware.zip after downloading)

- 2.22.401.5 (Rename to firmware.zip after downloading)
Model | HTC One M8x 32Gb Gunmetal Grey (0P6B11000)
Firmware | 2.22.401.5 (Original 1.54.709.4)
Recovery | TWRP 2.7.1.0
ROM | ViperOne 2.1.0 (2.22.401.5)
Kernel | ElementalX 1.02
HBoot | 3.18.0.0000 (Without Red Text)
Security | S-Off (Sunshine)
CID | 11111111 (Original HTC__621)
MicroSD | SanDisk 128Gb

The Following 65 Users Say Thank You to Sojourner353 For This Useful Post: [ Click to Expand ]
 
TorrentzRock
Old
#4  
TorrentzRock's Avatar
Senior Member
Thanks Meter 48
Posts: 171
Join Date: Feb 2012
Location: Kentucky
Fantastic! Great guide just as with the M7. This is much appreciated and more importantly trustworthy. It's best to remove all the guesswork when messing with these partitions and your guide does exactly that!

HTC One M8 | ARHD
The Following User Says Thank You to TorrentzRock For This Useful Post: [ Click to Expand ]
 
vomer
Old
#5  
vomer's Avatar
Recognized Contributor - OP
Thanks Meter 5,884
Posts: 3,705
Join Date: Nov 2008

 
DONATE TO ME
Quote:
Originally Posted by TorrentzRock View Post
Fantastic! Great guide just as with the M7. This is much appreciated and more importantly trustworthy. It's best to remove all the guesswork when messing with these partitions and your guide does exactly that!

HTC One M8 | ARHD
Thanks for your kind words

Sent from my Nexus 7 using Tapatalk
ARHD - Recognized User
VomerGuides - M7 | M8
VomerTweaks - Supported Devices
MISC - N5: Stock 4.4.4 | L Preview

DONATE - Donate via PayPal
The Following 2 Users Say Thank You to vomer For This Useful Post: [ Click to Expand ]
 
DLG187
Old
#6  
DLG187's Avatar
Member
Thanks Meter 30
Posts: 86
Join Date: Dec 2013
I've already gone through to S-off on my own, but your guide will be what I share with people who ask how.

Nice work!

Sent from my HTC One_M8 using XDA Free mobile app
The Following User Says Thank You to DLG187 For This Useful Post: [ Click to Expand ]
 
konsti23
Old
#7  
konsti23's Avatar
Senior Member
Thanks Meter 700
Posts: 1,639
Join Date: Oct 2007
Location: Western part of CH
Have been waiting for this. Thanks, and great work, as usual.👍👍

Sent from my SM-P600 using XDA Premium 4 mobile app
_______________________________________________

Device: HTC "GUNMETAL GRAY" ONE (M8)
Dot View Case: Yes (so color of device doesn't really matter)
ROM: ARHD eleven dot one
Kernel: Stock
Hboot: 3.18.0.0000
S: OFF
Firmware: 2.22.401.5

Tweaks: Some
Recovery: PhilZ Touch 6.57.8 -> link
Sense: Six
Android: KitKat 4.4.3
Carrier:
Swisscom
Thanx to: Mike1986.

... and damn' proud of it !

_______________________________________________

-> JOY OF LIFE <-

The Following User Says Thank You to konsti23 For This Useful Post: [ Click to Expand ]
 
iweksler
Old
(Last edited by iweksler; 1st July 2014 at 06:45 AM.)
#8  
Member
Thanks Meter 6
Posts: 78
Join Date: Apr 2006
"Latest firmware's can be found in the post below.

Download the firmware zip file you would like to flash & rename it to firmware.zip..."

Where is the latest firmware? I have htc one m8 verizon (bl unlocked, rooted, s-off, supercid).
 
vomer
Old
#9  
vomer's Avatar
Recognized Contributor - OP
Thanks Meter 5,884
Posts: 3,705
Join Date: Nov 2008

 
DONATE TO ME
Quote:
Originally Posted by iweksler View Post
"Latest firmware's can be found in the post below.

Download the firmware zip file you would like to flash & rename it to firmware.zip..."

Where is the latest firmware? I have htc one m8 verizon (bl unlocked, rooted, s-off, supercid).
It will be posted soon.

Sent from my Nexus 7 using Tapatalk
ARHD - Recognized User
VomerGuides - M7 | M8
VomerTweaks - Supported Devices
MISC - N5: Stock 4.4.4 | L Preview

DONATE - Donate via PayPal
 
StuMcBill
Old
#10  
StuMcBill's Avatar
Senior Member
Thanks Meter 101
Posts: 1,680
Join Date: Feb 2010
Fantastic guide!

One recommendation though, when you are running adb and fastboot on Mac or Linux, it should be ./adb and ./fastboot.

Cheers
Stewart
HTC One M8 : ARHD 8.1
Asus Nexus 7 (2013) - 32Gb : ParanoidAndroid & Stock 4.4.2 using MultiRom

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes