yashsingh1/xdaforums huggingface dataset:
[HTC One S] khan.orak:
Hmmm that's strange.

I had read somewhere that formatting SD card with Stock Recovery corrects some problems while using SD.

Stock Recovery is present inside firmware.zip by the name of recovery.img. might want to flash it and clear storage. Stock recovery can be flashed using the same method as custom recovery. Refer to Steps 17,18 to flash it.
[HTC One S] mortek:
I flashed the stock recovery but I am still having bootloops with the stock ROM :(

Although, I flashed Viper rom and after several reboots it finally booted!

The truth is that I am not sure the sdcard won't get corrupt the next time my phone reboots, but its better than having a bricked phone.

I'll keep on digging on the sdcard corruption by reboot issue.

Thanks again.
[HTC One S] khan.orak:
After this, the last thing on my mind is the HBOOT. You can flash original HBOOT 2.15 anew with the help of this post http://xdaforums.com/showpost.php?p=39216236&postcount=274

But if the bootloops persist even after trying all of this, maybe the car charger has done something to the battery or some other hardware part.

Best of luck!
[HTC One S] mortek:
I rebooted the phone in order to flash an OTA for the Viper ROM and I went into the familiar bootloop again.

So I tried flashing the original HBOOT 2.15 using the method you pointed out and I got this reply:

sending 'zip' (400 KB)...

OKAY [ 0.226s]

writing 'zip'...

(bootloader) zip header checking...

(bootloader) zip info parsing...

FAILED (remote: 99 unknown fail)

finished. total time: 1.735s

I then tried clearing storage with stock recovery but once again I am stuck with that bootloop. :s
[HTC One S] khan.orak:
I suspect hardware failure.
[HTC One S] booenson:
Trying to get back to stock so I can send my phone in for repairs, followed all your steps, and I'm coming from TrickDroid 10. Previously, I had the Rogers/Fido 4.1.1 OTA which brought my hboot to 2.15. I downloaded this OTA , followed all your steps exactly but when I tried flashing the OTA.zip I get the following error:

E:Error in /sdcard/OTA.zip

(Status 6)

Error flashing zip '/sdcard/OTA.zip'

Updating partition details...

Then in bold, red letter it says "Failed" near the menus.
[HTC One S] khan.orak:
What recovery did you use? And did you edit updater script using notepad++?

Edit:

Yup, after searching,

Error Status 6

appears when you edit the UPDATER-SCRIPT using wordpad/windows editor which messes all that is inside it. Use Notepad++
[HTC One S] booenson:
TWRP 2.4.1.0. No, I used notepad, but after googling and reading the differences between notepad++ and notepad, I will have to re edit with notepad++. Will try again tomorrow when I have more time, I still need to use this phone for work and can't have it bricked lol
[HTC One S] booenson:
Tried this again, flash went through and then flashed the boot.img included with the OTA zip, and my phones stuck at the "htc one" loading screen

Edit: relocked, flashed the stock recovery, thought it was still stuck at the loading screen so I unlocked it then went to install TWRP again to restore my nandroid, and it decided to finally boot. I guess I just needed to give it more time, currently back on 4.1.1, time to send this thing in under warranty so I can get my 3G/HSPA+ fixed. Thanks!
[HTC One S] asdfasdfvful:
Just wondering, am I able to use an ota from another carrier to update my firmware and hboot as long as it fits my Cid? I believe my Cid is the global 001
[HTC One S] khan.orak:
I think yes. You can check if you CID is supported. It is inside the OTA.zip\firmware.zip, a file named android-info.txt and the supported CIDs will be there.

Edit: You should first check your CID. Download CID GETTER from Play Store. Shows CID in red on top.
[HTC One S] atrus5:
Wish I had this when my phone went down. I took each img file and extracted them and place that in each partition. Did the same but way more tedious. Didn't see the text file. Doh
[HTC One S] asdfasdfvful:
Yeah I tried but...
[HTC One S] khan.orak:
From fastboot:

fastboot getvar cid
[HTC One S] asdfasdfvful:
Yeah I'll try that later
[HTC One S] leungalv:
This worked for me when I thought I bricked my phone :)

I installed Viper, then installed the OTA Telus update

