Watch This Now!

Best method to prepare for warranty exchange

168 posts
Thanks Meter: 47
By FreydNot, Senior Member on 3rd September 2014, 08:31 AM
Post Reply Subscribe to Thread Email Thread
I've got the fuzzy lens problem and I want to get the phone replaced (preferably via T-Mobile but I'll go directly to HTC if I have to). I know you can scratch off the coating on the lens and get some camera improvement but I'm not interested in that solution.

My goal: Return the phone to completely stock condition. No root, locked bootloader and preferably S-ON. I've read a few stories where HTC insisted on replacing the motherboard (with an additional full price fee) because the device was S-OFF and I don't want to go there.

Background: I used firewater to S-off the phone as soon as I got it (it was running 1.12 at the time). I have flashed the Harmon Kardon audio stuff ( I have turned off the tamper flag ( I am running the Stock+ rom which is based on 1.57 (

My plan:
1) Reset my bootloader to locked (

2) Wipe the phone and restore my very first nandroid backup I made with TWRP. That will get me back to unrooted 1.12 firmware but without the stock bootloader and still S-OFF. Staying with 1.12 will allow me to S-OFF again with firewater if it comes to that. If some kind of emergency came up, I'd hate to spend $25 on sunshine for a one time use on a phone that is going back to HTC forever.

3) Install the stock bootloader that matches 1.12 firmware. Not sure how to do this yet. I'm afraid I won't be able to achieve this with a locked bootloader and no root.

4) Verify everything is back to stock.

5) Set the phone back to S-ON (

6) Run the 1.57 RUU (

7) Proceed with the warranty exchange.

I'm not sure running the RUU is 100% necessary, but I figure it's the best bet I have to make the phone completely stock.

Questions: Is this a sane plan? Am I doing anything in the wrong order? Are there any steps that won't work because I've lost root or unlocked bootloader? Am I setting myself up for a brick anywhere?

There is a thread about doing this on a EU M8 ( but I can't tell what, if any, modifications need to be done for the USA T-Mobile version of the M8. There is talk about having to flash a firmware file twice or risk a hard brick when setting S-ON. Do I need to be worried about any of that?
11th September 2014, 06:56 AM |#2  
OP Senior Member
Flag Seattle
Thanks Meter: 47
Thumbs up
UPDATE: T-Mobile gave me a warranty replacement to fix the camera lens problem. I did get the old phone back to completely stock with locked bootloader and S-on before sending it back.

I found it was easiest to use the sunshine installer to gain temp root. You don't need to pay anything since you stop before it goes through the whole S-Off process. Just run the APK and select temp root. When sunshine shows you the next screen, you can exit out and still have root. (

In the end I didn't bother with the old nandroid and keeping the exploitable version. I also had the order messed up in my initial post. Here is what worked for me:

1) factory reset the phone (in TWRP I did advanced wipe and also wiped internal storage). This step kills root. Rebooted the phone and verified it was back to factory defaults. Go through the setup wizard and skip all the steps. I couldn't find a way to bail out without going through every step in the wizard.

2) flashed stock recovery (the bootloader was unlocked and the phone was S-Off). Root is not necessary for this since it is done in fastboot. ( Rebooted the phone.

3) achieved temp root using sunshine APK

4) locked the bootloader (required before running the RUU). You must have root since you need a SU # prompt in the shell. ( I rebooted again for good measure but it's probably not necessary.

5) reset the phone back to completely stock using the latest 2.22.531.5 RUU. This step does not require root. I found it was easiest to put the phone into fastboot mode before running the RUU. (

6) Once the phone booted back up, I looked over everything and made sure it is all completely stock. Checked HBOOT said locked (not relocked) and dis not say tampered.

7) OPTIONAL - set S-On. Again root is not required since this is a fastboot command. (

My actual process wasn't this streamlined. I ended up doing the RUU a couple of times because I didn't flash the stock recovery first and I didn't think the RUU installed the stock recovery right. Turned out I just didn't know what the stock recovery looked like (it was very confusing since I had never actually used a HTC stock recovery).

Thanks to the authors of the various threads I pulled info from. They are the real MVP's.
Attached Images
File Type: jpg S-on.jpg - [Click for QR Code] (37.7 KB, 226 views)
The Following 4 Users Say Thank You to FreydNot For This Useful Post: [ View ]
11th December 2014, 06:22 AM |#3  
trajik78's Avatar
Flag New York City
Thanks Meter: 5
I flashed the stock HTC RUU via the .EXE and wasn't able to get the "RELOCKED" off the phone. Tried some steps here:

however I wasn't able to get "SU" to properly run in terminal.

No w the phone says *** RELOCKED ***
and im S-On

anything I can do?
Post Reply Subscribe to Thread


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

Advanced Search
Display Modes