yashsingh1/xdaforums huggingface dataset:
[One (M9) General] mattlovell90:
R2 was fine for me yeah. No idea on the difference either, can only assume it's something radio software related!
[One (M9) General] blocka:
You're S-OFF?

I've read you need S-OFF to flash RUU. Is that actually the case (I'm not S-OFF)...but I'm thinking of doing S-OFF as it could help with other things like reflashing the recovery which I can't do ATM.
[One (M9) General] mattlovell90:
No sir. S-On. Don't need to be S-Off to flash the 0PJAIMG.zip via sdcard.
[One (M9) General] Nima78600:
Even for reflashing recovery s-off is NOT needed.
[One (M9) General] blocka:
Ok so you need to be S-OFF to flash via fastboot?

---------- Post added at 11:00 AM ---------- Previous post was at 10:59 AM ----------

Why then am I getting the S-ON error when trying to re-flash recovery :crying:
[One (M9) General] mattlovell90:
Don't think so. If I understand correctly, S-On means your phone checks the RUU/zip whatever you are flashing is correct for your phone, to save you making an oopsy and ending up with a paperweight. So as long as it's the right file, S-On is fine.
[One (M9) General] blocka:
I've tried to flash stock (signed) recovery and failed with S-ON error.
[One (M9) General] mattlovell90:
I assume you're using the stock recovery from the OP?

EDIT: Read in another thread that you will get the error you are seeing if you are in the bootloader rather than download mode.

Definitely in download mode when you tried to flash before?
[One (M9) General] blocka:
That and extracted Stock from the 401.8 OTA and same road block.

Hey guys can't I just 'reset' my device and I should be back to stock?
[One (M9) General] Nima78600:
As [MENTION=5195008]mattlovell90[/MENTION] mentioned you may try to flash while your device is on download mode.

But if you still have problem why don't flash 1.32.401.15 R2 0PJAIMG.zip via sdcard?

You see this guy was completely successful. Just follow as he did.
[One (M9) General] blocka:
I'll give it a shot when I get home tonight.

Maybe I've been doing it the old way!

This is what I do....

adb reboot recovery (not download)

fastboot flash recovery recovery.img

fastboot reboot

Have you the thread reference I'd like to have a read myself. Thanks......

Thanks for holding my hand guys appreciate it.