Though I'm getting a, "Unfortunately, System UI has stopped working" message ... looking into how to resolve that
[HTC One S] khan.orak:
maybe remnants of previous ROM? Wiping caches, dalvik etc would be a good bet.
[HTC One S] leungalv:
I tried that ... I actually had to do a factory reset before everything worked. But everything worked out great! This thread was very clear! Thanks :):)
[HTC One S] khan.orak:
Glad I could help.
[HTC One S] asdfasdfvful:
Oh and another thing, is there a way for me to know the cid of a certain zip without downloading the whole thing? Because I've been trying to download the telus one for the third times (previous were incomplete) and it is wasting my internet. I just hope that it will work after it downloads.

oh and it turns out the third download is incomplete as well... stopped at 190MB for some reason

---------- Post added at 09:26 AM ---------- Previous post was at 09:18 AM ----------

Sorry for all the questions, but I am trying to s-off so I need a zip that is compatible with moonshine. I found this

http://www.androidruu.com/getdownlo....27.50.08L_release_308167fun0bzhoz2tch0mh.zip

And I'm wondering if that means the firmware and hboot is the same as mine since mine currently has 1.11.50.05.28_10.27.50.08L.
[HTC One S] khan.orak:
You are right. Some other folks reported unsuccessful downloads.

http://xdaforums.com/showthread.php?t=2200930

Use this thread to download specific RUUs.
[HTC One S] asdfasdfvful:
I attempted to try this but my device isn't connected... I am using a mini sdk. Do I have to put it into program files or can it work in documents? I'm getting the list of commands when I type fastboot or adb, but fastboot devices show nothing

Edit: Nevermind I'm stupid

(bootloader) version: 0.5

(bootloader) version-bootloader: 2.15.0000

(bootloader) version-baseband: 1.11.50.05.28

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main:

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

(bootloader) serialno

(bootloader) imei

(bootloader) product: vle

(bootloader) platform: HBOOT-8960

(bootloader) modelid: PJ4011000

(bootloader) cidnum: GLOBA001

(bootloader) battery-status: good

(bootloader) battery-voltage: 3821mV

(bootloader) partition-layout: Generic

(bootloader) security: on

(bootloader) build-mode: SHIP

(bootloader) boot-mode: FASTBOOT

(bootloader) commitno-bootloader: dirty-64bedd38

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

all: Done!
[HTC One S] khan.orak:
Read Pre-requisites & Common Steps in the first post. That should work for you.
[HTC One S] khan.orak:
You might want to hide your IMEI and Serial No. Can be used in real bad way.
[HTC One S] mkoev:
Hi all,

I want to let you know that this guide is very helpful and the person behind it helped me to unbrick my phone personally.

Yesterday I got my HTC One S, unlocked the bootloader and then I bricked it almost immediately. Its CID was for T-Mobile UK which is problematic, because we were not able to find any RUUs of TMobile UK. So I foolishly deleted the system of my phone without backing up. Next thing I was not able to flash a ROM because my phone would not mount the SD card. Thanks to khan.orak now I have a fully working phone again.

Most of you use TWRP but I use CWM. I am just used to it coz I've been using it for years. There was also a moment where my phone had both the stock recovery and TWRP and I was not able to remove it. I am still not clear what happened but after several reboots and re-flashing of CWM TWRP was gone and I was able to see my SD card through the computer again. Next I followed the guide letter by letter, but as advised by khan.orak I did not do the part with the blue text, steps 11 to 16. After I re-packed the archive with the edited updater script (it is very easy I used 7-zip) I was able to get a fully working OTA.zip which installed with just one click. I will NEVER remove it from my phone:))

Just follow the steps one by one and everything should be fine.

Thank you khan.orak! :)
[HTC One S] khan.orak:
This can be particularly helpful to T-Mobile UK users. Updating OP with a link to this post. :good: Thanks [MENTION=4885902]mkoev[/MENTION]
[HTC One S] cranium cracker:
Use nandroid backup
[HTC One S] khan.orak:
You have edited the updater-script incorrectly.

Either you have edited it with wordpad/notepad or you done wrong editing. double check. Use NOTEPAD++
[HTC One S] looperman:
everything was great until i went for flashing the OTA.zip at step 21.

