yashsingh1/xdaforums huggingface dataset:
[One (M9) General] Duncan1982:
Its all in the learning and remembering & also a bit of help from XDA friends :P

I was stupidly typing in fastboot flash (name of file)

Instead of fastboot flash zip (name of file)

I'm relatively new to HTC all previous have been Samsung's and that's done through Odin.

But its great to learn, thanks again my friend :)
[One (M9) General] danlat1415:
Hi all,

I'm on 1.32.401.17 s-off, unlocked bootloader and rooted.

I'm trying to go back to 1.32.401.8 and flash all the OTA updates (so I can get 'official' status back on bootloader screen)

I've downloaded the 1.32.401.8 RUU and I'm using the latest HTC_fastboot program (as fastboot doesn't Work with files over 2gb) I also flashed stock recovery back on.

The flashing process seems to be split over a number of smaller zip files and it flashes each one in turn.

When it gets to about the 5th or 6th one, it says error 22 and stops flashing.

I reboot the phone and its stuck in boot loop.

Do you need to uproot before flashing a RUU?

Anyone else have this?

I'm able to recover by flashing teepee recovery and flashing a custom rom.

Also, has anyone noticed that you don't actually need to go into flastboot oem rebootRUU mode as the HTC Download mode is the same, and even works better and faster.
[One (M9) General] jauhien:
Why not just that:

http://xdaforums.com/showthread.php?p=60114607
[One (M9) General] danlat1415:
Thanks but I don't have a small enough SD card that would format to fat32.

Even if I did that method, it is likely to do the same error.
[One (M9) General] djluisbento:
i'm work on it!!!!!
[One (M9) General] clever_man:
Can't install Europe: 1.32.401.8

Now has ViperOne 1.2, s-off, firmware 1.32.401.17

Trying flash via fstboot. HBOOT 1.32.401.8 flashed OK.

d:\browserdl\M9>fastboot flash zip 0PJAIMG.zip
target reported max download size of 800000000 bytes
Invalid sparse file format at header magi
sending sparse 'zip' (72616 KB)...
OKAY [ 4.317s]
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) Update zip file OK
(bootloader) ERR ZIP ERROR CODE, 22
(bootloader) end@Done
FAILED (remote: 22: fail to flash via downloadzip)
finished. total time: 6.416s
[One (M9) General] Nima78600:
Put 0PJAIMG.ZIP to your ext sd card and boot your phone into bootloader mode
[One (M9) General] clever_man:
In download mode not flash this file - writing SD NOT MOUNTED, but SD work fine. In bootloader not try to flash.
[One (M9) General] Nima78600:
Format your ext SD card with Fat32. Place the file into it and try again.

I flashed several times with this method and never had problem.
[One (M9) General] MPooZD:
Does the last update 1.32.401.17 fix heating issue ?!

I'm on 1.32.401.15 and and the temperature between 38c-44c -sometimes up to 46c- while screen on for 10-15min, just using Twitter , wahtsapp , bbm , instagram and some other apps. I don't have any games and also i don't watch youtube. brightness is 0 and power save is on !

Stock Rom , S-on
[One (M9) General] danlat1415:
Error code 22 is a corrupt zip image error.

I had this too - it would flash about 90% through fine, then fail on the last part.

I re-downloaded from the androidruu.com website;

http://www.androidruu.com/getdownload.php?file=M9/0PJAIMG_HIMA_UHL_L50_SENSE70_HTC_Europe_1.32.401.8_Radio_01.01_U11440261_56.02.50306G_2_F_release_425571_signed.zip

this one works perfect
[One (M9) General] arcs_porwal:
Can we downgrade?

I'm on an asiain firmware (1.32.709.14) Can I downgrade with the help of the Asian RUU given (return to Stock) while having S-ON
[One (M9) General] Nima78600:
I don't think you can downgrade firmware while you're s-on.
[One (M9) General] markwebb:
Does this include the camera fix?
[One (M9) General] clsA:
no 617.30 does

https://www.androidfilehost.com/?fid=95916177934551186
[One (M9) General] arcs_porwal:
1.32.709.14 ruu

I need to get back to stock I've the HTC ONE M9u Variant (Taiwan-Asia)... I'm S-ON and currently on insertcoin ROM.

I need the 1.32.709.14 RUU or Nandroid backup to get back to stock..

Also, would be there any s-off method apart from Sunshine in near future? (Free), If so; after S-Off can i switch to complete stock EU Variant by changing MID And CID Receiving OTAs?

ThankYou
[One (M9) General] Nima78600:
With s-off you can change your MID and CID, then you can convert to any varient you want.

