FORUMS
Remove All Ads from XDA

[GUIDE][S-ON] Restore your (European) HTC One M8 back to stock

n/a posts
Thanks Meter: 0
 
By GuestK0058, Guest on 4th April 2015, 08:28 AM
Post Reply Email Thread
Hi all,

I've created a simple guide to restore your HTC One M8 back to stock firmware while still being on S-ON.
This guide will provide you with all the files required to restore your EUROPEAN device back to stock.
If you have an device from another region, you'll need to find the RUU & recovery image yourself. (see below)

Prerequisites:
- HTC Drivers (just install HTC Sync and the included drivers, then remove HTC Sync)
- Fastboot package
- Stock recovery.img (you'll need the recovery.img with the same fw version as the RUU you're going to flash) (Link to 4.16.401.10 recovery.img for European non-carier devices)
- The RUU for your region/carrier. (Link to 4.16.401.10 for European non-carier devices)

If you have an USA /USA carrier device, go here for the RUU files
If you have an device from another region than Europe or USA, good luck finding the correct RUU
Look here to find recovery.img files for all regions (thanks to @exocetdj)

Because this guide is intended for S-ON, only the RUU for your region/carrier will work.
If you don't have an RUU or cannot find one for your region/carrier, S-OFF your device and follow this guide to restore your HTC One M8 back to stock. (thanks to @EddyOS)

After you've gone trough all steps;
- The red text during boot will be gone
- You'll have the stock firmware, system, recovery and boot.img
- Your bootloader will say "Relocked"
- Your bootloader will say "Software status: Official"

Let's start:

Step 1:
Start the RUU exe by double clicking on it, it will take a few seconds before it starts. After it has started, do not continue but go to your temp folder (type %TEMP% in your address bar)
Find the folder with the temporary files from the RUU (mine was called: {C48DBAA3-1CC0-4DF6-B069-B9CCB27F93C9})
Inside this folder there should be a few files and another folder with a long code as name (mine was called: {50F2F878-636A-496F-A7CB-544C067E0C4B})
Inside this folder, scroll down until you find rom.zip, open this file
Extract boot_signed.img and place it in a folder with the downloaded stock recovery and the fastboot.exe file
Now close the RUU installation wizard

Step 2:
Turn off your device
Hold VOL-Down + Power, after a few seconds you'll be in the bootloader. Now release the buttons
Navigate with the volume buttons to fastboot and confirm with the power button.

Step 3:
You should now have a folder with the following files:
- fastboot.exe
- AdbWinApi.dll
- AdbWinUsbApi.dll
- boot.img (extracted from the rom.zip)
- recovery.img (see prerequisites)

Inside the folder while holding shift, click right mouse and choose Open command window here
Before starting, it's recommended to rename the recovery file to recovery.img and the kernel to boot.img

Type the following commands in order (make sure to check the output and see if every command is successful before executing the next command)
Code:
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot oem lock
This will push the stock kernel & recovery and relock your device.

Step 4:
Open the RUU installation wizard again and follow the instructions.
It will start flashing the RUU on your device.
After 8-12 minutes, the installation will be complete and your device will boot into system.

Step 5: (optional)
Power off your device
Hold VOL-Down + Power, after a few seconds you'll be in the bootloader. Now release the buttons
Verify that your bootloader says "Relocked" & "Software status: Official"

Congratulations, your device is back to stock again. After it's finished booting and optimizing 261(!) pre installed apps, you'll be greeted by the setup wizard on your phone.
If you have any questions, let me know.


Common problems:

Fastboot cannot find my device?
- try reinstalling the HTC drivers included with HTC Sync, and make sure to remove HTC Sync afterwards but leaving the drivers installed

I've got error 155 when trying to flash the RUU
- make sure your bootloader is locked. This tool only works when you have stock kernel, recovery and your bootloader is locked or relocked.
The Following 21 Users Say Thank You to GuestK0058 For This Useful Post: [ View ] Gift GuestK0058 Ad-Free
 
 
GuestK0058
4th April 2015, 08:28 AM |#2  
Guest
Thanks Meter: 0
 
More
Reserved
4th April 2015, 04:56 PM |#3  
Junior Member
Thanks Meter: 0
 
More
TAMPERED
UNLOCK
M8_UL PVT SHIP S-ON
HBOOT- 3.16.0.0000
RADIO-1.16.2133156.UA15g
OpenDSP-v38.2.2-00542-m8974.0311
OS-1.54.401.10
eMMC-boot 2048MB
ــــــــــــــــــــــــــــــــــــــــــــــــــ ــــــــــــــــــــــــــــــــــــــ
This is my phone , should i do any thing more or just the steps u mentioned???

I was told that i must upgrade my firmware, must i ??

Thanks
4th April 2015, 05:32 PM |#4  
Senior Member
Thanks Meter: 28
 