EDIT: Major homer moment. Found the thread, and it's looking very likely I'm trying to do this the old way! Will confirm tonight (don't have a micro USB cable at work)
[One (M9) General] blocka:
Have reflashed the recovery
[One (M9) General] Nima78600:
Did you change the name from system.emmc.win to system_image.emmc.win? As that link mentions.
[One (M9) General] blocka:
I did. Have finished the the flash process and flashed /boot and /system but now looks like I'm in a boot loop!
[One (M9) General] Nima78600:
Not sure, but flash the stock recovery as well in download mode.
[One (M9) General] blocka:
I've done that bit. I'm restoring the backup I did just prior to flashing the NAN backup

EDIT: Restoreded my NAN backup, will give it another crack...

EDIT: Tried again this time excluding /boot, same result, boot loop.
[One (M9) General] Nima78600:
No idea at this stage as I didn't try it already.

But if I were you, I just flashed 0PJAIMG.zip via sdcard because it's more reliable.
[One (M9) General] blocka:
Don't have a FAT32 formatted SD Card available. But I can do it via Fastboot right?

After all this I can't recall what image I should flash!

Go into fastboot

fastboot oem rebootRUU

fastboot flash zip zipfile.zip
[One (M9) General] Nima78600:
Yes it's possible. For me didn't work but many others did.

As that guy mentioned you can try R2 version.
[One (M9) General] blocka:
Yep, I've got the R1 on my laptop now so I was considering flashing that first and see how it goes.
[One (M9) General] Nima78600:
Yes you can try. If that didn't work then try other one.
[One (M9) General] blocka:
did you get this error?

Invalid sparse file format at header magi

full output

target reported max download size of 800000000 bytes

Invalid sparse file format at header magi

sending sparse 'zip' (74921 KB)...

OKAY [ 7.753s]

writing 'zip'...

(bootloader) HOSD CL#506785

(bootloader) ERR [SD_UPDATE_ERR] update_fb_ZIP_buf: can not find ZIP hea

(bootloader) der

(bootloader) ERR [SD_UPDATE_ERR] sddownload failed: 22

(bootloader) ERR Update zip file failed.

(bootloader) ERR ZIP ERROR, exit read zip loop

(bootloader) ERR ZIP signature checking failed...

(bootloader) Update zip file OK

(bootloader) ERR ZIP ERROR CODE, 22

(bootloader) end@Done

FAILED (remote: 22: fail to flash via downloadzip)

finished. total time: 10.842s
[One (M9) General] Nima78600:
Yes I think I had the same error. That's why I used SDcard method.
[One (M9) General] blocka:
Just read that could be a corrupt zip header or something, I'm going to try R2 image and if that doesn't work will have to dig up my micro SD Card adapter, or buy another micro SD card to try this.
[One (M9) General] Nima78600:
No the corruption isn't the case. I think it happens because of sending large file size via fastboot.

What's the issue of your sdcard?
[One (M9) General] blocka:
I don't have the ability to format my SD Card to FAT32 right now otherwise I'd try again. So I'll have to wait until tomorrow.

How do you flash from SD Card again?
[One (M9) General] Nima78600:
Don't worry about the format as I think it's FAT32 by default,

The important thing is that it should not be bigger than 32GB
[One (M9) General] blocka:
ah ok, have got the file on my SD Card.....what's next? Reboot into Download Mode?
[One (M9) General] Nima78600:
Rename it to 0PJAIMG.zip and put on your root of SDcard, then put your device in download mode. From there press volume up to start flashing
[One (M9) General] blocka:
Failed to Flash. I need to double check that the SD Card is in fact FAT32.
[One (M9) General] Nima78600:
What message did you have?

---------- Post added at 07:04 PM ---------- Previous post was at 07:01 PM ----------

Just in case be careful that the first letter of 0PJAIMG.zip is "0" not "O"

As it was my mistake
[One (M9) General] blocka:
Failed: -2, 14: fail to flash via downloadzip repeated 3 times.

I was just thinking I don't need to relock the bootloader?

---------- Post added at 07:07 PM ---------- Previous post was at 07:05 PM ----------

Is that it should be zero PJAIMG.zip or O PJAIMG.zip?
[One (M9) General] Nima78600:
No you don't. I did many times already.

There is another possibility that this rom is not for your device. You can try another one.
[One (M9) General] blocka:
zero - O - didn't make a lick of difference!
[One (M9) General] Nima78600:
Zero is correct.

Can you just check something for me.?

Go to settings /about /software information/more and tell me the build number with release key number
[One (M9) General] blocka:
1.32.401.15 cl506785
[One (M9) General] Nima78600:
I personally suggest download R2 for now and try again. If I find something new I will let you know.
[One (M9) General] blocka:
I downloaded the R1 again, looks like it's flashing....stand-by.....looks like this flash did the trick! Finally....

R2 is downloading ATM
[One (M9) General] Nima78600:
Ok good. Just keep downloading another one in case if you don't get ota or any other issue.

---------- Post added at 07:40 PM ---------- Previous post was at 07:38 PM ----------

Also check MD5 checksum always when you download these files in case of corrupted download.
[One (M9) General] blocka:
Yeah didn't run the MD5 earlier, speaking of system update I've received it straight away.

I'm going to flash TWRP and copy the update I downloaded earlier (official OTA) and see if that updates...
[One (M9) General] Nima78600:
Actually you don't need to pull the OTA update as it can be found in this thread as well.
[One (M9) General] blocka:
yeah I already have it from earlier so just need to get it on to the device. I was reading somewhere you can do an adb push /sdcard or something like that.
[One (M9) General] Nima78600:
I didn't get exactly what you mean. I just know after flashing stock rom like you, we should be able to get OTA automatically and flash it successfully. And this is the way that we can know everything is right or no!!!
[One (M9) General] SoLdieR9312:
[MENTION=4366077]exocetdj[/MENTION] Uploaded the 1.40.401.8 RUU here Happy Flashing ;)
[One (M9) General] blocka:
Hey how's it going, trying to apply the OTA and I'm getting errors with the installation aborting.

