[General Topics] Gryphon30:
HTC ONE M8 Converion steps:

This is risky for your phone and I am not responsible for any damages that may happen to your phone. This is just to help anyone wanting to do this and will find all steps in

one place rather than searching forever to get the correct steps to convert your HTC ONE M8 to a GPE. These steps I used on a Telus HTC ONE M8 so I am unsure if it will work

with a CDMA carrier branded One M8.

First you have to have your bootloader unlock via HTCDev and you'd have to be rooted. I installed Android SDK for all of this. Once downloaded copy the Platform tools folder into a folder or create a folder labelled Android.

You don't need the rest just the Platform Tools folder.

1. You can find how to do that via:

You know what to put in front of this: htconeroot dot com/htc-one-root/how-to-root-htc-one-m8/

Thanks to Max for his tutorials on many android phones. This guide will show you how to unlock your bootloader and be rooted at the end.

You will also have a custom recovery. Hopefully you download the latest twrp recovery image. It might have the older recovery image linked on the site.

Below is the link to the latest recovery from twrp.

TWRP recovery for GSM models: you know what to put in front of this teamw dot in/project/twrp2/225

Once downloaded copy this image into the platform tools folder.

This is not for Verizon or Sprint. It will work with Canadian M8 from Telus. I never tested it on other Canadian models.

2. Boot into recovery and make a Nandroid backup of your stock firmware. IF anything goes wrong you can boot to twrp and restore your stock rooted backup.

Recommended that you use a microsd card and save your twrp backups to it. Preferrably 32 or 64 gigs.

3. Gaining S-Off - I have tried firewater and rumrunner many times on stock rooted and they never worked. So you will have to shell out 25 dollars for sunshine.

That is if sunshine says it will work for your phone.

4. Reset the tampered flag once you gain S-Off. This is if you want the tampered flag off.

- adb reboot bootloader

- adb shell

- su

enter this code and hit enter: Thanks to OP Scotty1223 for the code.

echo -ne '\x00' | dd of=/dev/block/mmcblk0p6 bs=1 seek=5314564

MID and CID compatability for GPE.

modelid: 0P6B12000 (AT&T)

modelid: 0P6B17000 (GPE MID)

modelid: 0P6B*****

cidnum: 11111111 (SuperCID)

cidnum: T-MOB010

cidnum: CWS__001

cidnum: BS_US001

cidnum: GOOGL001	(straight from google updates OTA)

5. Change CID:

Open command by shift then right clicking Platform tools folder and select Open Command window here:

1. adb reboot bootloader

2. fastboot oem writecid <cid name> or (cidnum above, preferrably GOOGL001 or Supercid.)

3. fastboot reboot

Change MID:

1. adb reboot bootloader

2. adb shell

3. type su (superuser)

enter the AT&T code below to change the MID. Thanks to XDA member OP Scotty1223 for these codes.

Change MID to (AT&T) first to flash the RUU.

echo -ne '\x30\x00\x50\x00\x36\x00\x42\x00\x31\x00\x32\x00\x30\x00\x30\x00\x30' | dd of=/dev/block/mmcblk0p5 bs=1 seek=16384

Enter Exit twice to get out of adb shell.

When flash is done, repeat steps and copy this

Once flashed change MID to GPE MID:

echo -ne '\x30\x00\x50\x00\x36\x00\x42\x00\x31\x00\x37\x00\x30\x00\x30\x00\x30' | dd of=/dev/block/mmcblk0p5 bs=1 seek=16384

I find that adb is quicker and easier once you get the commands down.

6. First download the correct RUU you'd like to convert too. Here is the website I used to get my RUU for Lollipop and KitKat.

Thanks to Patrick Hill for the RUU's. you know what to put in front of this www dot graffixnyc dot com/m8.php

Once downloaded copy the RUU into the Platform tools folder.

ADB method:

a. adb reboot bootloader

b. fastboot oem rebootRUU

c. fastboot flash zip RUU-HTC_One_M8_GPE_5.0.1-3.11.1700.5.zip ( you can hit tab when you type RUU and it will automatically input the entire path)

d. It will say failed. Just hit the up arrow and run the command again and it will start the flash or install.

e. once done type this command, fastboot reboot

7. Custom recovery - you can use the latest twrp that mentioned above and keep it the platform tools folder.

steps to flash the twrp recovery:

a. adb reboot bootloader

b. fastboot flash recovery <recovery image here>

c. fastboot erase cache ( just to be sure the twrp recovery installs correctly)

I would recommend making a nandroid backup of your new HTC One M8 GPE.

There you are now have a HTC One M8 GPE.