yashsingh1/xdaforums huggingface dataset:
[One (M8) General] Einwod:
You can't flash the RUU through recovery, it must be done from within the OS or from fastboot screen. You can try the fastboot RUU screen too. Make sure your phone is well charged up, at least 70% and disconnect the usb/power cable after the RUU has finished when it reboots.
[One (M8) General] Zlatan13:
Hello friends

I wanted to go to stock so I can update to MM. Downloaded LP rom( TWRP 4.16.401.13), installed it and stock recovery also(4.16.401.13). But when i try to update via OTA i get: missing bitmap oem unlock..... and installation fails.

Also tried locked bootloader, nothing, unlocked nothing.

My firmware is :

4.16.401.13

M8_UL pvt S-ON

Hboot: 3.19.0.0000

Radio- 1-25-214500021.06G

CIDIUM: HTC_102

What is your advice

EDIT: I have solved my problem ;)
[One (M8) General] kairanz:
hi [MENTION=2258271]EddyOS[/MENTION]

i'm planning to flash this RUU to completely back to stock to attempt fix my problem, posted here

really appreciate if you check this thread too

now i have supercid and S OFF,

my question is

1. do i have to change CID to HTC__001? or i can leave it to 11111111 ??

2. will i lost my S OFF?

3. after locking the bootloader, and let say the process to back to stock was successfull? do i simply run fastboot oem unlock to unlock the bootloader again?

thanks
[One (M8) General] Einwod:
1.No

2. No.

3. You don't need to lock the bootloader. You have s-off.
[One (M8) General] kairanz:
so i just flash the RUU if i have S OFF and SuperCID?
[One (M8) General] Einwod:
Correct.
[One (M8) General] ned4spd8874:
I'm trying to return my phone to stock before returning it, but somehow my phone is now s-on. I don't know if I missed a step or what but I'm s-on and it's still showing modified and unlocked. Any suggestions on what I can do?
[One (M8) General] Einwod:
Are you sure it was s-off? If it was, try sunshine again. If it was s-off with sunshine before, you don't pay again. Then follow procedure again. If you were never s-off before, you've followed this thread by mistake.
[One (M8) General] ned4spd8874:
Ah, that's true. I thought I'd have to pay for sunshine again. But if I don't have to since I already paid for it, then I'll give it a shot. Trying now...
[One (M8) General] ned4spd8874:
I guess I didn't purchase sunshine that last time. So, any ideas on my options? Can I unroot, lock and remove the tamper warnings without s-off? Or do I need to buy it just to remove everything?
[One (M8) General] Einwod:
There's no other way without S-OFF. Why are you going back to stock anyway? Is it to sell the phone?
[One (M8) General] ned4spd8874:
Because I need to get it replaced. It's been acting wonky. But I don't want it to show tampered and unlocked when returning it.
[One (M8) General] badral9:
Guys. I have few questions.

1. I flashed my HTC One M8 stock firmware to Cyanogen12 and rooted. if i follow this guide can i flash my phone to stock?

2. My phone's status is S-ON. How to S-OFF?

3. Guide's RUU zip file's link is broken. Please provide me working link of ruu zip file.

4. Which RUU file compatible for my phone.
[One (M8) General] Einwod:
As the title says, this is for European M8. It can be done with other models also. What model do you have? S-off is only available with Sunshine which costs 25$.

Have a read in this thread also. http://xdaforums.com/showthread.php?t=3086860
[One (M8) General] badral9:
Thanks for reply. its kinda stupid question. but i dont know my htc's model. how to know my model? by CID?
[One (M8) General] Einwod:
Yes. Also from the information in fastboot getvar all.
[One (M8) General] hitesh81:
Request for correct ROM and flashing technique

Hi

Currently I have TWRP + ViperoneM8 custom ROM.

However I want to go to 100% UK 3 Stock ROM - H3G .

Is there any way to go to stock ROM through TWRP ? if not please can you guys provide any inputs .

thanks

Hitesh
[One (M8) General] Einwod:
See the link I posted above. #765
[One (M8) General] hitesh81:
Thanks, all sorted. Excellent
[One (M8) General] Rakamahatta:
Hi, I have to send my M8 for warranty, and need to put it back to 100% stock, so I can avoid any misunderstanding with repair service.

My device is CID_032, 6.12.401.4 stock, TWRP, S-Off.

For S-Off had to go root , so I used BETA-SuperSU-v2.68, and I think after that I got red text on boot.