Package expects build fingerprint of htc/himauhl_htc_europe htc_himauhl:5.0.2/LRX22G/506785.15:user/release-keys or htc/himauhl_htc_europe/himauhl_htc_europe htc_himauhl:5.0.2/LRX22G/549783.8:user/release-keys; this device has htc/himauhl_htc_europe/htc_himahl:5.0.2/LRX22G

E:error in @/cache/recovery/block.map

(status 7)

Installation aborted.

Double Checked my build number and I'm 1.32.401.15 CL506785

Re-flashed stock recovery and same issue.
[One (M9) General] Nima78600:
Hi, did you get ota automatically? Or tried to install manually?
[One (M9) General] blocka:
Actually downloaded the OTA on the phone, so official file.
[One (M9) General] Nima78600:
What did you do before applying OTA? did you flash TWRP and root?
[One (M9) General] blocka:
No it's stock, non root, and stock recovery. Thought it may be because the bloatware so updated those. That's all I've done.
[One (M9) General] Nima78600:
Just try flashing other one(R2). Maybe R1 is not your actual rom.

---------- Post added at 10:45 AM ---------- Previous post was at 10:42 AM ----------

0PJAIMG.zip 1.40.401.8 is also available if you want to flash.
[One (M9) General] blocka:
Yeah I did see that post and downloaded as a second option.

Looking like the R2 zip did the trick, it's gone through and installed the OTA and the system is upgrading ATM. Finally!

Thanks for your help appreciate it.
[One (M9) General] Nima78600:
Glasd to see you succeed finally.

Aa I told you already getting OTA is ont enough to see everything is going right. It also should be applied successfully, tjen it means everything is right. ?
[One (M9) General] tango280581:
Well bugger me, I'm s- off , changed cid to __001, mids fine and when trying to manually flash ota it gives me status 7 aborted .
[One (M9) General] Nima78600:
If your rom is completely stock (untouched), then it means that OTA you applied is not for your rom.

I believe there are different OTAs.

The best way is that to take OTA automatically by your device.
[One (M9) General] tango280581:
It doesn't seem to wanna do it automatically mate.
[One (M9) General] jamieunit:
If your s-off why don't you changw cid to 11111111 and update to newest Europe firmware?
[One (M9) General] xchrisj:
Totally new to this

Hi. I am totally new to this. My carrier is EE in the UK. I want to update to the latest firmware as ee are always the last for ota's. All I want is the latest firmware, not a custom rom. What do I need to do? Basically my phone is currently the same as when bought through ee.
[One (M9) General] Nima78600:
If you would like to receive the update earlier, you need to switch to unlocked version. For this you need to be S-OFF ,change your CID and then flash unlocked European version(x.xx.401.x).
[One (M9) General] MaGrandMereChinoise:
Same problem as Blocka

Hello,

Thanks for this great thread.

I have exactly the same problem as Blocka, with same information (build number ans so on).

I don't see how I can get the "R2" OTA, as I've only found the R1 and if I get the R2, I don't know where to put it to make the system use it for update.

Thanks in advance.
[One (M9) General] Nima78600:
Hi mate,

Blocka flashed the 1.32.401.15 R2 0PJAIMG.zip file via Sdcard method.

Then he was able to receive OTA update by his device and installed successfully.

You can find the file here;

http://androidruu.com/?developer=M9
[One (M9) General] MaGrandMereChinoise:
OK. Thanks.

I thought it was an OTA R2 as the one on the first page of this thread is OTA_HIMA.../...1.32.401.15_R1_release.../...

So it means the only way to get OTA is to flash to stock the system or to put S-Off and flash OTA with TWRP ? That's it ?