I get this in TWRP:

I figured out that I might not edited the updater-script correctly .... this is what it looks like

I don't see "BM___001") == "t"); anywhere as in step 8. ....

also these :

don't match the ones that im supposed to delete ? What shall I do ?
[HTC One S] looperman:
anyone please ??

.................
[HTC One S] atrus5:
Can you send what the lines do look like so that we can help. If yours aren't exact they at least will have the same commands. Would like to see what they are before deleting them
[HTC One S] khan.orak:
BM__001 was my CID.. yours must be something else.

Match rest of the file to see what to remove
[HTC One S] ppm48:
error

in your thread you told us to look for this

assert(check_cid(getprop("ro.cid"), "00000000" , "11111111" ,

"22222222" , "33333333" , "44444444" , "55555555" , "66666666" ,

"77777777" , "88888888" , "99999999" ,

"BM___001") == "t");

ifelse( is_ship_bootloader(getprop("ro.bootloader")) == "t" ,

assert(check_mid("full", "PJ4011000") == "t");,

assert(check_mid("simple", "PJ4011000") == "t");

);

and delete it

when i looked i have this

ssert(check_cid(getprop("ro.cid"), "00000000" , "11111111" ,

"22222222" , "33333333" , "44444444" , "55555555" , "66666666" ,

"77777777" , "88888888" , "99999999" , "HTC__001" , "HTC__E11" ,

"HTC__203" , "HTC__Y13" , "HTC__102" , "HTC__405" , "HTC__304" ,

"HTC__A07" , "HTC__J15" , "HTC__016" , "HTC__A48" , "HTC__M27" ,

"HTC__032") == "t");

ifelse( is_ship_bootloader(getprop("ro.bootloader")) == "t" ,

assert(check_mid("full", "PJ4010000") == "t");,

assert(check_mid("simple", "PJ4010000") == "t");

);

as you can see its nothing like the one you show
[HTC One S] khan.orak:
Just delete these lines.
[HTC One S] khan.orak:
what is your cid?

Also, this OTA.zip is for The VilleC2 (S3) version.. Do you have the S3 version One S?

What ROM are you currently on?

Edit:

Delete these lines.

ifelse( is_ship_bootloader(getprop("ro.bootloader")) == "t" ,
assert(check_cid(getprop("ro.cid"), "00000000" , "11111111" ,
"22222222" , "33333333" , "44444444" , "55555555" , "66666666" ,
"77777777" , "88888888" , "99999999" , "HTC__001" , "HTC__E11" ,
"HTC__304" , "HTC__A48" , "HTC__A07" , "HTC__M27" , "HTC__032" ,
"HTC__016" , "HTC__203" , "HTC__102" , "HTC__405" , "HTC__Y13") == "t");
);
ifelse( is_ship_bootloader(getprop("ro.bootloader")) == "t" ,
assert(check_mid("full", "PJ4020000") == "t");,
assert(check_mid("simple", "PJ4020000") == "t");
);
[HTC One S] looperman:
I downloaded OTA_VILLEC2_U_JB_45_S_HTC_Europe_3.19.401.101_16.22.20.03U_16.11.20.24_M.zip

and yes im with S3
[HTC One S] khan.orak:
go ahead with it.

if you had previously updated to JellyBean, Skip steps 11 to 16
[HTC One S] looperman:
will it fix the TWRP unable to flash OTA error ?

PS: still can't flash the OTA
[HTC One S] khan.orak:
Yes. Delete those lines I have mentioned.
[HTC One S] looperman:
I did and still not working, tried 2 times with wiping and factory reset, then I switched to 2.3.3.0 recovery again... still getting error

this time it says:

E:error in /sdcard/OTA.zip

(status 6)

Error flashing zip '/sdcard/OTA.zip'
[HTC One S] khan.orak:
What did you use to edit the Updater-Script?
[HTC One S] looperman:
notepad ++
[HTC One S] khan.orak:
Status 6 is a wrongly-edited error.

Attach the Updater-Script here and post it.
[HTC One S] looperman:
there it is
[HTC One S] khan.orak:
the Updater-Script is edited correctly. Don't what the problem is now.

