Can I Change my CID to any of the supported CIDs ( or SuperCID)
and follow the steps to put it to stock again?
I have the Asia Taiwan version, but I want the European WWE.
So if I wanted to use this guide to convert my branded unit to unbranded, I would first have to change the CID to one of the supported ones, then I can continue as per your instructions, right?
Should work, yes. I'd use HTC__001 personally as the CID
Sent from my HTC One_M8 using XDA Premium 4 mobile app
Should work, yes. I'd use HTC__001 personally as the CID
Sent from my HTC One_M8 using XDA Premium 4 mobile app
Im on HTC___Y13. It did not work for me. Afret fastboot oem reboot stock in HTC logo any help here? Thanks
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.
C:\Users\admin>adb devices
'adb' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\admin>cd documents
C:\Users\admin\Documents>cd !!!! M8 !!!!!
C:\Users\admin\Documents\!!!! M8 !!!!!>cd fastboot
C:\Users\admin\Documents\!!!! M8 !!!!!\fastboot>fastboot oem rebootRUU
...
(bootloader) Start Verify: 0
OKAY [ 0.025s]
finished. total time: 0.032s
C:\Users\admin\Documents\!!!! M8 !!!!!\fastboot>fastboot flash zip firmware.zip
error: cannot load 'firmware.zip'
C:\Users\admin\Documents\!!!! M8 !!!!!\fastboot>fastboot flash zip firmware.zip
error: cannot load 'firmware.zip'
C:\Users\admin\Documents\!!!! M8 !!!!!\fastboot>fastboot reboot
rebooting...
finished. total time: 0.019s
C:\Users\admin\Documents\!!!! M8 !!!!!\fastboot>
Its weird but i cannot uninstall superuser. I only have the option to reinstall it from playstore. I tried select reinstall, so it removed the superuser icon from the app drawer. I rebooted but with no superuser icon in the drawer i still have root access! I had to reinstall the app and select full unroot and reboot to remove root.
Sent from my HTC One_M8 using XDA Premium 4 mobile app
Are you sure the firmware flashed properly? Sounds to me like you never succesfully flashed the firmware and are therefore still rooted?
I thought I'd write this guide after doing it myself and with the lack of RUUs it may be of use to others...
This covers returning an unbranded, European One M8_UL to stock, running 1.54.401.5. It does NOT cover returning carrier-branded handsets back to stock, nor other country unbranded variants - only the EU model. It also doesn't cover adb/fastboot as you should really already know what you're doing with that if you're running a custom ROM.
Although I run 100% stock these days I wanted to be S-OFF so had to use the following to get back to 100% stock but keep S-OFF for future freedom
This guide will assume that you're using CID HTC__001 (which is my CID) because you need to reflash the FW but if you were already running on 1.54.401.5 BEFORE flashing a new ROM then it can be skipped so if you're S-ON you can still use this guide - just not the parts about resetting the unlocked/tamper flags. It also assumes you already have the latest TWRP recovery on your phone. I did this using 2.7.0.2 available here.
Other CIDs that will work are:
HTC__102
HTC__203
HTC__E11
HTC__405
HTC__Y13
HTC__304
HTC__A07
HTC__032
HTC__J15
HTC__016
HTC__M27
HTC__K18
HTC__A48
HTC__002
So lets begin...
1. Restore the phone back to stock
I used the odexed package provided by @mike1986., which is available to download here
Once downloaded, copy the file to your phone and flash as you would any other custom ROM in TWRP. Once complete, reboot the phone but when TWRP asks if you want to root it, select 'No'
2. Install SuperSU
To reset the 'unlocked' and 'tamper' flags, you need SU permissions so using the SuperSU package is ideal for this. Download it from here and flash it via recovery. Once installed, reboot the phone
3. Reset the 'tamper' flag (REQUIRES S-OFF)
To reset the tamper flag, follow this guide (thanks to @scotty1223)
4. Reset the 'unlocked' flag (REQUIRES S-OFF)
To reset the unlocked flag, follow this guide (again, thanks to @scotty1223)
5. Flash stock FW package
Now your phone is back to 100% stock, we need to get the stock recovery back on the phone. To do this, you have to flash the 1.54.401.5 FW package from here (again, thanks to @mike1986.). To flash this file, do the following:
a. Reboot phone into fastboot
b. Copy the FW file to your fastboot folder on your PC (if you don't have fastboot in your system path)
c. Rename the FW file firmware.zip (NOT firmware.zip.zip)
d. Type: fastboot oem rebootRUU and wait for device to reboot
e. Type: fastboot flash zip firmware.zip and wait for process to complete. Although you don't have to do this twice as you used to do with RUU ZIPs, it's STRONGLY recommended that you run this command a second time after the first has finished to make sure it 'takes' properly
f. Type: fastboot reboot
The phone will now reboot
6. Remove SuperSU
So, your phone should now be back to 100%, locked and have the stock recovery but you still have the SuperSU app in the app drawer. To remove this, open the app and go into the app settings and uninstall it. Once it's removed, reboot the phone to complete the process
7. All done!
Voila, you are now back to 100% stock but still S-OFF so you have the option in future to do anything you want!
Never mind.
I tried supercid and it flashed fine.
I think I really need Supercid. Thanks
**************************************
Hi EddyOS
I took your advice and set my CID to HTC__001
I followed the steps to the tee, except relocing the bootloader.
However when I try to run flash the firmware.zip I get an error:
C:\adb> fastboot flash zip firmware.zip
target reported max download size of 1830711296 bytes
sending 'zip' (50706 KB)...
OKAY [ 2.836s]
writing 'zip'...
(bootloader) zip header checking...
(bootloader) shift signature_size for header checking...
(bootloader) zip info parsing...
(bootloader) checking model ID...
FAILED (remote: 41 model id check fail)
Do I have to change my ModelID as well? My getvar is:
C:\adb>fastboot getvar all
(bootloader) version: 0.5
(bootloader) version-bootloader: 3.16.0.0000
(bootloader) version-baseband: 1.15.2133156.UA14G
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main:
(bootloader) version-misc: PVT SHIP S-OFF
(bootloader) serialno:
(bootloader) imei:
(bootloader) imei2: Not Support
(bootloader) meid: 00000000000000
(bootloader) product: m8_ul
(bootloader) platform: hTCBmsm8974
(bootloader) modelid: 0P6B11000
(bootloader) cidnum: HTC__001
(bootloader) battery-status: good
(bootloader) battery-voltage: 0mV
(bootloader) partition-layout: Generic
(bootloader) security: off
(bootloader) build-mode: SHIP
(bootloader) boot-mode: FASTBOOT
(bootloader) commitno-bootloader: ab0efa49
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
finished. total time: 3.244s
---------- Post added at 10:27 PM ---------- Previous post was at 09:30 PM ----------
Did you poot the firmware.zip in the same folder as your fastboot?
I have follow this tutorial ... but when it's time to write the firmware.zip a error appear:
writing 'zip'...
(bootloader) signature checking...
FAILED (remote: 12 signature verify fail)
Same help?
Thnx.
Did you already try with adb instead of fastboot to flash the firmware.zip?
PS remember that your fw need to be 50.707 kb,not all the fw.
Hello Guys,
I've done all the single steps of the guide (actually only the point nr.1 and 5 cause I was S-on).
Even the last 2 steps
d. Type: fastboot oem rebootRUU and wait for device to reboot
e. Type: fastboot flash zip firmware.zip and wait for process to complete.
No long story but short, now I have the Original stock firmware 1.54.401.5 (updated to 1.54.401.10)without SuperSU(unroot).
The problem is that I get stucked in Red Triangle Screen when try recovery from Hboot.
Seem's that the phone don't recognize the original stock recovery
I've got the english ver. CID HTC__001
TEMPERED
RELOCKED
.... Nothing can help me Please?
---------- Post added at 07:41 PM ---------- Previous post was at 06:59 PM ----------
My original CID IS HTC_304
Are u s-off?
Can you post your getvar all?
Sent from my HTC One_M8 using XDA Premium 4 mobile app
No ... actually I'm S-ON, I have also relocked the bootloader, installed the stock recovery and insert the original CID HTC_304.
Why the other user inform me that I don't must use the complete ROM file (1.4Gb) but only the file of 50707Kb?
Thnx.
Step 5 is only to flash firmware.zip on fastboot. You do not flash the whole rom from here. Firmware.zip is separate from the rom and only contains recovery.img, radio.img etc.
The rom part is already done when you install the stock rom from step 1.
Read the op again. The firmware file is under firmware collection link in the arhd page.
Sent from my HTC One_M8 using XDA Premium 4 mobile app
Sorry ... but I have a big confusion now ...
Pratically via fastboot in RUU mode I must flash only a part of ROM, not all the ROM but only that? http://xda7.androidrevolution.org/db_mirror/Firmware/index.php?dir=HTC/HTC_One_M8/
And in any case if I already have the stock with root, can I flash only the last part of ROM (507070Kb?)
flashed stock backup file 1.54.1540.9 / changed my cid to BS_US001/ flashed firmware 1.54.1540.9 / flashed stock recovery 1.54.1540.9 and if i go into recovery it shows me phone logo with red triangle is that fine ? and I'm still S-OFF and Unlocked will i receive OTA ?