It was simplier on M7 !
[One (M9) General] Nima78600:
In your case, yes it's the only way.

Even if you are s-off, you can't apply the OTA with TWRP.
[One (M9) General] tango280581:
Flashed twrp back up and stock recovery, received ota. Now I get this.... Anybody know what I've cocked up on please.
[One (M9) General] Asselalf:
System was mounted as R/W. You need a backup that was not mounted as R/W. Can you tell me the OS number?
[One (M9) General] tango280581:
Thanks can I flash twrp and unmount system then flash stock recovery back and try again

---------- Post added at 05:09 PM ---------- Previous post was at 05:08 PM ----------

Os was 132.401.15
[One (M9) General] Asselalf:
Try this Backup: https://www.androidfilehost.com/?fid=95916177934553346 and the recovery from [MENTION=1162986]Captain_Throwback[/MENTION] http://xdaforums.com/devdb/project/dl/?id=13016

and read this: http://xdaforums.com/showpost.php?p=59745198&postcount=3
[One (M9) General] exocetdj:
apologies fr the delay in adding this stuff mate, for the system.img do we need the boot as well to restore from TWRP? or will putting the system.img in "TWRP>Backups>Serial Number>backup folder" work
[One (M9) General] exocetdj:
added :)
[One (M9) General] exocetdj:
added another post for useful download links

-clsa's AFH containing loads of useful dev edition and AT&T files.

-1.40.401.8 RUU.zip thanks to SoLdieR9312

also added dev edition ota and recoveries
[One (M9) General] tango280581:
I apologise massively (cos I know im quickly becoming a pain in the arse) but can I just flash a 1.40 ruu instead of updating and all that jazz cos its starting to do mi nut in now lol. Honestly ive had Galaxy's, Sony's, nexus's and just when ya think you've got this Android thing sewn up ya buy a different phone and boom you're a novice again lol.
[One (M9) General] exocetdj:
just added a 1.40.401.8 ruu zip link to the 5th post. rename it 0PJAIMG.zip, place it on external sd card then boot into download mode and follow the prompts
[One (M9) General] tango280581:
Thanks
[One (M9) General] dlads:
Alright mate, trying to update my firmware, i'm still S-On til the end of the month, just checked my CID, it's vodap001

Probably a silly question, i'm still on LeeDroid, this quoted file is a zip, i'm guessing it's flashable, but is this possible via recovery with LeeDroid whilst being S-On?

Cheers :)

PS: My reason for asking is if i have to be on a stock rom, i'm guessing that an RUU for the same CID would be enough to accomplish the same, this would probably be less of a ballache if it's possible to just flash an OTA.