I followed the steps and everything was ok for clearing re-locked and unofficial flags, but it failed on flashing stock 6.12.401.4 RUU. It is SneakyGhost signed RUU from androidhost. I think that I used wrong fastboot, not sure, will try another htc_fastbot that is posted somewhere in thread.

So my questions are:

1. Will flashing SneakyGhost 6.12.401.4 RUU (with appropriate htc fastboot of-course) clear red text on boot?

2. If not, do I need to downgrade to 4.16.401.10 RUU.exe from androidruu.com and is this step easy if I am S-Off, do I need to take care of anything or just flash it ?

3. If I manage to make it 100% stock without warnings, red text etc. , do I need to make it back to S-On for warranty , and is there any dangerous stuff for that step ?

Thanks ;)
[One (M8) General] Einwod:
Be warned. HTC knows from their computer system that you have had the bootloader unlocked. I had/have a warranty claim on my M8 and they point blank refused to repair it because the bootloader had been unlocked. They also made up a pack of lies to try to justify their refusal. Good luck with your device. I have absolutely no faith in HTC or their service centres any longer. I have bought a new device and HTC can go sing for my money in future. As I said, good luck.
[One (M8) General] sasacurcija:
I need to change USB port on my m8 but first of all I need to return my phone to stock rom.

I was using sky dragon sense 7 2.0.0 version of rom,yesterday I flashed cynogen mod 13 didnt like it so tried to restore previously made back up,but i wasnt able to do that so I tried clean instal of SD rom and was stuck at boot and after waiting cca 15 min I restored back to CM 13 backup beacuse it never took so much to load a fresh rom.

When I tried to check my CID number in "all in one tool kit" I got error message that "htc is not recognized as an internal or external command, or operable program or batch file".

In recovery I have modified,unlocked and m8_ul pvt ship S-ON. On the other hand when i tried to instal doze a message apeared "root not acquired ".

Whats the problem?
[One (M8) General] Einwod:
Please post the results of fastboot getvar all after removing your IMEI and serial numbers and we'll see what help we can give.
[One (M8) General] Rakamahatta:
Thanks for support, I did manage to get replaced screen, but they messed up top speaker, and after I went for reporting that, they changed it but it seems now that a sound is a bit cheaper, like they put some cheap speakers.

Dont think that I can complain for that, how to prove that sound is not as it used to be. I doubt that next device of mine will be HTC..

Cheers.
[One (M8) General] Einwod:
Well done.
[One (M8) General] kazavfr:
Hi, I wanted to ask a question. I have to send my M8 Dual sim to the SAT and I need to leave it completely stock. It is model 0P6BIMG_M8_DUGL, CID HTC__032. I have it with S-OFF, root, stock rom and unlocked Bootloader.

The steps that there are valid to return astock?

Thank you
[One (M8) General] Einwod:
No. Read the title of the thread and what it says in the complete first post that you wrongfully quoted.
[One (M8) General] kazavfr:
Sorry, I mean the part to block the bootloader and make S-On. I have the stock recovery and stock rom too.

Thanks
[One (M8) General] Einwod:
Don't go S-ON unless you absolutely must. It can cause problems, on occasions. Locking the bootloader should be a simple command. Fastboot oem lock
[One (M8) General] ekkelon:
Ok ... Thnx ... and If I have already installed the stock with root, can I flash directly the file in step 5 or before I must install also the complete ROM via TWRP in step 1?

Consider that actually I have installed the same ROM version in step 1.