Tell me what ROM were you on previously?
[HTC One S] looperman:
villec2 put ship S-ON RL

hboot 3.01

ROM: CodenameLungo_villec2
[HTC One S] khan.orak:
ICS or Jellybean?
[HTC One S] looperman:
JB i think
[HTC One S] khan.orak:
Brother I just checked. I tallied your script with my own.

It has been correctly edited and fine. No problem with the script.

You might be doing something else incorrectly.
[HTC One S] atrus5:
What else is in the ota.zip? Could be a corrupted updater-binary
[HTC One S] ayyu3m:
Gotta quick question.

Call me crazy but i want to downgrade my Ville C2 to ICS

HBoot is 3.1000. My One S C2 is still intact (as bought). i.e I am still on Stock JB and bootloader is locked and s-ON as was when i bought.

I have the correct ICS RUU from HTC.

Question is if i have the correct RUU can i just run it. Do i need to downgrade my HBoot?

Cos i have seen somewhere that if you have a JB Hboot, then you dont need to alter it in order to downgrade to stock ICS
[HTC One S] tivofool:
nope, you can't go older, so yes you would need to change your hboot. Really, there isn't a particularly good reason to downgrade to ICS.
[HTC One S] salac:
excellent guide. saved my life :)

thank you
[HTC One S] dagolard:
Man, u saved me too.

And - If anyone need a prepared OTA that works with HTC__102 and 3.01 Bootloader - ask me.

But a question: I tried the Online Updates. Phone downloads them and reboots jumps into Recovery mode. Wazzup? What to do? Have I to relock the phone for updates?
[HTC One S] tivofool:
Yes, I believe you need to have a locked bootloader and stock recovery to receive OTA updates.

(NO Super Cid when OTA updates. people have bricked their phone that way)
[HTC One S] dagolard:
So - anyone HAS a HTC__102 Stock Recovery for me? :D
[HTC One S] forgiven90:
Soft brick here

If somebody here can help I'd appreciate it... Some history: I have an unbranded One S (Model PJ4011000) CID 1111111 Unlocked and s-off. I was Hboot 1.14 and I wanted to use the newer kernels so I flashed a Euro RUU (First mistake) This was a while back now so the details are fuzzy but then I flashed a T-MOB RUU and everything worked until I flashed a firmware.zip (don't remember why anymore) from here http://xdaforums.com/showthread.php?t=2322755 After this I couldn't get anything to stay running, even nandroids. Like the roms (tried several newer ones incl Sense) would either bootloop or reboot after about 5 minutes. I made sure I didn't flash a OTA because I was s-off, heard this would likely cause a brick. I had read that somebody with this same problem had limited success going s-on (facepalm) and then upgrading Hboot to 2.15 and then using moonshine to s-off. Something about a MID mismatch causing the problem... I think they had to downgrade Hboot before going s-on again tho... I've not read any more about that procedure so don't feel comfortable with that now. I was wondering if this OTA procedure might solve my problems and would I need to change my CID before flashing an OTA? I've about gave up on this device and have left it sitting in the drawer now for a while. If somebody here has something for me to try I have some time now again.
[HTC One S] tivofool:
http://www.modaco.com/topic/353006-...ch-recovery-for-the-htc-one-s-stock-download/

The 2nd Download link is the stock recovery. This is for the S4 version of our phone (not S3) I've used it before.
[HTC One S] dagolard:
Gnmpf... :silly:

Okay, so I have to update manually. I downloaded the update, modified the updater-script as like the OTA - and flashed it.

Result: updated System. :good:

Now I have 3.19.401.102
[HTC One S] khan.orak:
You sir have to flash boot.img after flashing ANY ROM. Previously you didn't do it cause you were s-off.

When you ran the RUU it should've made you S-ON hence the problems. Even after nandroid backup restore, you have to flash boot.img
[HTC One S] khan.orak:
Stock recovery is also found inside \OTA.zip\firmware.zip\recovery.img
[HTC One S] forgiven90:
Ah yes indeed... But as of this writing I was still s-off and this was something I tried many times. Now I just finished using Hansoon's AIO tool to rename my CID to T-MOB010, s-on, relock the bootloader. Then I reflashed the same firmware zip as before and unlocked the bootloader with htcdev. I then flashed the latest TWRP and OdysseyHybrid. Booted up just fine and was looking good but I didn't have a sim inserted so I put a sim in and rebooted and it won't boot now! Nothing! But I can get into bootloader/recovery just fine... getting closer but...
[HTC One S] khan.orak:
It's good if your original CID was That of T-Mobile.

I'd recommend using T-Mobile latest RUU AGAIN which might solve the problem instead of manual flashing in this case.
[HTC One S] forgiven90:
Well I know that my original CID wasn't a T-Mobile one :( But I also pretty sure I can't find a RUU from the carrier that this device was originally assigned to either. It was with some small "daughter" company of T-Mobile from Iowa. So I'm assuming that it's the "closest" to T-Mobile.
[HTC One S] khan.orak:
Do complete wipe with the RUU.

1. Run the RUU which will wipe the phone storage partition.

2. Then manually CLEAR STORAGE from bootloader to wipe the SD.

You must try every possibility to get it back on track.
[HTC One S] forgiven90:
Good sugg. Would this be a good RUU to run? RUU_Ville_U_JB_45_S_TMOUS_3.14.531.11_Radio_1.13.50.05.31_10.30.50.08L_release_309489_signed_ICS_2.exe

Edit I'm afraid this is a classical situation where I have to have the "exact" file to flash and "close" won't cut it. Like they say "close only counts in horseshoes and hand grenades" :)
[HTC One S] khan.orak:
Yup. It's a good one.
[HTC One S] thewonderer:
Just tried this adb command while my phone is connected in fastboot usb

adb reboot bootloader

says 'error: device not found'

what am i doing wrong
[HTC One S] khan.orak:
You don't have the correct HTC drivers.

Install sync manager and it'll take care of those for you.
[HTC One S] thewonderer:
Thanks, I already had the lastest htc sync manager installed. I think it worked when i rebooted to recovery. When i was in Fastboot USB, that is when i got the error. Does this sound correct?

thanks.
[HTC One S] atzematze1:
Just for understanding

Hi everyone, I got one question.

I've got a HTC One S C2, root, S-ON, TWRP 2.3.1.0, HBOOT 3.01, CM 10.1.

Now I want to sell my phone, an therefore get back to stock rom (doesn't matter if ICS or JB).

My CID is HTC__102.

I downloaded an RUU for JB, but it's only 2.16 an I got an OTA with 3.19.

I do an NANDROID backup of my CM 10.1 system. Then I manipulate the updater-script an flash the firmeware.zip. Then I unlock bootloader again and flash the stock recovery. Until here no problem.

Then I shall restore the Nandroid backup, but this backup is from CM 10.1. Then I flash the OTA.zip which does not contain a full system, but only the updates, if I'm right. And then I flash the boot.img. How can I then have a Stock JB if I restored the nandroid backup of CM 10.1?

Thats my only problem understanding the whole procedure.
[HTC One S] khan.orak:
Oops, answered Here too.

If you have got the OTA.zip for HTC__102 in unmodified form, then follow the whole tutorial.

Otherwise contact [MENTION=4004127]dagolard[/MENTION] as I have said in the above mentioned reply.
[HTC One S] atzematze1:
No problem khan, I just posted in two forums to get a faster answer ;) Thanks.

I will report today evening or tomorrow if it worked, but it sounds like it will.
[HTC One S] atzematze1:
Errors are the following:

Inatlling '/sdcard/......./OTA.zip

Checking for MD5 file.....

Skipping MD5 check: no MD5 file found

Error flashing zip '/sdcard/OTA/OTA_VilleC2............ (not readable at all)

Updating partition details

thats it, no OTA is installed
[HTC One S] khan.orak:
Maybe a corrupt OTA.zip. have you matched the md5 hashed with those of the server?

Also check if you have correctly edited the updater-script, only with notepad++ because it can pose problems if not edited correctly.

Other than that, it should work flawlessly in principle.
[HTC One S] atzematze1:
It worked

Oh yeah, I got it.

I missed to delete one line in updater-script, so the installation failed. I fixed this an today It worked :)