In your case if you want to go back to stock, you can download your compatible version from AndroidRUU.com and the flash via fastboot or Sd Card method.

Note: If you want to see official flag in bootloader you should use sdcard method.

---------- Post added at 01:49 PM ---------- Previous post was at 01:41 PM ----------

You van use 1.32.709.6 from AndroidRUU.com and then you may get 1.32.709.14 OTA update.
[One (M9) General] arcs_porwal:
No OTA

I did installed 1.32.709.6 via sd card method successfully

... then too I'm not getting the OTA it says ... Your device is up to date my cid is HTC__621
[One (M9) General] akhil8377:
New Firmeware upgrade 1.36.709.3 _TW

Getting new update from 1.32.709.14 to 1.36.709.3. Taiwan build (302 MB)
[One (M9) General] Nima78600:
When did you get it? What's new in this update?
[One (M9) General] akhil8377:
It only mentions system enhancements, however its of 302 MB size. It was rolled out today morning. Taiwan did not get any 90 MB update rolled out to Europe earlier.
[One (M9) General] Nima78600:
Thanks mate. Is it the second or third update in Taiwan since release the phone?
[One (M9) General] akhil8377:
I am not sure, this is first for me as I got mine with base version 1.32.709.14 on April 10th, however it seems it might be 3rd update since release
[One (M9) General] aos10:
help , the headphone tip brook inside the socket

how to remove it ?
[One (M9) General] p50kombi:
What the heck does this have to do with RUU's, OTA's, Stock TWRP Backups or firmware?

If I would you I would post this in the Q&A thread, this post has not place in this thread, sorry..

ps...tweezers perhaps?
[One (M9) General] aos10:
sorry , i was in a panic and didn't know what i a doing
[One (M9) General] Joloxx9:
Guys, I have Europe International version, my firmware is 1.32.401.15 and my rom is ARHD which is .17, how can I update my firmware to .17 when Im s on? Do I have to return to stock and grab all otas?
[One (M9) General] Nima78600:
I think while you're s-on, you can upgrade(not downgrade) your compatible firmware, without going back to stock.
[One (M9) General] Joloxx9:
Ok but how? Cant find anything about it when Im s on...
[One (M9) General] Nima78600:
If you need 1.32.401.17 stock firmware and you can't find it, there is an easy way to get it.

Download 1.32.401.17 >1.32.401.15 OTA file and then extract it. Then you can get the firmware inside the extracted OTA file.
[One (M9) General] Joloxx9:
Ok I have downloaded that ota file, and now what, I can take files from it, but what to do with them? Really this phone is making me angry, overheating, bad battery, bad camera and now problems to do simple system update :-/
[One (M9) General] Nima78600:
After you extract it you see some file inside that including "firmware", just take the firmware and put it in your fastboot folder and follow the instructions(how to flash firmware) to flash it.
[One (M9) General] Joloxx9:
Will it work when Im s on with custom rom?
[One (M9) General] Nima78600:
As I remember I did it before and it worked for me. If you would like you can try.
[One (M9) General] Joloxx9:
Ok but is IT normal that i can't open formware zip? I too it from ota and firmware.zip is 35.5MB
[One (M9) General] Nima78600:
Yes that's normal and it's size is correct.
[One (M9) General] Joloxx9:
Ok so now use fast boot rebootruu and fast boot flash right?
[One (M9) General] Nima78600:
1)fastboot oem rebootRUU

2)fastboot flash zip firmware.zip

First time it doesn't complete flash, So after you see failed message, you should type this command again.

Wait to finish the flash and you done!!!
[One (M9) General] p50kombi:
I am not being funny here, but you are causing most of those problems by not having a base and firmware that match.

If you'd stuck to stock, you would have been upgraded through the normal OTA process and you would not have these issues.

YOU have decided to run a custom rom, and now you're complaining it's difficult to update?

If you just go for S-Off, it will be much easier for you to update firmwares.

In the meantime I suggest you just search on how to update firmware and read a bit more before venturing into custom ROMS and then complaining and getting angry about the upgrade process...

for goodness sake, a simple search would have given this result:

http://xdaforums.com/one-m9/general/firmware-t3068243
[One (M9) General] senbros:
Request RUU

hi

I have this htc m9 with unlocked bootloader

bootloader) version-main: 1.32.401.17

(bootloader) boot-mode: download

(bootloader) version-bootloader: 1.0.0.0000

(bootloader) mid: 0PJA10000

(bootloader) cid: HTC__J15

all:

finished. total time: 0.004s

Can someone suggest from which region is it from and link for ruu..

thank you
[One (M9) General] Nima78600:
Cid list:

http://www.gsmlover.com/htc-of-android-os/182358-htc-model-cid-list.html

You can find ruu.zip for some different regions from

http://androidruu.com/?developer=M9
[One (M9) General] DarkAlpha:
Hi all,

i have M9 HTC__102 CID.

For those who have same CID, can u tell me what is your ROM number ?

I m waiting for OTA including photo improuvement.

TK :)
[One (M9) General] Sashtheflash:
So what am I doing wrong? my device is S-off and definately has mor space than 2GB. Im on Vodafone Software and wanted to flash the Europe unbranded Version.

C:\adb>fastboot flash zip ruu.zip

load_file: could not allocate -2105661919 bytes

error: cannot load 'ruu.zip'
[One (M9) General] Nima78600:
Use Ext Sd Card method.
[One (M9) General] Sashtheflash:
I tried but it doesnt read the file not in normal bootloader nor in download mode
[One (M9) General] Nima78600:
How did you do for this method? Did you follow the instructions correctly?
[One (M9) General] Sashtheflash:
I renamed file to

0PJAIMG.zip

and put it in my SD card root. then rebooted to bootloader

bot didnt do anything then
[One (M9) General] Nima78600:
What's the size of your sd card?
[One (M9) General] Sashtheflash:
64GB
[One (M9) General] Nima78600:
Did you prees volume up while you were in download mode?

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

You should use 32 or less
[One (M9) General] Sashtheflash:
no? in download mode it says No SD mounted
[One (M9) General] Nima78600:
Try with 32 GB, and when you boot in download mode you see a message at the bottom that want you to press volume up to flash.
[One (M9) General] Sashtheflash:
Ok Thanks I will try when i get my hands on a smaller sd
[One (M9) General] arcs_porwal:
Okay Guys heres the Situation

I'm on 1.32.709.6 downgraded from 1.32.709.14 from RUU via sd card method(and I'm not getting any OTA to get back to 1.32.709.14):rolleyes:

And now the situation is there is an OTA for the 1.32.709.14 to 1.36.709.3 probably with the camera update...

I've managed to get the TWRP Backup of 1.36.709.3 and the OTA zip for 1.32.709.14 to upgrade to 1.36.709.3.

Now; Would it be wise to do so:-

1. Restore the TWRP backup of 1.36.709.3 downloaded from some Chinese Forum.

2. Extract the firmware.zip from the official OTA zip and flashing it via the fastboot.

Would this make my device officially on 1.36.709.3 ? with Official software and proper firmware? will it be able to receive further OTAs and install it?

Or it would brick my device?

***Notes to be Taken***

Order of the softwares

1.32.709.6 ---> 1.32.709.14 ---> 1.36.709.3

***Current Status***

1.32.709.6 Stock Rooted probably with 1.32.709.14 firmware

TWRP 2.8.6.4