More
This is a great guide for those that just want to return to stock for their own purposes. However, this will not be enough for sending the phone into warranty, for that you'll need to take a few more steps with S-Off to get that RELOCKED flag to say LOCKED.
The Following User Says Thank You to dima470 For This Useful Post: [ View ] Gift dima470 Ad-Free
GuestK0058
4th April 2015, 06:34 PM |#5  
Guest
Thanks Meter: 0
 
More
Quote:
Originally Posted by dima470

This is a great guide for those that just want to return to stock for their own purposes. However, this will not be enough for sending the phone into warranty, for that you'll need to take a few more steps with S-Off to get that RELOCKED flag to say LOCKED.

From my experience with HTC warranty repairs, they don't really care about the bootloader being 'relocked', S-Off is a more common cause for them to not repair the device.
But, above differs per repair center / per country

Quote:
Originally Posted by al_wizard

TAMPERED
UNLOCK
M8_UL PVT SHIP S-ON
HBOOT- 3.16.0.0000
RADIO-1.16.2133156.UA15g
OpenDSP-v38.2.2-00542-m8974.0311
OS-1.54.401.10
eMMC-boot 2048MB
ــــــــــــــــــــــــــــــــــــــــــــــــــ ــــــــــــــــــــــــــــــــــــــ
This is my phone , should i do any thing more or just the steps u mentioned???
I was told that i must upgrade my firmware, must i ??
Thanks

Where did you bought your device?
4th April 2015, 06:45 PM |#6  
Mr Hofs's Avatar
Senior Member
Thanks Meter: 14,634
 
More
Quote:
Originally Posted by al_wizard

TAMPERED
UNLOCK
M8_UL PVT SHIP S-ON
HBOOT- 3.16.0.0000
RADIO-1.16.2133156.UA15g
OpenDSP-v38.2.2-00542-m8974.0311
OS-1.54.401.10
eMMC-boot 2048MB
ــــــــــــــــــــــــــــــــــــــــــــــــــ ــــــــــــــــــــــــــــــــــــــ
This is my phone , should i do any thing more or just the steps u mentioned???

I was told that i must upgrade my firmware, must i ??

Thanks

You are S-ON so you need to relock the bootloader and run the ruu.

If you want to give all info to work with you need to post the outcome of :

Fastboot getvar all

Delete the serial and imei and post the list here.

Or check the firmware & nand backup thread here in the general section. Restore the stock rom and recovery and perform ota updates which also will upgrade the firmware



---------- Post added at 07:45 PM ---------- Previous post was at 07:43 PM ----------

Quote:
Originally Posted by Joery360

From my experience with HTC warranty repairs, they don't really care about the bootloader being 'relocked', S-Off is a more common cause for them to not repair the device.
But, above differs per repair center / per country



Where did you bought your device?

Has nothing to do with where he bought it from, it is depending on the phones hardware & software, for all we know its imported.

The specs are important not where he got it from. And you can't tie it down on how repair centers handle the phones....that's a matter of good luck !

4th April 2015, 08:29 PM |#7  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by Joery360

Where did you bought your device?

I bought it second-hand from Qatar if you mean country.
8th June 2015, 04:24 PM |#8  
Junior Member
Thanks Meter: 1
 
More
Hi. I tried to use this guide but it I couldn't follow it through. I have relocked, tempered, S-ON, CID : TMOB102 phone. It is stuck in the HTC logo after a full wipe from twrp. I don't have OS, and the main version is empty. So far I have tried all the European RUU which gave CID error and 2 T-Mobile RUU's with MID error both. Can anyone give me a suggestion?
24th June 2015, 01:49 PM |#9  
Junior Member
Thanks Meter: 0
 
More
Problem extracting boot_signed.img
When I try to extract the boot_signed.img akk I get from Winzip is "cant find central directory"
Any ideas??
25th June 2015, 06:18 AM |#10  
Senior Member
Thanks Meter: 9
 
More
This is a great guide for those that just want to return to stock for their own purposes.
The Following User Says Thank You to sseuorosal For This Useful Post: [ View ] Gift sseuorosal Ad-Free
1st July 2015, 07:40 AM |#11  
Member
Thanks Meter: 2
 
More
Hi,
I just needs to get OTA on my phone and i dont mind it being tampered or unlocked.
Will this method work on my phone ?

(bootloader) version: 0.5
(bootloader) version-bootloader: 3.16.0.0000
(bootloader) version-baseband: 1.16.2133156.UA15G
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main:
(bootloader) version-misc: PVT SHIP S-ON
(bootloader) serialno: SH495WM01309
(bootloader) imei2: Not Support
(bootloader) meid: 00000000000000
(bootloader) product: m8_ul
(bootloader) platform: hTCBmsm8974
(bootloader) modelid: 0P6B10000
(bootloader) cidnum: HTC__J15
(bootloader) battery-status: good
(bootloader) battery-voltage: 0mV
(bootloader) partition-layout: Generic
(bootloader) security: on
(bootloader) build-mode: SHIP
(bootloader) boot-mode: FASTBOOT
(bootloader) commitno-bootloader: 098a72e5
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes