yashsingh1/xdaforums huggingface dataset:
[One (M8) General] itzjonjon69:
fixed!!! forum member russellvone just SAVED my ass. So what he did was he had me download this file for my ATT M8

https://mega.co.nz/#!NUURzC5T!tCjG3n6Ztx2bCvBfAodRsiZ88h1O0c6zRAwOPZ8T2PI and told me to rename it 0P6BIMG.zip and place it in my adb fastboot folder

then he told me to run these commands:

fastboot erase cache

fastboot oem rebootRUU

fastboot flash zip 0P6BIMG.zip

fastboot reboot

then once everything was done we ran the commands from this thread and voila! i'm once again unlocked! He explained to me that when i tried to run the commands it didn't work because i had the secure boot.img and what he had me flash was a file he created which made it unsecure so i could run the command. HUGE HUGE props to this guy.
[One (M8) General] redmanjoey:
Hey scotty, when I try to flash the stock recovery per your instructions I get a remote: failed error. I double checked USB debugging on, set it to disk drive only, even fastbootusb shows but still no luck. any ideas?

I forgot this happened to me last time too. This time I tried on another computer and still nothing. Also tried both files and got the same error.
[One (M8) General] scotty1223:
what instructions are you refering to?

in order to use fastboot flash recovery imagename.img you will need to be unlocked

if you wish to remain locked,youll need to use a properly packed zip file(recovery image and an android-info text document) and flash in the following manner:

if youre working with a booted,operational phone,you can flsh the file in the following manner:

-open a cmd window

-change to adb/fastboot directory

cd c:\foldername

(cd c:\mini-adb if youve used any of my guides :))

-place the zip file you want to flash into adb/fastboot directory

-enable usb debug,disable fastboot,plug in phone

-check for connectivity

adb devices (should return serial number)

-boot to fastboot

adb reboot bootloader

-check for connectivity again

fastboot devices

-flash the file

fastboot erase cache

fastboto oem rebootRUU (will put you in ruu mode,black screen silver htc letters)

fastboot flash zip zipfilename.zip (will send and flash the file. dont interupt it while the cmd window shows its writinging,and the green status bar is moving on the phone screen)

*sometimes a file will fail with a pre-update error. this is normal,just enter again:

fastboot flash zip zipfilename.zip

and this time it will finish

-when you get "finished" and "OK"

fastboot reboot-bootloader (takes you back to fastboot)

-reboot back to the OS

fastbooot reboot

you can use this if you dont have an operational phone as well. you just need to manually put the phone in fastboot(select from hboot menu) then skip the "adb" commands and start with fastboot devices
[One (M8) General] redmanjoey:
My phone is unlocked and soff, its also operational. I just followed the instructions you just gave me, this is what happens. The instructions I am referring to were the ones that were inclided in the recovery folder.

C:\Users\Joey\Desktop\Root M8>adb devices

List of devices attached

XXXXXXXXXXXXX device

C:\Users\Joey\Desktop\Root M8>adb reboot bootloader

C:\Users\Joey\Desktop\Root M8>fastboot devices

XXXXXXXXXXXXX fastboot

C:\Users\Joey\Desktop\Root M8>fastboot erase cache (I get this error trying to do anything in fastboot)

erasing 'cache'...

FAILED (remote: not allowed)

finished. total time: 0.001s
[One (M8) General] suicidal acorn:
The OP States that you can get back to 100% stock with this, but, and correct me if I'm wrong, you can't get rid of the red dev text and the "s-off" in the bootloader, correct? I know you can put a custom hboot on to get rid of that stuff, but when a ruu comes out, that will just flash the stock hboot back and the red text will be back, along with the "s-off" text if it is run. I guess I'm just asking if this is good enough to fool sprint employees when getting warranty work done.
[One (M8) General] ckpv5:
Read post #373 ... it is just 4 posts above your earlier post.

Run the command after boot into TWRP recovery.

adb shell

then unlock command
[One (M8) General] thodibhen:
Thanks for the confirmation, it's not that I didn't see the zip, but rather cause this is the "General" section and not T-mob, wasn't sure if the zip would be good for my device.

Thanks again
[One (M8) General] ckpv5:
Download & extract out android-info.txt

Edit the android-info.txt to suit your device version

modelid

cidnum

mainver

Drag edited android-info.txt back to the zip.

That's one of the purpose to have S-Off
[One (M8) General] thodibhen:
well this sort of sucks, still unable to root my S-OFF phone. I downloaded that zip, made edits to the android-textfile, reboot into HBOOT and it tells me "update failed!", next I extracted out the recovery.img from the same zip, and try to flash directly with fastboot, again it's giving me a failure. I guess S-OFF is -NOT- the can all, be all, ultimate must-have for power user hack, I know exactly what I'm trying to do but the phone is actively rejecting my input. I should not have to go through all the crap of Unlock_token.bin and lose all my things if I've already disabled the hell-forsaken S-OFF/S-ON, although at this point it seems like there isn't even a difference.
[One (M8) General] ckpv5:
You need to use Notepad++ to edit the txt.

You can use the zip that I uploaded here : http://xdaforums.com/showpost.php?p=67521242&postcount=32

No need to edit modelid & cidnum as they are universal for almost all CID/MID in that zip.

You need to edit the mainver only .. or you can do that later.

Also note the other method used there i.e. fastboot flashing
[One (M8) General] thodibhen:
Tried the flashing, a few times over and over, but this is all I got

$ fastboot flash zip 0P6BIMG.zip

target reported max download size of 1812955136 bytes

sending 'zip' (13141 KB)...

OKAY [ 1.432s]

writing 'zip'...

(bootloader) zip header checking...

(bootloader) zip info parsing...

(bootloader) checking model ID...

(bootloader) checking custom ID...

FAILED (remote: 42 custom id check fail)

finished. total time: 2.001s

Happens with and without changing the mainver. I changed it from stock to 5.07.1700.14 but no dice.

I'm *NIX so I just 'nano' to edit the file. No extra trash/padding/formatting/indents, 110% as plaintext as it can be.

My CID is GOOGL001 (been taking OTA's with no problems for months)

$ fastboot getvar mid

mid: 0P6B12000

finished. total time: 0.002s

$ fastboot getvar cid

cid: GOOGL001

finished. total time: 0.002s

The only thing I can think of is the mainver being incorrect?

mainver: 5.07.1700.14

ModelID: 0P6B1****
ModelID: 0P6B6****
modelid: 0P6B10000
modelid: 0P6B11000
modelid: 0P6B12000
modelid: 0P6B13000
modelid: 0P6B11000
modelid: 0P6B15000
modelid: 0P6B16000
modelid: 0P6B20000
cidnum: 11111111
cidnum:	LRA__001
cidnum: VODAP***
cidnum:	VIRGI***
cidnum:	T-MOB***
cidnum:	TIM__***
cidnum:	TELST***
cidnum:	TELEF***
cidnum:	ORANG***
cidnum:	O2___***
cidnum:	BOUYG***
cidnum:	H3G__***
cidnum: HTC__***
mainver: 5.07.1700.14
btype:1
aareport:1
DelCarrier:1
hbootpreupdate:3

Does the above look alright? I didn't extract/re-zip, but pulled out the text file, make the edit with nano, and dropped it back in place.
[One (M8) General] ckpv5:
Error was on CID .. you never said before you have GPE cidnum but T-MOB

Edit the txt to include your cidnum: GOOGL001 and try again.

Or just use the one attached here .. edited to fit yours

NOTE : If anyone else downloaded this 0P6BIMG.zip, you need to edit (use Notepad++) the mainver: 5.07.1700.14 to your current firmware no.

if not then your bootloader will show OS-5.07.1700.14
[One (M8) General] isutke1287:
I've an AT&T One M8, I just factory reset it. It's unlocked but still S-ON. I locked the bootloader a while back but can't find the procedure to lock it again. I have ADB ready to go. I just need the command lines. Can anyone help me out? Marshmallow was finally released some time recently for my phone and I want to lock the bootloader (again, I'm still S-ON) and use the RUU to install Marshmallow.
[One (M8) General] Einwod:
Fastboot oem lock.
[One (M8) General] Zeek III:
1|shell@htc_m8:/ $ echo -ne "HTCU" | dd of=/dev/block/mmcblk0p2 bs=1 seek=33796

lock/mmcblk0p2 bs=1 seek=33796 <

/dev/block/mmcblk0p2: cannot open for write: Permission denied

my Boot loader is still locked, what should i do
[One (M8) General] doomscooter:
Are you s-on? S-ON cannt
[One (M8) General] Einwod:
Are you s-off?
[One (M8) General] supun21:
HTC one M8 Sprint

Hello,