PPS: Just read up, apparently I would need to be S-Off :( Guess RUU is the only way >:(

EDIT: I'm going to leave it mate, by all accounts to flash an RUU i'd need to be relocked and back at stock, i'm 9 days away from being paid so i'll just wait and S-Off at the end of the month.

Cheers fella.
[One (M9) General] exocetdj:
Lol sorry just saw this dude. If u are s on u won't be able to do much with ruus with the set up u have being on a Vodafone cid at the moment. S off, change cid and u are good to flash the ruu on the first page
[One (M9) General] tango280581:
Trying to flash ruu and it gives me sparse zip file or something, got no sd card to 0pjaimg it either . Fml.
[One (M9) General] jollywhitefoot:
Are you using fastboot or HTC_fastboot?
[One (M9) General] tango280581:
Minimal adb and fastboot. It gives me invalid sparse file format at header magi. That's after I use fadtboot command oem rebootRUU then fastboot flash zip ******* whatever zip name is
[One (M9) General] tango280581:
Like this
[One (M9) General] jollywhitefoot:
Use htc_fastboot.exe. It's able to handle larger files than regular fastboot. It's not hard to find...just search the forum or google search.
[One (M9) General] tango280581:
Thanks ill give it a whirl
[One (M9) General] jollywhitefoot:
http://xdaforums.com/showpost.php?p=60657724&postcount=7
[One (M9) General] Marcel_16V:
Any information about 1.40.709.8 or 1.40.709.4?

I can't find RUU for these.
[One (M9) General] tango280581:
Still no joy, im afraid. Here's exactly what im doing.

I restore the 132.401.15 back up provided in the first post.

At first it says can't restore system . System read only.

So I go into twrp and check then uncheck the box that says system read only in mounts.

I then restore. It restores boot and system. I then flash stock recovery using fastboot. After doing that I reboot and download the software update it prompts me to install and then stops saying error status 7 system is rewrite. As in the pic I posted a couple of pages back. I don't have sd card so I can't do the 0pjaimg thing and having tried to download the HTC fastboot my laptop won't install it quoting something about adbwindll or something is missing lol
[One (M9) General] Nima78600:
Have you read question 8 of this thread? That's the instructions of getting back to stock

http://xdaforums.com/showpost.php?p=59745198&postcount=3
[One (M9) General] tango280581:
Thanks and I run that in terminal emulator yea?
[One (M9) General] Nima78600:
Actually I didn't test it yet and I don't know what is in your back up folder.

Just follow the instructions.

Check the box as read-only,

If you have the system.emmc.win file, rename it to... and put it in your backup folder,

Restore it and flash the stock recovery.
[One (M9) General] tango280581:
This is what's in the back up file, what do I rename the system win file as?
[One (M9) General] Nima78600:
According to that link you should rename it to system_image.emmc.win, then twrp can identify it as system image.
[One (M9) General] tango280581:
This is what occurs and if I untick the read only box when I flash stock recovery and then try to update I get the "system is rw" message
[One (M9) General] Nima78600:
If you check the box as read-only and rename the system file, it shouldn't be a problem. But as I mentioned already I can't confirm anything because I don't try it.

---------- Post added at 12:52 AM ---------- Previous post was at 12:38 AM ----------

I would also suggest you another way to try. Iam not sure if it works, but you can try it.

Do you have twrp beta 2.8.6.4 version?
[One (M9) General] tango280581:
I just renamed it to what u said, ticked the box and it flashed. Fingers crossed it'll work this time. Just waiting for ota to download. Ill let u know when its done mate.
[One (M9) General] Nima78600:
Ok good. I hope you become successful
[One (M9) General] tango280581:
It worked!!!!!! Thank-you massively. Matey, you're a star.
[One (M9) General] Nima78600:
My pleasure mate. Glad to see you succeed. Good luck
[One (M9) General] dlads:
Not to worry fella, i'm going to wait until the end of the month and begrudgingly pay out for sunshine. :(
[One (M9) General] Johnnqtvo:
Hi, does anyone have stock recovery for .841? I have been looking around for days and can't find it. Really need it to upgrade to the new firmware.

Thanks
[One (M9) General] exocetdj:
If it's not in the fourth post it hasn't been uploaded by anyone unfortunately. May be worth also asking in q&a
[One (M9) General] Jwtiyar:
i needed to apply ota to my 401.15 but when i wanted to flash Stock recovery in fastboot it will get faild and show this error iam s-on :

cannot flash this partition in s-on state

what to do?
[One (M9) General] exocetdj:
That's odd, not seen that with regards to flashing stock recovery.img. if you have root, flashify may work.
[One (M9) General] Nima78600:
That's because you flashed it in fastboot while you have to flash in download mode.
[One (M9) General] Jwtiyar:
no iam stock now (i think) after flashing 1.32.401.15 by Sdcard method and i cant apply ota in recovery also i just wanted try your files now but it seems not flashing stock recovery , what i have to do? why its not flashing?

---------- Post added at 05:24 PM ---------- Previous post was at 05:21 PM ----------

genius :)
[One (M9) General] exocetdj:
I'm not sure why the stock recovery isn't installing that's odd, flashify may work if you re-root.

With s-on applying ota manually is possible but the zip needs to be signed
[One (M9) General] Jwtiyar:
now i flashed it but can i apply this OTA from you first post ? 1.32.401.15 -> 1.40.401.8

iam stock ,s-on ,unlocked , cidnum is j15 .
[One (M9) General] exocetdj:
Yes you should be able to
[One (M9) General] Jwtiyar:
just putting .zip ota to sdcard and apply update?

should renamed what? and in which folder?
[One (M9) General] exocetdj:
On the root of external SD card and selecting relevant option in the stock recovery menu (which seems to pop up as soon as stock recovery is booted now)
[One (M9) General] Jwtiyar:
thank you i putted it in SDcard now when i apply update from Sdcard it shows error say that E:failed to map file
[One (M9) General] exocetdj:
That could mean the ota isn't signed. U may need to s off to get it To flash if that is the case but it costs $25,saves a ton of hassle though

Can anyone else weigh in on this? I'm no expert unfortunately. Just a resource compiler lol
[One (M9) General] Nima78600:
I was pretty sure that you can't apply this OTA, as I already explained you. That's because this OTA isn't matched with your CID.

In your situation I suggest first try 1.32.401.15>1.32.401.17 OTA and if it was successful then you should be able to receive 1.40.401.8 automatically by your device.

Also I'm curious, if you're completely stock and you flashed the correct rom for your device why you're not able to receive OTA automatically?
[One (M9) General] Jwtiyar:
i did apply ota from ADb sideload , now its processing ...

---------- Post added at 06:07 PM ---------- Previous post was at 06:06 PM ----------

i receive it but can not be installed in Recovery .
[One (M9) General] Nima78600:
My friend the OTA hasn't problem. As I explained him already because of the different regions, htc has different OTA.
[One (M9) General] exocetdj:
Pretty sure J15 is OK for 401 builds
[One (M9) General] exocetdj:
Also from my previous thread on m8
[One (M9) General] Nima78600:
As my experience J15 had from .15.17 OTA already and then from .17 to the new one.
[One (M9) General] exocetdj:
Got ya
[One (M9) General] Nima78600:
This time m9 is a little be different with other previous htc phones. This includes OTAs as well

That's why some regions like J15 got .17 OTA with 401 builds while others not.
[One (M9) General] exocetdj:
I have seen this on m8 also. Some regions of Europe had an update then a smaller update to get to a certain base whilst others like UK who usually get the ota last, skipped straight to said base probably part of the bug eradication process lol
[One (M9) General] Nima78600:
Exactly the same situation. I didn't have m8 but it seems there is a same scenario.

With m7 I'd never seen this situation.
[One (M9) General] Jwtiyar:
thank you great people now i successfully installed 1.40 :)
[One (M9) General] Nima78600:
Glad to see you succeed finally. But which OTA did you use?
[One (M9) General] Jwtiyar:
thank you , i applied this one:

https://drive.google.com/file/d/0B3eKBOCvt3tETDU0UGVvenE4ZTA/view?usp=sharing

401.15 to 1.40 :)

2.7 not available yet to install it ?
[One (M9) General] Nima78600:
Just custom rom at the moment.
[One (M9) General] Jwtiyar:
thank , 2.7 custom ROM works ok with 1.40 firmware?
[One (M9) General] exocetdj:
Only in the form of a custom rom, maximus. There is now a system dump available but I think it's mainly for devs to make roms, I'm not sure it's fkashable in its current format , ta for the link
[One (M9) General] Nima78600:
Not sure because they recommend to flash firmware as well.
[One (M9) General] exocetdj:
Age old rule of thumb is that matching rom/firmware is best. It may work if not but always best to have it matching.
[One (M9) General] Nima78600:
Yes I agree.
[One (M9) General] Jwtiyar:
thank you guyss .
[One (M9) General] exocetdj:
Not at all Buddy, glad u sorted it :good:
[One (M9) General] Jwtiyar:
really appreciated your hard help :)
[One (M9) General] exocetdj:
I do my best mate, I'm still learning m9 stuff which is a little different but if I can't help, there's plenty of people here who can ;)

M9 forum kicks ass, i like it here compared to m8 forum :D