Thnx.
[One (M8) General] ekkelon:
I have installed the firmware.zip like in step 5 (but I don't install the complete FW like in step 1) the bootloader in locked, device S-ON, installed recovery stock but everytime when I try to installa the OTA update, the procedure start ... green indication in recovery but ... after a little time appear a red triangle and the procedure of update stopped!

I can't find solution ... :(
[One (M8) General] ring_GT:
Whats the error?
[One (M8) General] ekkelon:
The error is when The Device restart in recovery To install The update in first time appear The indication of The Device sincronization logo With The green icon, The installation start correctly But after Short time The icon appear red And The update stopped And Not finish.
[One (M8) General] ekkelon:
Edit ... restart the procedure and now it's work perfectly ... Thank you to all for the support! :)
[One (M8) General] ekkelon:
... Other problem ... How can I uninstall SU now ... :(
[One (M8) General] EddyOS:
As per the guide, open the app and select the uninstall option and reboot (might need to be S-OFF though, I haven't tried it S-ON)
[One (M8) General] ekkelon:
No... unfortunatly is not simple like You explain. When I open SU a message advise me that there isn 't binary to install. The app inform me that root is necessary and if press Ok The app go out and I come back in appdrawer

Is Not possibile To unistall It via fastboot or adb?

Thnx.
[One (M8) General] BerndM14:
[MENTION=2258271]EddyOS[/MENTION] noob question then :o

Do you need root to flash back to stock recovery from the command prompt?

If you don't need it, wouldn't it be easier to use the "unsuperuser" file created by jbeez & SaHiLzZ from [MENTION=4252827]Mr Hofs[/MENTION] thread http://xdaforums.com/showpost.php?p=51536075&postcount=2 and then undo superuser with the custom recovery? Afterwards you could just use the command prompt to flash back the stock recovery? :eek:
[One (M8) General] voz79:
Agree. It's not that simple. I have the same issue now, fully returned to stock but superSU is still there. When opening it, it tells me "no binary installed" and there is no option to uninstall at all. It now thinks superSU is a system app. I am S-OFF by the way, but I did reset "tampered" and "unlocked".

I believe it would have worked if I had first uninstalled SuperSU and then flashed the firmware (reverse step 5 and 6 from the guide), but even then I am not sure.

I'm thinking maybe this will fix it:

1. Unlock phone

2. Flash custom recovery

3. Root it

4. Reset tampered and unlocked (steps 3 and 4 from the guide)

5. Uninstall SuperSU (step 6 from the guide)

6. Flash firmware (step 5 from the guide)

This is only what I think needs to be done, I haven't tried it yet so this is not necessarily the correct solution... for now I am not going to try either. I am actually hoping that there's either someone who has an easier solution, or an easier solution to come along in the future like simply flashing a RUU.

For now I just disabled SuperSU so that it doesn't show in my apps anymore... hoping for a future OTA update that will fix it magically...
[One (M8) General] ekkelon:
I agree! :)
[One (M8) General] EddyOS:
This guide covers what worked for me, so I've not tried anything else. Having looked at that, though, it should work so if you're having issues with my guide then that should also do the job :)

I'll add the option to the OP when I get a chance
[One (M8) General] ekkelon:
It's very strange ... we had follow the guide step by step but for us is not possible uninstall the SU ... I tru also by Titanium backup but ask me the root privileges .....

Tha last possibility will e to have temporary root without repeat the complete procedure to coma back stock 100% stock.

Ideas?

Thnx.
[One (M8) General] EddyOS:
What [MENTION=5810139]BerndM14[/MENTION] said might be of use, so before you flash the FW use TWRP to flash the 'unsupersu' ZIP to remove the app
[One (M8) General] ekkelon:
[MENTION=2258271]EddyOS[/MENTION] ... can you insert the link for 'unsupersu' ZIP!?

Thnx.
[One (M8) General] EddyOS:
It's in the OP now
[One (M8) General] ekkelon:
Ok ... thnx a lot ...

One question ... if now I'm 100% Stock, can I flash the stock recovery with TWRP recovery, flash the unsupersu.zip and come back to stock recovery if now the device is not rooted and with BTL locked!?

No I suppose ...

Thnx.
[One (M8) General] EddyOS:
No, but there is a way...I'll add to that in a bit ;)

OP is now updated to 1.54.401.10 files, for those interested
[One (M8) General] EddyOS:
To flash a custom Recovery with a locked bootloader (S-OFF REQUIRED):

a. Download this package

b. Reboot phone into fastboot

c. Copy the above file to your fastboot folder on your PC (if you don't have fastboot in your system path)

d. Type: fastboot oem rebootRUU and wait for device to reboot

e. Type: fastboot flash zip recoveryRUU.zip and wait for process to complete.

f. Type: fastboot reboot-bootloader

g. Boot into Recovery - it should now be TWRP

You can now flash the SU package (or the unsuperuser package to remove SU). To go back to stock recovery just reflash the firmware package from the OP
[One (M8) General] ekkelon:
Perfect!!!! You are a Genius!!!

One observation ... in this way you can create a nandbackup of the Stock ROM and in this situation the device is not rooted ... right?
[One (M8) General] redpoint73:
Manually modifying mmc blocks (neeeded to make the phone s-on) is really risky. If the memory address is different for the dual SIM version (and I'm guessing it is) you run the risk of bricking the phone.

Also, please don't quote lengthy guides like you did of the OP. It clutters up the forum. We all know what the first post says.
[One (M8) General] kazavfr:
Thank you, better leave S-OFF then. I note the quotes!

BR
[One (M8) General] Noodles317:
Hi,

Can anyone help me, I've locked my bootloader all OK and confirmed this step, but everytime I go to start the RUU process my fastboot dialogue states that it cannot continue as it's "Out of memory", I am out of reasons why it would do this so any suggestions would be awesome.

My device is S-Off and I have a custom rom installed currently and want to return to stock if I can.
[One (M8) General] Einwod:
Have you got the proper drivers installed on your PC? Install HTC Syncand then remove it. That will leave the drivers behind. Also if you posted the results of fastboot getvar all, we may be able to help further. Remove your serial and IMEI numbers before you post.
[One (M8) General] Noodles317:
I've reinstalled/updated the drivers this evening but still no luck below is the result of my getvar, hopefully you can help me:
[One (M8) General] Einwod:
What RUU are you trying to flash? There is no version main in your getvar all. We have no idea what your current firmware version is. There is no reason for an out of memory error. Have you rebooted your computer?

This is mine on stock Vodafone:

(bootloader) version: 0.5

(bootloader) version-bootloader: 3.19.0.0000

(bootloader) version-baseband: 1.29.214500021.12G

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main: 6.12.161.4

(bootloader) version-misc: PVT SHIP S-ON

(bootloader) serialno: SH**************

(bootloader) imei: ***************

(bootloader) imei2: Not Support

(bootloader) meid: 00000000000000

(bootloader) product: m8_ul

(bootloader) platform: hTCBmsm8974

(bootloader) modelid: 0P6B10000

(bootloader) cidnum: VODAP304

(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: 76df2b54

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

all: Done!
[One (M8) General] Noodles317:
I'm trying to use "RUU_M8_UL_L50_SENSE60_MR_HTC_Europe_4.16.401.10_Ra dio_1.25.214500021.06G_20.68.4196t.01_F_release_41 7003_signed", i have relabelled the zip file to "RUU" and am using Windows 10 if that makes a difference.

Has relabelling the file maybe caused this error do you think??
[One (M8) General] Einwod:
I recommend this file. It is the official RUU from HTC. Simply run it from your PC. If it fails, place your phone into bootloader mode and try again. This should not fail. Just be aware that you need a USB 2.0 port, not USB 3.0 as it doesn't play well with Android. This RUU will wipe your internal storage, so make a backup of anything you want to keep first.
[One (M8) General] Noodles317:
Thanks for the link, i'm downloading now, final question i have TWRP recovery installed can i use this RUU with TWRP or do i need the stock recovery installed before attempting?
[One (M8) General] Einwod:
It doesn't matter. The RUU will return your device to complete stock. After, you can reflash TWRP if you wish, then SuperSU if you require root. Make sure you take all the updates first to get to Marshmallow, there should be 5 in total.
[One (M8) General] Noodles317:
Worked like a charm, thankyou so much for all your help!!
[One (M8) General] buremba:
My phone is S-ON and I'm using Cyanogenmod but lately the top top section of the screen doesn't work. I need to send it to the service to get a replacement so I must return back to the stock rom and lock the phone. Currently, in bootloader it says "UNLOCKED" and "Software status: Modified", here is the output of the command:

(bootloader) version: 0.5

(bootloader) version-bootloader: 3.19.0.0000

(bootloader) version-baseband: 1.25.214500021.06G

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main:

(bootloader) version-misc: PVT SHIP S-ON

(bootloader) serialno: ***

(bootloader) imei: ***

(bootloader) imei2: Not Support

(bootloader) meid: 00000000000000

(bootloader) product: m8_ul

(bootloader) platform: hTCBmsm8974

(bootloader) modelid: 0P6B10000

(bootloader) cidnum: HTC__M27

(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: 3aa067db

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

Can anyone suggest the RUU file that I should use? Also do I really need to change the status to "LOCKED" and remove "Software status: Modified" in order to be able to take advantage of warranty. If so, how can do that?
[One (M8) General] Einwod:
You can only modify software status with s-off. No other way. I had a warranty claim refused because they could see from their computers that I had gotten an unlock code. They point blank refused to repair my device. Good luck in your quest.
[One (M8) General] PTP012:
Question

Well my phone has

Software status modified

S-ON

and it's relocked.

Plus i cannot update to 6.0 AND HTC Sync doesn't read my phone at all.

Oh yeah it's an HTC ONE M8 i got my phone from cousin and it rooted.

So if you can help me with this I will appreciated.
[One (M8) General] Einwod:
If the phone is rooted, it will accept OTA updates but CANNOT install them. You must be completely stock to have OTA work correctly.

Make sure developer options is turned on and reconnect to HTC Sync.
[One (M8) General] redgolf:
Hi

I tried to return my m8 back to stock for repair

I flashed firmware :- M8_6.12.401.4_WWE_TWRP2870

lock the boot loader : OK

It will not flash "0P6BIMG_M8_UL_M60_SENSE70_MR_HTC_Europe_6.12.401.4_Radio_1.29.214500021.12G_20.72.4196t.01_release_464360_signed" to the phone..

can someone help please ???

many thanks
[One (M8) General] Einwod:
If it's a zip file, rename the complete thing to OP6BIMG.zip, place on external SD card and reboot to bootloader. It should flash IF you are S-OFF. If you are NOT S-OFF, then you need the bootloader unlocked. You cannot flash this file through TWRP.
[One (M8) General] PTP012:
For some weird reason HTC Sync manager doesn't read my phone at all.

Any ideas why it doesn't work?
[One (M8) General] Einwod:
Try uninstalling and reinstalling HTC Sync. You can also check for the latest fastboot/ADB drivers. There is a HTC_fastboot.exe file now, which is updated from the old fastboot. Search for it here and you'll find it.
[One (M8) General] redgolf:
Many Thanks that works great..

---------- Post added at 12:54 PM ---------- Previous post was at 12:54 PM ----------

many thanks.. that works
[One (M8) General] iceman667:
Anyone can re-upload the files ?..

And by the way.. After this can i OTA ?...
[One (M8) General] Mars_Ammar:
I need to get back my m8 to stock but i cant get the bootloader to "Locked" .. i am on S-ON .. all the commands run smoothly but when i restart into BL to check, its still "UNLOCKED" what can i do ?
[One (M8) General] Einwod:
Follow the thread if you have S-OFF. If you are S-ON, only this will work and it will say relocked: fastboot oem lock
[One (M8) General] whynotbgd:
Dead link

Hi, can someone upload the zip please.

THX
[One (M8) General] ahmedvip2008:
that's the same zip

https://www.androidfilehost.com/?fid=95916177934518148

and that's one for Android 6.0 (Marshmallow) i flashed yesterday

https://www.androidfilehost.com/?fid=24369303960687057

here are the full ROMs

https://forum.gsmhosting.com/vbb/f4...-ruu-4-x-x-6-x-x-updated-19-3-2016-a-1940130/
[One (M8) General] deltagreen88:
Hi there,

I've read all possible threads now to aid a friend who tries to gift his One M8 to his cousin but wants to put it back to stock (relocked or tempered is not an issue) and the device is set to S-On - we never managed to put it to S-Off in the past (firewater, rumrunner and we're not quite willing to pay for sunshine) but were able to install ViperOne Rom when the device was on 4.4.2 (i suppose ViperOne was based on 4.4.2 too) and this was eventually only possible since ViperOne Rom is Sense-based (i concluded that with S-On you should only be able to flash Sense-based Roms that would not modify the boot.img otherwise you get into a strange bootloop after boot, like one or two minutes after successful bootup)..

Now after some time my friend couldn't get past the bootscreen and didn't do any nandroids - ever.. I managed to get a nandroid for hboot version 3.16 starting with version n° 1.x.xxx.xx here on xda and i want to note that when printing the getvar all in fastboot, there's no version-main n° indicated..? See here:

So after flashing this nandroid for a first time, i managed to boot up - to my old ViperOne Rom.. The wipes i did in TWRP (version 2.7.1.0 is the only one that actually works) weren't effective.. So i wiped again and flashed the nandroid again, i again got past the bootscreen and android apps were optimized - however after boot, i get into the Stock Sense Lockscreen and when unlocking the screen i only have a white screen with htc logo, the back and home button are present and reactive, but don't do nothing.. And after all, i get this reboot after a minute or two, so what would i be supposed to do now (good question ;) ? I would try the following: fortunately i backed up the boot.img with twrp before wiping and restoring and put it to pc (i'm quite used to adb/fastboot and shell commands) - i could restore only the boot.img if that's what's causing the reboot after successful boot (eventually because of s-on) or go to bootloader and factory reset data (if that makes sense - i thought that this would eventually restore the stock bootloader by itself..? Any help is highly appreciated, and sorry for the long post..
[One (M8) General] Einwod:
So, first thing is

remove

serial and IMEI numbers from your original post.

Second, as the title of this thread says, it's for S-OFF devices and if you won't spend the money, you definitely should NOT be here.

Third, Everything you need is HERE, all you have to do is read everything carefully and follow the instructions.

Fourth. Good luck.