Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP vomer

1st July 2014, 12:40 AM   |  #1  
vomer's Avatar
OP Recognized Contributor
Thanks Meter: 7,082
 
3,893 posts
Join Date:Joined: Nov 2008
Donate to Me
More
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
Last edited by vomer; 1st October 2014 at 03:56 PM.
The Following 184 Users Say Thank You to vomer For This Useful Post: [ View ]
1st July 2014, 12:41 AM   |  #2  
vomer's Avatar
OP Recognized Contributor
Thanks Meter: 7,082
 
3,893 posts
Join Date:Joined: Nov 2008
Donate to Me
More
reserved if needed
The Following 14 Users Say Thank You to vomer For This Useful Post: [ View ]
1st July 2014, 01:07 AM   |  #3  
Senior Member
Flag Sydney
Thanks Meter: 171
 
215 posts
Join Date:Joined: Apr 2007
Donate to Me
More
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)

- 3.28.1540.5 (Rename to firmware.zip after downloading)

- 3.28.401.6 (Rename to firmware.zip after downloading)

- 3.28.401.7 (Rename to firmware.zip after downloading)

- 3.28.401.9 (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)

- 3.28.1540.5 (Rename to firmware.zip after downloading)

- 3.28.401.6 (Rename to firmware.zip after downloading)

- 3.28.401.9 (Rename to firmware.zip after downloading)
Last edited by Sojourner353; 12th November 2014 at 06:08 AM.
The Following 83 Users Say Thank You to Sojourner353 For This Useful Post: [ View ]
1st July 2014, 03:25 AM   |  #4  
TorrentzRock's Avatar
Senior Member
Flag Kentucky
Thanks Meter: 53
 
184 posts
Join Date:Joined: Feb 2012
More
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 2 Users Say Thank You to TorrentzRock For This Useful Post: [ View ]
1st July 2014, 03:31 AM   |  #5  
vomer's Avatar
OP Recognized Contributor
Thanks Meter: 7,082
 
3,893 posts
Join Date:Joined: Nov 2008
Donate to Me
More
Quote:
Originally Posted by TorrentzRock

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
The Following 3 Users Say Thank You to vomer For This Useful Post: [ View ]
1st July 2014, 05:13 AM   |  #6  
DLG187's Avatar
Senior Member
Thanks Meter: 38
 
104 posts
Join Date:Joined: Dec 2013
More
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: [ View ]
1st July 2014, 05:49 AM   |  #7  
konsti23's Avatar
Senior Member
Flag Western part of CH
Thanks Meter: 709
 
1,650 posts
Join Date:Joined: Oct 2007
More
Have been waiting for this. Thanks, and great work, as usual.👍👍

Sent from my SM-P600 using XDA Premium 4 mobile app
The Following User Says Thank You to konsti23 For This Useful Post: [ View ]
1st July 2014, 07:25 AM   |  #8  
Senior Member
Thanks Meter: 21
 
140 posts
Join Date:Joined: 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).
Last edited by iweksler; 1st July 2014 at 07:45 AM.
1st July 2014, 07:56 AM   |  #9  
vomer's Avatar
OP Recognized Contributor
Thanks Meter: 7,082
 
3,893 posts
Join Date:Joined: Nov 2008
Donate to Me
More
Quote:
Originally Posted by iweksler

"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
1st July 2014, 08:06 AM   |  #10  
StuMcBill's Avatar
Senior Member
Thanks Meter: 109
 
1,754 posts
Join Date:Joined: 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

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes