yashsingh1/xdaforums huggingface dataset:
[One (M8) General] leecavturbo:
got stuck:confused:

H:\Documents and Settings\lee\My Documents\Downloads\adt-

0702\adt-bundle-windows-x86-20140702\sdk\platform-tools>a

SunShine.apk /data/local/tmp

1716 KB/s (28428372 bytes in 16.171s)

H:\Documents and Settings\lee\My Documents\Downloads\adt-

0702\adt-bundle-windows-x86-20140702\sdk\platform-tools>a

root@htc_m8:/ # su

su

root@htc_m8:/ # chmod 755 /data/local/tmp/SunShine

chmod 755 /data/local/tmp/SunShine

Unable to open /data/local/tmp/SunShine: No such file or

10|root@htc_m8:/ # chmod 755 /data/local/tmp/SunShine.apk

chmod 755 /data/local/tmp/SunShine.apk

root@htc_m8:/ # /data/local/tmp/SunShine.apk

/data/local/tmp/SunShine.apk

/data/local/tmp/SunShine.apk[38]: syntax error: ')' unexp

1|root@htc_m8:/ # /data/local/tmp/SunShine

/data/local/tmp/SunShine

tmp-mksh: /data/local/tmp/SunShine: not found

127|root@htc_m8:/ #

H:\Documents and Settings\lee\My Documents\Downloads\adt-

0702\adt-bundle-windows-x86-20140702\sdk\platform-tools>
[One (M8) General] BerndM14:
Go to the Sunshine Thread and use their instructions to gain S-OFF. Firewater doesn't work anymore and you don't get S-OFF with Sunshine in the same way. It gets run from inside the OS(Has to be stock or as close to stock as possible).
[One (M8) General] tusing:
Aaargh halp please

So wait - I am confused. Getting mixed signals here., different threads say different things.

Is S-OFF needed for custom ROMs like CM12, LiquidSmooth, BlissPop, etc if I have the developer or unlocked edition of the phone? (Not GPe)

And will it be necessary for said Lollipop ROMs when HTC releases their Lollipop OTA?
[One (M8) General] Einwod:
If your present firmware matches the version of the ROM in question, then the answer is no. If you need to update your firmware to another base so you can use the ROM, then you need S-OFF. It's a very simple process and only costs $25. Well worth the money. I'd say go for it.
[One (M8) General] tusing:
Isn't there a rather high risk of hard-bricking though if something goes wrong when using S-OFF?
[One (M8) General] Einwod:
There's a risk when walking out your front door every morning. As long as you follow the threads and instructions as they are written, you'll have no problems. I went S-OFF with Sunshine 2 days after I got my M8. Have not regretted it one second. Worth it, IMHO.
[One (M8) General] jm1llz:
is the firewater site down for anyone else? I can't seem to access it and I've tried on multiple different internet connections? I can't install the google play rom until i get s-off working and need firewater to do so :(

I don't think there are any mirrors out there either.
[One (M8) General] MysteryEmotionz:
No
[One (M8) General] whytechapel_x:
OK I'm on it. But I'm also wondering why in the version main it doesn't show anything its blank..
[One (M8) General] Sojourner353:
It's due to the custom recovery your using. Mine was the same until I flashed the new firmware then it all came back.
[One (M8) General] boe323:
thanks for the great tutorial, im so happy, I love my new m8 now, previous one sold thanks to htc screwing it up, I ended up with an EE/ORANGE branded version even though it said simfree lol, but who cares now, im s-off with supercid and my mid doesn't need changing, its the same as htc_001, I wonder ....would we get away with changing the serial number or is that just plain illegal?
[One (M8) General] sagardeswal19:
I have a "without bill" version of m8 with 2.3ghz quad core processor. when i try to flash a custom rom, i am able to flash only selected roms properly . i really like viperone, but i am unable to flash it. it flashes sucessfully but when i reboot, it boots into the bootloader. :confused: then i need to flash android revolution hd which works. but again, i need viperone. any helps?

i am new to xda, so sorry for any mistakes.
[One (M8) General] trevor4g:
HI I'm trying to update to the 2.12.401.3 firmware but I keep getting FAILED (remote: 41 model id check fail).

Here's my getvar dump:

(bootloader) version: 0.5

(bootloader) version-bootloader: 3.16.0.0000

(bootloader) version-baseband: 1.08.20.0610

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

(bootloader) product: m8_whl

(bootloader) platform: hTCBmsm8974

(bootloader) modelid: 0P6B70000

(bootloader) cidnum: 11111111

(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

Thanks in advance
[One (M8) General] Sojourner353:
Will fix it for you soon and let you know when to download it again, thanks.

---------- Post added at 09:03 AM ---------- Previous post was at 08:56 AM ----------

Would anyone happen to know all the M8's modelid versions so I can add them all to the custom firmware so I don't have to keep updating it? Thanks.
[One (M8) General] mgn7:
Thank you very much Vomer for your wonderful guide, it work out perfectly every time for me since M7.

just a reminder, after input

fastboot flash zip /Users/vomer/Desktop/firmware.zip

pay attention at the end of the message.

"FAILED (remote: 90 hboot pre-update! please flush image again immediately)

finished. total time: 5.812s"

just REPEAT the same command

fastboot flash zip /Users/vomer/Desktop/firmware.zip

everything works as expected.

Thank you very much for all your hard work.
[One (M8) General] Sojourner353:
Latest Firmwares are now updated with your modelid included, thanks.
[One (M8) General] cez10:
hey guys Im trying to s-off my m8 however my adb seems to interfere .

it just appears so quickly i dont even get a chance to type YES for firewater.. any ideas?

thank you

ps. running venomrom which comes rooted with superuser not super su? could it be an issue?

/// getting replacing superuser with supersu solved the above issue however got the firewater message the s-off wont work on my device blah blah....meh :/
[One (M8) General] kinaneh:
Hi man thanks for your efforts but i reached s-off level and i get this what seems to be the problem ?

********** whelp, this sucks, firewater can not work on your device **********

********** no amount of reflashing, retrying, or ruuing will fix... **********

********** DO NOT COME TO IRC ASKING FOR UPDATES OR ETAS!!!!!! **********

********** if we are able to fix this issue, it will be announced **********

********** bye bye.....sorry it didn't work out. **********

Thanks
[One (M8) General] Hawkysoft:
It means it doesn't work for your device only solution is the payed one.
[One (M8) General] kinaneh:
really !! and why that ? i had an m8 before and it worked so why now it wont ? :(:(

is there another solution for this :(
[One (M8) General] guyd:
It was patched by HTC.

No other solutions, but sunshine will likely work.
[One (M8) General] skarl:
Hi,

Fail to update to 2.12.401.3

My getvar as follows:, thanks in advance

FAILED (remote: not allowed)

finished. total time: 2.254s

(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-OFF

(bootloader) serialno: xxxxxxxxxxxxx

(bootloader) imei: xxxxxxxxxx

(bootloader) imei2: Not Support

(bootloader) meid: 00000000000000

(bootloader) product: m8_ul_ca

(bootloader) platform: hTCBmsm8974

(bootloader) modelid: 0P6B12000

(bootloader) cidnum: 11111111

(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: 098a72e5

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

all: Done!

finished. total time: 0.015s
[One (M8) General] Migwickert:
Did you run the command twice? :)
[One (M8) General] skarl:
Nope, once. BTW I managed to update using windows, i guess theres a problem with Mac.

Thanks Vomer for the wonderful guides
[One (M8) General] boe323:
Use Sunshine, its been tested on all the varients that wont achieve S-OFF, but be prepared to spend some money for it.
[One (M8) General] greatervoice:
fw_2.12.401.3_custom_with_red_text not flashing

Hi Vomer,

Iam appreciating your work. Iam from India. Recently I bought htc one M8. I unlocked and rooted and s-off using firewater and supercid. My original software No. is 1.56.720.6 and HBoot is 3.16.0.0000. After S-off and super cid Iam trying to upgrade the firmware to latest base fw_2.12.401.3_custom_with_red_text. When Iam applying fastboot getvar all command all items are ok but in the (bootloader) version-main: it shows empty. And fastboot oem rebootRUU command there is a black screen with HTC in the centre. It is not coming to bootloader. Hence iam unable to flash new fw_2.12.401.3_custom_with_red_text. What is the problem Can you explain please?
[One (M8) General] ghul21:
Gr8 guide as always ? Thx Vomer.
[One (M8) General] mrrocketdog:
i dont think firewater works anymore. have to use 'sunshine' and its $25. but worth it in my opinion.

"all i can really do , is stay out of my own way and let the will of heaven be done"
[One (M8) General] Hamodi:
C:\android-sdk-windows\platform-tools>fastboot flash zip firmware.zip

target reported max download size of 1796780032 bytes

sending 'zip' (28937 KB)...

OKAY [ 2.297s]

writing 'zip'...

(bootloader) zip header checking...

(bootloader) zip info parsing...

FAILED (remote: 99 unknown fail)

finished. total time: 2.607s

___

firmware flashed or it failed ?
[One (M8) General] Sojourner353:
Hi all I will be uploading the dev edition custom firmware for Lollipop later today, will keep you all posted, thanks.
[One (M8) General] Luigiesin:
Thanks man! Can you still use the new FW with 4.4.4? Since the Tmo ROM isn't arriving for a couple of weeks at least.. Want to try the new FW.
[One (M8) General] Sojourner353:
Hi all,

Just updated Post #3 with latest the Developer Firmware for Lollipop 4.16.1540.8 both with and without the red text.

WWE Firmware will follow once available.

I have tested both these files on my M8 and all operates as it should, as always check your md5's prior to flashing, enjoy!
[One (M8) General] Hamodi:
can i flash the new firmware with S-on ??
[One (M8) General] Einwod:
Flash it twice. Second time should be successful.
[One (M8) General] blondini:
So if I install the 4.16.1540.8 update does this basically mean that I am replicating what I would get with an OTA update?

Thanks
[One (M8) General] Einwod:
For firmware, yes.
[One (M8) General] jkolner:
I realy dont understand this!!!

When i enter fastboot and open adb in a cmd, adb starts but i get: "error: Device not found"

I am rooted and S-Off and have never had this problem befor.

I get the same on 3 different PC's.

I have tried to reinstalle the HTC driver and have updated TWRP to 2.8.4.0, but still can't use adb to control my phone.
[One (M8) General] konsti23:
Thanks vomer

Thanks, [MENTION=1363323]vomer[/MENTION], for the latest fw 4.16.1540.8.

Flashing went brilliantly good.

CHeers

K.
[One (M8) General] GCbard:
I read that if one flashes the new firmware that the phone resorts to s-on since it is the developers edition firmware. Is that true?
[One (M8) General] Einwod:
Not true.
[One (M8) General] Hamodi:
now im having another error when flashing the firmware

C:\android-sdk-windows\platform-tools>fastboot flash zip firmware.zip

target reported max download size of 1826414592 bytes

sending 'zip' (29494 KB)...

OKAY [ 2.342s]

writing 'zip'...

FAILED (remote: not allowed)

finished. total time: 2.841s

My Cid number is HTC__K18 i'v add it on android-info at the zip file

what else i shud do ?
[One (M8) General] androfanatic:
Thanks a lot for the awesome guides.
[One (M8) General] dantheman1:
So even if you have a backup of your stock ROM, there is still things you need to flash to receive ota ?
[One (M8) General] Stephen:
Moderator Warning,

Thread has been cleaned. Remember forum rules. Keep posts on topic. If you have an issue with a users post, do not reply to it and start flame wars, but leave it and report it to us.
[One (M8) General] jkolner:
This thread has helped me so many times!

When ever i have flashed, updated or what ever - and it has gone wrong - i can always finde a answer and solution here.

This guide should definitely be a sticky.

Thanks Vomer.
[One (M8) General] miti.xprince:
hi guys (sorry for my bad englishi)

my phone is not S-Off (Rooted)

and i cant do that with firewater and Sunshine don't support my country!

this is my S-Off problem:

[IMG="S-Off feild"]http://s1.img7.ir/jfFjk.jpg[/IMG]

affter type last code ... nothing happens and auto unpluged !!!

can i flash new firmware without S-Off ?

M8 AT&T

android 4.4.2

firmware 1.12.502.18

CID: CWS__001
[One (M8) General] rustykwak:
No if you cant get S-off return to stock with flashing a stock backup then the correct stock recovery then take the OTA's from HTC then try sunshine again before flashing anything else!
[One (M8) General] TSocculd5656:
Guide outdated for use with 5.0.1

I want to follow the instructions perfectly so as to avoid bricking my phone, but some of the instructions no longer apply to 5.0.1 devices.

For example, the following is not correct for 5.0.1: "Un-check "Fast boot" on your phone by going to Settings -> Battery Manager." This option no longer exists in this location.

This also does not seem to work on 5.0.1: "Place your device into fastboot mode by plugging in your HTC One to your computer,

then powering it down by holding both the Power and Volume Down buttons"

So, how should I go about unlocking and rooting my phone? Don't we need an updated guide for lollipop?
[One (M8) General] BerndM14:
If you already have adb/fastboot on your computer then just plug phone into PC open terminal in adb folder and typed in adb reboot-bootloader.

This guide is pretty out dated again, Firewater doesn't even work anymore. Apparently they shut down the servers which firewater used to get the file(from online) to perform the exploit. Should rather just use Sunshine S-OFF which also unlocks your bootloader for you so you don't even need to do the HTC-dev unlock anymore.
[One (M8) General] tsalta:
the Latest STOCK 4.16.401.9 NO RED TEXT http://uploaded.net/file/4ryklcin
[One (M8) General] Sojourner353:
Anyone waiting for my custom 4.16.401.9 it will be up in the next 24hrs.
[One (M8) General] tsalta:
well is already full with the new 4.16.401.9 With and WIthout the Red text just wonder to make sure witch one is the custum tat has removed the things to NOT REMOVE data content recovery and etc.
[One (M8) General] leecavturbo:
im not using firewater! im trying to send sunshine to phone

im now getting permission denied
[One (M8) General] Sojourner353:
Post #3 has my latest 4.16.401.9 firmwares, as always check your md5's prior to flashing, enjoy.
[One (M8) General] shaunhoop1981:
[/COLOR]

If I flash your 5xx base 4.16.401.9 custom firmware without red text will it

1 update radio

2 wipe recovery

3 include hboot

Thanks in advance Shaun
[One (M8) General] subasenrai:
Do we need flash fw 4.16.1540.8 first then flash fw 4.16.401.9 or just flash fw 4.16.401.9. Thanks :)
[One (M8) General] Einwod:
You only need to flash the firmware you want. The 2 firmwares are different, not sequential.
[One (M8) General] xtcislove:
Super CID & S-Off

Do i need Super CID and/ or S-OFF to flash the latest custom firmware and the latest Venom Rom on my HTC One M8 from german tmobile(telekom)? It will arrive tomorrow and im back from Apple (shame on me) i dont like to brick my new phone but custom rom is a must have :D

edit: i think the answer is yes i need S-Off for the new firmware. I put my last money into this phone is there any way to get s-off without money?
[One (M8) General] Sojourner353:
Hey mate,

1. Yes

2. No

3. Yes

Have a good one.
[One (M8) General] uzb777:
Hi all.

Can I install this firmware?

Here is the info about my phone:
[One (M8) General] mabiuszai:
Yes you can.. Just be sure your s-off
[One (M8) General] uzb777:
Unfortunately, my phone is S-ON..
[One (M8) General] reddevilv7:
Hi, i have the same cid and and s on, bootloader modified, will i get update?

Or just install it manually?
[One (M8) General] mabiuszai:
You will get the update.. Be sure to be jn pure stock rom and stock recovery
[One (M8) General] rafine1234:
phone lost root

I have the new developer edition firmware 4.16.1540.8 and a custom recovery and a custom rom, and yes i am s-off. Everything was fine, but then i wiped my phone and updated to the custom roms latest version its lollipop 5.0.1 and i lost root. Ive tried flashing the newest SuperSu and then checked for root, nothing. Did it again and still not rooted. I flashed the rom again to see if maybe that would work, but it did not. Any help on getting my phone back to rooted, would help
[One (M8) General] Azuske:
Is there any way possible to S-Off now that doesn't require me to pay for an unreliable APK (Sunshine)?
[One (M8) General] fajo:
No other, Just Sunshine ;)

Since M8
[One (M8) General] Einwod:
For your information, Sunshine is very reliable. You just have to pay for it.
[One (M8) General] Azuske:
Any application such as this that I have seen personally not work for those following all the instructions although I see it work for some through youtube videos is unreliable and very spotty in my eyes but thanks for your assistance.
[One (M8) General] Einwod:
The app itself informs you whether it will work on your device or not. Also, read the app info page, you must be as close to stock for it to have any chance of working.
[One (M8) General] Azuske:
I know, once again thanks for your assistance.
[One (M8) General] masteris:
hi

My phone is exactly the same as the sky even cid same firmware and I got by the sunshine yesterday im happy

---------- Post added at 12:50 PM ---------- Previous post was at 12:35 PM ----------

My Firmware is 1.12.502.18 AT & T my cid is 11111111 and I'm s-off which firmware should I use? link? help-me
[One (M8) General] Sagace:
I've got the same problem.

i got the htc_032 CID, got the firmware for WWE .401 from the TOPIC "RUUs, OTAs, Stock TWRP Backups, Firmware & More Collection".

I tried the 4.16.401.9-Firmware.zip and also the no red text one. I tried flashing them couple of times but it always FAILED. I mention that i'm S-ON, bootloader unlocked, and rooted.
[One (M8) General] Einwod:
You're S-ON as you say. Read the first post. YOU MUST BE S-OFF. Any wonder it failed. READ THE POSTS.
[One (M8) General] Sagace:
OK. Ty for the info.

But is there any way to update firmware to the lastest if im S-ON?
[One (M8) General] Einwod:
Only way is to get a signed firmware from your carrier/model that matches your CID/MID and flash it. Otherwise, you will need to go back to complete stock and wait for an OTA from your carrier/model. Or go S-OFF. Why would you not want to be s-off? It means you can do anything to your phone...kind of like a real nice cheap whore and only for $25.00 USD and once done (Sunshine to get S-off) she will allow you to do things you only dreamed of....http://theroot.ninja/
[One (M8) General] Sagace:
well i've looked into that and i saw that a lot of people who had the latest ota 4.4.4/3 can't S-OFF :P
[One (M8) General] Einwod:
Have you tried it yourself? You must be close to stock, if not stock, for it to work properly. Give it a go, you have nothing to loose except the $25 if it works. Better than a $30 whore.
[One (M8) General] Pete02:
Just did a vzw m8 last night for my bro and Sunshine worked like a charm. Well worth the 25 bucks. Of course his phone was stock out of the box a few days ago but he did do the 4.4.3 update and Sunshine still worked fine.
[One (M8) General] Blundog:
Will not have access to computer for sometime, isn't there a way to still update my firmware? Att, s-off, supercity, rooted..

---------- Post added at 12:19 AM ---------- Previous post was at 12:11 AM ----------

I'm also 3.19 firmware
[One (M8) General] BerndM14:
Just download the firmware you wish to flash, rename it to 0P6BIMG.zip and place it on your SD Card. Boot into bootloader and it'll pick up the zip and ask you to confirm if you want to flash it. Just leave it to finish from there...once it's completed you'll have to delete the .zip file OR remove SDcard for time being as going into bootloader will just pick up the .zip again and ask you if you wish to flash it and so it keeps on going . . . . . .
[One (M8) General] Blundog:
It's that simple? Why do I see all this tuff about downloading Dev something or another and I also place the zip in the root file, correct?
[One (M8) General] BerndM14:
Well I don't know anything about "Dev something or another" :confused: Don't know if maybe you're referring to a conversion to the Developer Edition or where that comes from...

But yes, you download the firmware.zip, place it on your External SD Card(The Root of the SD card) and rename the file to 0P6BIMG.zip (Make sure it's just .zip and not .zip.zip) reboot into bootloader and that's it. Confirm to flash and leave it to extract, flash until it's done.

As simple as that. No PC required this way.
[One (M8) General] Blundog:
You sir, are quite amazing. Thanks for the help! And Yeh, I have no idea about the "dev something or another". I start reading about flashing firmware and just get carried away and will end up at something like flashing a flashlight apk or something off like that and then I'm like "wait, what did I just read? Oh well, who cares? Let's do this instead". Can you say ADD??

---------- Post added at 01:14 AM ---------- Previous post was at 12:55 AM ----------

One more quick question if you don't mind, how do you update recovery to latest version? I'm still 2.7 and wouldn't want it to hurt anything
[One (M8) General] BerndM14:
Custom recovery? Just download the latest version and flash like you did before.

Connect phone to a PC, enter bootloader mode, place recovery file in adb/fastboot folder on pc. Open terminal with directory path to adb folder and type command:

fastboot flash recovery name_of_recovery.img

If you want to do it without a PC you'll have to download something like "Flashify" (careful though) or you'll have to be rooted so that you can use the dd command to send the updated recovery to the recovery partition.

If you do then you can download android terminal emulator, type in:

su - this is to give root privilege, then:

dd if=/sdcard/name_of_recovery.img of=/dev/block/mmcblk0p43 <<Make sure it's the correct block number. Can use the cat /proc/emmc command in terminal emulator to make sure. If it's GSM device it should be block 43 though.
[One (M8) General] Hamodi:
sunshine do not work on some firmware and still need to wait for V3 of it
[One (M8) General] androidindian:
guys, im on s-on with hboot 3.19 and firmware 3.28.401.7

my modelid is 0P6B10000 and cidnum is HTC__001

is it possible to update to any of the latest 5.0 firmwares for the above id's? (ofcourse i would need to relock bootloader and update) but would love to know..

Thank you so much!
[One (M8) General] Einwod:
In a word NO. All would fail. You need s-off.
[One (M8) General] doc_v15:
Can I root, unlock BL and S-Off for HTC One M8 from Telus, 4.4.4. On sense 6?
[One (M8) General] Einwod:
You can do whatever you like, except maybe S-OFF. For that you need Sunshine app, available from the following site: http://theroot.ninja/ If it will work, it will tell you, before you have to pay the $25. Try it and see.
[One (M8) General] Mr.ziad:
Hi guys , i`m trying to flash a new firmware .. but every time i tried it`s shows me this error: cannot load firmware.zip

my device is unlocked and s-off

cab any one help me please ?