Wiped SD-Card, flashed stock recovery, relocked bootloader and now it's ready to visit its new owner.

By the way, here is the link to the forum where I found the OTA.:

http://xdaforums.com/showthread.php?t=2234568

Thanks for all the help.
[HTC One S] LuminiferousEther:
Nandroid

Hello, excuse my idiocy about this.

When I initiated this it was impossible for me to create a Nandroid backup (At my skill level with no ROM installed) I have the OPTUS001 CID and was wondering if I can just restore an old backup instead of the Nandroid.

I am on the last few steps, and the original OTA I downloaded was corrupted, downloading a new one now.

Is the Nandroid essential?

Cheers,

PEdit:

I have obtained a non-corrupted OTA, my download stream must've been interrupted, I accept full responsibility.
[HTC One S] tivofool:
Sure, your old backup (nandroid) will work. But will be "old" and all changes, files will be lost if you need to use it.
[HTC One S] LuminiferousEther:
Thanks mate, I was a bit impatient and went ahead anyway, but it's good to know it wasn't causing any errors I wasn't seeing.
[HTC One S] TerrorApple:
Because of warranty I have to get back to Stock RUU. My phone is from T-Mobile DE (branding). I'm on ViperOneS (Android 4.1.1) atm. So do I just have to use your Nandroid-backup and flash the boot.img (where do I get it from?) and I'm fine? Is that all to do?

And how do I get rid of CWM?
[HTC One S] Yaphet Kotto:
Anyone know where I can download a us stock jellybean rom?
[HTC One S] amolpawar2002:
Do not have any Nandroid backup

Hi,

I do not have any Do not have any Nandroid backup.....

Wht to do...??? Can I proceed or not.....???

Please help.....

Device details:

Unlocked

VILLEC2 PVT SHIP S-ON RL

HBOOT-3.01.0000

Radio-16.11.20.24_M

OpenDSP-v11.6.0.2235.00.0304

2MMC-boot

Mar 4 2013,21:03:33:-1

CID : HTC_038

Currently running: CyanogenMod 10.2 with 4.3.1
[HTC One S] jamadave:
WIFI Turning On stuck issue

Hey Guys

Having problem while moving back from viper 5.0 to my stock rom of JB 4.1.1 that backup was taken by me before flashing to Viper Rom. Recovered my stock Rom using TWRP 2.3. However, my wifi is Stuck on Turning On. I think i need to "fastboot flash boot boot.img"; however, i dont have my stock boot.img file. Which boot.img i should use that works for my device. Any help will be highly appreciated.

Thanks
[HTC One S] amolpawar2002:
HELP..........

After flashing the OTA_VILLEC2_U_JB_45_S_hTC_Asia_India_3.19.720.101_16.22.20.03U_16.11.20.24_M_release_3103919j8jewtx4q9sb88c file stuck on HTC boot screen ... Also flashed the boot.img file from the OTA file .... still the same result .....

Please help frnds....
[HTC One S] ayyu3m:
:D Wow. I just restored by Ville C2 to STOCK JB. Never seen such a complete guide. If you follow to the exact words of OP, this will work for you too.

Thankx to xander1993 for the original post

---------- Post added at 01:56 AM ---------- Previous post was at 01:53 AM ----------

Check these, cos i had similar problems. So these are the remedies i took.

1. Re-did the Steps 8 and 9 using 7zip. Did not work when i used WinRAR

2. Wipe/Clean Cache & Dalvik. This is just after flashing OTA.zip
[HTC One S] razvi30.06:
By flashing the firmware.zip in fastboot, will the radio.img be flashed as well, even if I'm s-on?

That's because I'm on stock JB 3.16.401.8 ville s4, but the 401.9 OTA comes with a new radio, wich seems to be better.

I didn't get the OTA yet, even if my cid seems to be supported, so I'm thinking of upgrading by following this tutorial.

Thank you.
[HTC One S] kdd998:
Yes. That's exactly what I did.

RUU to get back to 3.16.401.8. Locked bootloader and S-ON. Flash the firmware.zip from the 4.16.401.9 OTA ZIP. And then apply the 4.16.401.10 OTA update provided by the phone.

Envoyé de mon HTC One S en utilisant Tapatalk