My phone is s-off and i unlocked the bootloader once, then i locked it, now i cant unlock it again. it gives a error called "remote not allowed". Anyways to unlock the bootloader again
[One (M8) General] Einwod:
Why don't you follow the instructions on the first post? You are S-OFF after all. Failing that, get a new unlock token from HTCDev site and update your fastboot..
[One (M8) General] supun21:
I did try it website it cant unlock the code :(. And how to update my fastboot.

What happenned was this . i had kit kat running in my phone and i wanted to upgrade in to lollipop then i unlocked the boot loader and i installed lollipop and then i got a carrier lock and the activation screen too. coudnt bypass it. then i rolled back to kitkat. now same thing cant bypass the activation screen and also carrier lock is there. Please tell me a way to sort this out.
[One (M8) General] Einwod:
Don't tell me, a Verizon or Sprint device?
[One (M8) General] supun21:
its a sprint Device. now i unlocked the bootloader and i flashed a lollipop rom . i bypassed the hands free activation by deleting some .apk files . but some the home button isnt working and now i need to unlock the sim
[One (M8) General] Einwod:
My advice is to go back to stock HTC ROM, available from Sprint. A lot of ROMs here are NOT compatible with your device. The partitions are of a different size. Or search for Sprint compatible ROMs first. There should be no need to unlock the sim unless you are trying to use it with another carrier, in which case, you may have been sold a dud/otherwise unstable device.
[One (M8) General] supun21:
how to find the stock rom for my sprint htc one m8. Please help
[One (M8) General] Einwod:
I gave you the link. Click the word Sprint above. Doh!
[One (M8) General] sohaib.arshad:
How to check

Hi can anyone tell me how to check if bootloader is already unlocked.
[One (M8) General] Einwod:
Boot to the fastboot screen. It will say locked, unlocked or relocked.
[One (M8) General] Gargoyles:
Hi! I am not sure if i post in right place. my proplem is that i cant unlock bootloader throw htcdev method(all steps work but after unlock throw fastboot with unlock.bin code, i hit yes(unlock bootloader), phone restart but still locked. any ideea? I heard its posible not unlock bootloader because i have not usb debugging enable. i cant do that. (because after start phone, and after logo apear scrypt storage , to start android type password.). any sugestion would be apreciated. thank you!
[One (M8) General] Einwod:
If you are not S-OFF, you're in the wrong place. You need this thread. Bear in mind, it is an older thread and the methods for S-OFF mentioned here do not work except for Sunshine which costs $25.00 US.
[One (M8) General] Gargoyles:
I have s-off.
[One (M8) General] ckpv5:
If your device is S-Off, you don't need htcdev unlock_code.bin to unlock bootloader.

Same as in other thread that you posted, do you already have TWRP installed ?

If yes, boot to TWRP, mount system then run the unlock command as posted on post #1 but skip the "su" part, not needed.

adb shell

echo -ne "HTCU" | dd of=/dev/block/mmcblk0p2 bs=1 seek=33796

If you don't have TWRP installed .. you can install with the microsd method or fastboot method in RUU mode

https://xdaforums.com/showpost.php?p=70210155&postcount=19
[One (M8) General] Gargoyles:
I really appreciate your help. I tried with fastboot method. but not worked, because i think i have locked bootloader. and with microsd dont know for the moment, i will google it. thanks again for your suport
[One (M8) General] ckpv5:
fastboot method :

fastboot oem rebootRUU

fastboot flash zip 0P6BIMG.zip

fastboot reboot-bootloader

microsd method :

put the 0P6BIMG.zip on root of microsd (not in folder)

Select hboot if currently on bootloader/fastboot screen

System will scan the file and ask whether to update

Volume up to update/install the 0P6BIMG.zip
[One (M8) General] Gargoyles:
[/IMG]

Hei! with fastboot method failed, because after first command, phone just restart, cant enter in ruu mode. but i flashed recovery throw microsd method. but when i reboot to recovery, the stock one appeared.....and show as always:E:missing bitmap oem unlock bg

write host mode succes

handle cota install:cant mount/sdcard.

I think maybe is a hardware problem...or stock recovery overflash after phone reboot?
[One (M8) General] ckpv5:
That's what I expect as I said in other thread.

But .. can you post fastboot getvar all (delete serial & imei no.) because your screenshot show (if I'm not mistaken, that's a lollipop) you don't have Marshmallow firmware installed. The TWRP that I gave you is meant for Marshmallow firmware.
[One (M8) General] Gargoyles:
[/url][/IMG][/url][/IMG]

I hope you will see the image.
[One (M8) General] ckpv5:
As you said your device unable to reboot to RUU mode .. I'm not so sure this will work but worth a try.

Download the attached 0P6BIMG.zip which has TWRP 2.8.7.0 which work for lollipop and the software version to fit yours which is 4.16.401.13

If still unable to write the recovery and you still have the stock recovery installed, I'm out of idea as this most probably hardware problem (corrupted emmc/data partition)
[One (M8) General] Gargoyles:
Thanks for all your help!!! Have you a great time! I let you know if I solve something.

---------- Post added at 05:33 PM ---------- Previous post was at 05:30 PM ----------

Thanks for all your help!!! I wish you all the best!
[One (M8) General] kazavfr:
Hello, someone can tell me if this system is valid for “locked” the bootloader from a M8 dual sim with MM?

I have S-off

Thank you
[One (M8) General] kazavfr:
I already answered, if it works, I have tried it.
[One (M8) General] cexcells:
Hi I have an HTC m8 which was locked to EE network. I unlocked the bootloader flashed TWRP and rooted. Then I flashed resurrection remix 7.1.1 ROM. I want to SIM unlock to use with a different network but when I try to use the code that I got from EE it just sits at the screen saying requesting SIM unlock code. Sunshine will not work because it detects the custom ROM and says I need a closer to stock. There is no EE stock ROM available either. How can I get out of this predicament?
[One (M8) General] Einwod:
Did you read the title of this thread? It even says S-OFF required. You are in the wrong place totally. Try asking in the general Q&A thread and when you do ask, post the results of fastboot getvar all as well. Then you may find more helpful advice.
[One (M8) General] cexcells:
Yes I did. That is why I was asking about sunshine to get s-off but it won't work because I have a custom ROM not stock
[One (M8) General] jshamlet:
You generally need a stock ROM (or one very close to stock) to perform a network unlock - which, amazingly enough, is also what you need to run Sunshine. However, the path to doing a network unlock with S-off is going to be long and painful, because the hack that allowed you to do it was patched a long time ago, which means you will have to revert back to a KitKat Sense build (or at least the bootloader, but you really don't want to horse around with that just for this) and pray the website that handed out tokens still exists/works.

Your best bet, if all you want to do is perform a network unlock with a valid subsidy unlock code, is to backup your existing ROM, flash it to WWE or Dev, perform the network unlock, then revert back to your custom ROM using TWRP.

If you still want to S-off, I would suggest asking on the Sunshine forums what ROMs are supported: https://xdaforums.com/showthread.php?t=2792487 Or, run Sunshine after you network unlock on stock firmware. However, I repeat, you do NOT need S-off to perform a network unlock with a valid subsidy unlock code. You just need stock firmware and a bit of patience.
[One (M8) General] cexcells:
Can you give me a bit more info about what you mean by flashing wwe or dev?

---------- Post added at 11:08 PM ---------- Previous post was at 11:06 PM ----------

I don't need sunshine and s-off if I can get it SIM unlocked
[One (M8) General] cexcells:
Flashed viper ROM which Sunshine managed to work with. Got s-off and SIM unlocked and then wiped and installed Resurrection Remix. EE (Orange) stock just wasn't available. It's now working great. Thanks for any guidence and going to the trouble of replying! Appreciated
[One (M8) General] Captain_Throwback:
No.
[One (M8) General] redpoint73:
RELOCKED works fine for flashing RUU or firmware with s-on.

Achieve relocked bootloader simply with fastboot command: fastboot oem lock

LOCKED bootloader is really not relevant any longer. Main reason was to spoof HTC to thinking the phone was never bootloader unlocked for warranty purposes (as doing so may or may not void the warranty). But none of these M8 devices have warranty any longer, as the phone is going on 3 years old now.
[One (M8) General] zeuskrap:
Sir Please Help Me

I Bought A Used M8

ANd It's SHow " Relocked "

and i tried this way to unlock it

put it's still shows 'Relocked"

i don't know what i have to do ??
[One (M8) General] Einwod:
Start HERE To get S-OFF you need Sunshine which costs $25.00 US. Post the results of fastboot getvar all after removing your serial and IMEI numbers. Someone will help further.
[One (M8) General] redpoint73:
The method in this thread requires s-off. If your phone is s-on, you can unlock it by going through the process at HTCDev.com.

Also, please don't quote the whole long instructions from the top post, as it clutters up the thread (I had to scroll scroll scroll to even get to your question). I know you are new to the forum, and including the post to which you are replying, is the forum default. But simply delete the quote, except particular lines of text that are directly relevant to your reply.
[One (M8) General] zeuskrap:
can i chat with you sir ?

i need show you something i need to explain

couple of pictures maybe help me and finish my problem
[One (M8) General] redpoint73:
Best way to obtain help is to post to the forum (not chat, PM, etc.). I see you've created a separate thread, so I'll be happy to try to help there: https://xdaforums.com/htc-one-m8/general/help-to-unlock-m8-t3605400
[One (M8) General] katinas75:
C:\adb>adb devices

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

List of devices attached

How repair it?
[One (M8) General] Einwod:
Your device is turned on? Correct drivers installed? Developer options on? USB debugging turned on?
[One (M8) General] katinas75:
Your device is turned on? Correct drivers installed? Developer options on? USB debugging turned on?

Yes, device turned on, i am going to fastboot and have a mesage "fasboot usb".

drivers installed correct, i thinking, because erlley i can push software to my device.

Developer options on and debugging turned on, my device can start in android system after modificated software. :( .

and now i cant push any twr or boot loader.

(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.13.206.5

(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: O2___001

(bootloader) battery-status: good

(bootloader) battery-voltage: 0mV

(bootloader) partition-layout: Generic

(bootloader) security: on

(bootloader) build-mode: SHIP

(bootloader) boot-mode: RUU

(bootloader) commitno-bootloader: 76df2b54

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

I cant find corectly RUU
[One (M8) General] Einwod:
Yes, device turned on, i am going to fastboot and have a mesage "fasboot usb".

drivers installed correct, i thinking, because erlley i can push software to my device.

Developer options on and debugging turned on, my device can start in android system after modificated software. :( .

and now i cant push any twr or boot loader.

(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.13.206.5

(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: O2___001

(bootloader) battery-status: good

(bootloader) battery-voltage: 0mV

(bootloader) partition-layout: Generic

(bootloader) security: on

(bootloader) build-mode: SHIP

(bootloader) boot-mode: RUU

(bootloader) commitno-bootloader: 76df2b54

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

I cant find corectly RUU[/QUOTE]

ADB doesn't work from fastboot screen. Only from within the OS or from TWRP. You're s-on also, so nothing in this thread will work.
[One (M8) General] katinas75:
ADB doesn't work from fastboot screen. Only from within the OS or from TWRP. You're s-on also, so nothing in this thread will work.

And how me restore my device OS?
[One (M8) General] Einwod:
And how me restore my device OS?[/QUOTE]

Are you saying you have no OS on the device? Does it start at all?
[One (M8) General] peppe104:
hi guys, i'm stuck in a strange situation

I needed to flash mm RUU so I locked bootloader and reset tampered flag.

once flashed I'm still S-OFF but can't unlock bootloader since i have no root access and fastboot keep saying permission denied

sunshine says the phone is already s-off and it has nothing to do.

any suggestion to gain root, unlock bootloader and flash twrp? I would like to avoid the pass through htcdev.

m8 ul, soff, lastest europe official 6.12.401

thanks in advance
[One (M8) General] Einwod:
You had no need to lock the bootloader in the first place. I think you may well have to use HTCdev route if this method doesn't work. You'll lose everything on imternal storage. Make a backup.
[One (M8) General] jshamlet:
Have you tried booting (not flashing) TWRP and using its ADB shell? If you are S-off, that should let you enter the manual unlocking commands.
[One (M8) General] runje:
Does unlocking the bootloader over adb, as described herein, wipe the data partition? I just want to make sure, so I know whether or not I have to backup data beforehand.
[One (M8) General] jshamlet:
No. Unlike a fastboot triggered unlock, this simply rewrites the flag, which does not initiate a wipe.
[One (M8) General] Sloth:
Nope

Sent from a Glade Plugin. ;)
[One (M8) General] Hadziano:
still cant get m8 to unlock.. permission denied when copying code. helppppp
[One (M8) General] SwayMontana:
I can confirm that this method works with all HTC m8 varients with s-off. I got a couple of refurbished ones to try them on.
[One (M8) General] mrrocketdog:
good info. thank you :)
[One (M8) General] Captain_Throwback:
You reset it to LOCKED, then you flash stock firmware. There will be no red text if you're on stock signed boot and recovery images.
[One (M8) General] suicidal acorn:
Oh ok. I didn't know you could do that. Thanks!
[One (M8) General] southernvyper:
Stock Firmware

Where is the stock firmware available for download?
[One (M8) General] Bammeh:
Do you think the employees will even check or know what S-OFF is? I'm taking mine in today to swap it out for one without defects. Do you think I need to bother returning to S-ON or will going to stock be just as good
[One (M8) General] scotty1223:
I would leave s off