S-ON and Unlocked Bootloader with HTCDev:(

**Device History

I was orignally on 1.32.709.14 out of the box but i ****ed up and had to flash the official 1.32.709.6 ruu via sdcard method on my phone and now there is no ota to 1.32.709.14 and i think that firmware wont have downgraded to 1.32.709.6 as I'm S-ON

NEED HELP DESPERATELY !!!!:crying::(:crying:
[One (M9) General] Nima78600:
I think I it depends on the twrp back up that you found. If it has unmodified system image, chances are to flash it via fastboot and then flash new firmware.
[One (M9) General] arcs_porwal:
So you are saying to flash the system image from the backup

and then flash the firmware?

first

fastboot flash system system.img

and then fastboot flash firmware firmware.zip

I suppose I have the stock backup... wouldnt it be safer to restore the whole backup and then flassh the firmware?
[One (M9) General] Nima78600:
I couldn't find the link that explains about this case, but as I remember if the back up is included "system.emmc.win" then it means this is unmodified system and you can flash it.

If you see this kind of system back up then you can first flash this and after that you can flash firmware to get bach to stock.

But I am not responsible for any damage as I didn't try this method yet.

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

You can read this. Go down to the post #3 ( frequently asked questions) and rrad the question number 9.

http://xdaforums.com/one-m9/orig-development/recovery-twrp-touch-recovery-t3066720
[One (M9) General] Asselalf:
I'll upload the .17 RUU to [MENTION=2645378]AndroidFileHost[/MENTION]. Link follow later...
[One (M9) General] djluisbento:
Im gonna upload too.

RUU_HIMA_UHL_L50_SENSE70_HTC_Europe_1.32.401.17_Radio_01.01_U11440261_56.02.50306G_release_429340_signed.exe
[One (M9) General] Asselalf:
Ruu 1.32.401.17

Here is the link for the RUU.exe

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

RUU.exe for Vodafone UK follow later

EDIT: Here is the RUU for Vodafone UK

https://www.androidfilehost.com/?fid=23991606952595178
[One (M9) General] arcs_porwal:
1.32.709.14 RUU anyone?

1.32.709.14 RUU anyone? Cant find it?
[One (M9) General] Asselalf:
Sorry...

1.32.709.6 is the last that is available
[One (M9) General] senbros:
THANK YOU
[One (M9) General] devatxda:
can we extract the full firmware from the .17 exe?
[One (M9) General] Jonny:
Yes.
[One (M9) General] devatxda:
How?
[One (M9) General] Nima78600:
http://xdaforums.com/showthread.php?t=2534428
[One (M9) General] jureca:
RUU.exe intalaccion fails, rom.zip had to extract and install from SD!

Enviado desde mi HTC One M9
[One (M9) General] Jonny:
Oh you want specifics? Probably would have been a good thing to mention that before... :p
[One (M9) General] devatxda:
Anyone else?
[One (M9) General] arcs_porwal:
Why dosent it get the 1.32.709.14 OTA?
[One (M9) General] djluisbento:
I try it and installs just fine......
[One (M9) General] Asselalf:
The RUUs that we have are all leaked. So you have to wait or go S-Off
[One (M9) General] jureca:
From SD?, Cid has? Thanks

Enviado desde mi HTC One M9
[One (M9) General] kakanjac:
RUU 401.17 wiln't start?
[One (M9) General] arcs_porwal:
I've the system.emmc.win in the twrp backup but the file is 4gb plus

I'm not able to flash it via fastboot nor copy it to my phone

How do I flash it?
[One (M9) General] djluisbento:
No i install it from the PC.

HTC__031

HTC__001
[One (M9) General] jureca:
I probe SuperCID and J15 and mean error, proves these Cid thanks!

Enviado desde mi HTC One M9
[One (M9) General] Sneakyghost:
The new 1.32.401.17 RUU.exe is new - its not the 2014 version anymore that was delivered with the previous US Carrier RUU's.

It now includes a "romtool.exe" and probably a few other new things. The version is: 3.0.1.2015.

Probably worth looking into. Have fun.

http://androidruu.com/getdownload.p...6.02.50306G_2_F_release_429340_signed_2_4.exe
[One (M9) General] aos10:
exe ?

so , all i have to do it execute the file in my computer ?

i am new to this , and its really pain to open the cmd ad do push command and other stuff
[One (M9) General] jureca:
[MENTION=1102297]Sneakyghost[/MENTION] When installing I get error 155 RUU.exe :(
[One (M9) General] Nima78600:
The size of system is correct.

Which command did you use to flash it?

Have you read this? I already sent it to you, just scroll down to post #3(Frequently asked questions) and read question 9.

http://xdaforums.com/one-m9/orig-development/recovery-twrp-touch-recovery-t3066720
[One (M9) General] toilatoi1504:
Looking for RUU Asia WWE with Cid HTC__059, thanks.
[One (M9) General] arcs_porwal:
Rebooted in download mode

Used fastboot flash system system.emmc.win
[One (M9) General] Nima78600:
Was it successful?
[One (M9) General] arcs_porwal:
No it wasnt i got this error

E:\Minimal ADB and Fastboot>fastboot flash system system.emmc.win

target reported max download size of 800000000 bytes

Invalid sparse file format at header magi
[One (M9) General] Nima78600:
You have another option as well to restore this through twrp recovery. Flash again the latest twrp recovery (2.8.6.4), put the back up in your phone and just restore the back up. If it was successful then flash your firmware.
[One (M9) General] arcs_porwal:
It is not copying to my device it says the file is too big for the storage...

I think there is a limit how large a single file can be while copying

Total backup folder is 8gb~ and the system.emmc.win itself is 4.37 gb
[One (M9) General] Nima78600:
I didn't have such this problem, for me there was another problem when I wanted to copy ruu.zipp, so firstly I copied the file from pc to usb and then I transferred it to my phone using OTG cable. If you would like you can try this method and just copy system images and it may works for you.
[One (M9) General] arcs_porwal:
Tried already

Its says the file "system.emmc.win" is too large for the destination file system while copying to my flash drive

I can copy it by changing my flash drive partition to NTFS but I'm not sure my phone would detect it in the recovery
[One (M9) General] Nima78600:
I think as long as you have enough space on usb shouldn't be any problem. But as you said you can try by changing the format.

Anyway, this is the only way you can get back to stock in your case. Otherwise you have to wait for newer ruu or have s-off.
[One (M9) General] arcs_porwal:
I'm having the same issue copying it to my phone and i have more than 16 gigs on both of them
[One (M9) General] Nima78600:
Did you try to put on SdCard?

---------- Post added at 12:59 PM ---------- Previous post was at 12:56 PM ----------

I already transferred my back up on my usb and phone without any issues.

But I'll try later and if I found the problem I'll let you know.
[One (M9) General] doraev1977:
Hello. Prompt please. I have a problem. The smartphone was originally from Asia, CID: HTC__621, I redid it in Europeans (made s-off, was replaced by CID and flashed RUU - 1.32.401.15). I was out of the box from the free memory 20,5Gb 32Gb, and 18Gb is now available memory of 32Gb. Tell me what happened to more 2,5Gb?
[One (M9) General] Nima78600:
Probably the apps that you installed on your phone.

---------- Post added at 05:13 PM ---------- Previous post was at 05:00 PM ----------

As I tried there is no possible to transfer a single file more than 4GB to usb or SdCard due to Fat32 format.

But I can transfer these big files to phone's internal storage without any issues.
[One (M9) General] sausje85:
AFAIK, making s-off leaves behind a dump file(s) that should be around the same size.

Take a look around, i'm sure you can remove it (i didn't s-off myself so i can't help you there).
[One (M9) General] aos10:
hi

by using the .exe file , i can update my rooted m9 ?

or i have to unroot ?
[One (M9) General] senbros:
Yes you can

Yes u can update whether you rooted or not.. but you have to correct ruu as per your cid...this will wipe your data..make sure you backup your data first
[One (M9) General] aos10:
thanks

i have Europe update , that exe was for europe ?
[One (M9) General] kakanjac:
Pls, why I cannot load Ruu?
[One (M9) General] djluisbento:
All Working CID's

Europe: 1.32.401.17

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

https://drive.google.com/file/d/0B17smFr95pleT3hVbEpZWHRoR1E/view?usp=sharing
[One (M9) General] artur0588:
yes, possible with adb pull
[One (M9) General] :
Just tried Orange PL 1.32.69.6 and same thing. App folder is there but no priv-app.
[One (M9) General] MSIOCGenie:
New OTA released today according to Llabtoofer.
[One (M9) General] nkk71:
did you use simg2img ? ... I may be wrong, but have a feeling that it's not converting it properly, because when I use it, I also have a lot of empty folders, but when I use a hex editor to "read" the system.img a lot of files are there, that dont show when mounted after simg2img
[One (M9) General] :
[MENTION=2605798]nkk71[/MENTION] Yeah, I did. I thought that too.

---------- Post added at 02:25 PM ---------- Previous post was at 02:10 PM ----------

I think I have found the issue. Just trying now.
[One (M9) General] crucky:
fastboot flash zip 0PJAIMG.ZIP

target reported max download size of 800000000 bytes

Invalid sparse file format at header magi

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

OKAY [ 5.867s]

writing 'zip'...

(bootloader) HOSD CL#493992

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

whats wrong ? need to flash via SDCARD ? please help me :D
[One (M9) General] :
Which file did you try to flash?
[One (M9) General] crucky:
File: 0PJAIMG HTC Europe 1.32.401.8

cid HTC__002

Firmware installed 1.32.401.6

Download corrupt ? can anyone post md5 ?
[One (M9) General] djluisbento:
Vodafone uk

https://drive.google.com/file/d/0B17...ew?usp=sharing
[One (M9) General] nkk71:
0PJAIMG_HIMA_UHL_L50_SENSE70_HTC_Europe_1.32.401.8_Radio_01.01_U11440261_56.02.50306G_2_F_release_425571_signed.zip

MD5 = F9A235D576A59407672D0D3BBAF26E48

---------- Post added at 17:53 ---------- Previous post was at 17:50 ----------

@Sneakyghost

I may have an idea why the RUUs arent encrypted only signed; looking at the new bootloader (now aboot no longer hboot), it doesn't even have the "Htc@egi$" identifier in there
[One (M9) General] :
My findings so far.

1. There is an issue with simg2img - converting system.img_00 and concatenated system.img yields the same results.

2. I tried using simg2img on every system.img_0* and manually concatenating - raw image didn't mount (could be human error as I had to manually look for empty space)

3. When converting to raw seperately, every system.img_0* is the same size (~4.7GB)

4. Every system.img_0* has the same header:

3A FF 26 ED 01 00 00 00 1C 00 0C 00 00 10 00 00 00 80 11 00

5. Removing header from 01-04, concatenating and converting to raw doesn't work. Raw file still only showing content from system.img_00