Need help getting back to stock - One (M9) Q&A, Help & Troubleshooting

Hi everyone,
A few months ago I switched to Lineage 14 on my M9 (himaul, cid 102, s-on). I followed the instructions here.
Since the M9 will no longer get any updates, and I'm experiencing random reboots and crashes, I want to go back to stock (rom+recovery). I read a few threads here but I'm still confused. Is there a step by step guide that explains how to do it?
Thanks in advance

annascott said:
Hi everyone,
A few months ago I switched to Lineage 14 on my M9 (himaul, cid 102, s-on). I followed the instructions here.
Since the M9 will no longer get any updates, and I'm experiencing random reboots and crashes, I want to go back to stock (rom+recovery). I read a few threads here but I'm still confused. Is there a step by step guide that explains how to do it?
Thanks in advance
Click to expand...
Click to collapse
Do "fastboot getvar all" in download and post result here(remove your imei/sn).

(bootloader) kernel: lk
(bootloader) product: htc_himauhl
(bootloader) version: 1.0
(bootloader) current-slot:
(bootloader) version-main: 4.28.401.3
(bootloader) boot-mode: download
(bootloader) version-baseband: 01.01_U114401011_117.00.61117G_2_F
(bootloader) version-bootloader: 1.0.0.0000
(bootloader) mid: 0PJA10000
(bootloader) cid: HTC__102
all:
finished. total time: 0.008s

This is the ruu: https://androidfilehost.com/?fid=961840155545567615
First make sure you saved all of your data because this procedure will wipe all of your data and your internal storage.
Boot in download
"fastboot flash zip ruu.zip" - do the command again when requested.
Note: Make sure to replace ruu.zip with your file.
"fastboot reboot"

And that's it? Everything will go back to how it was out of the box?

annascott said:
And that's it? Everything will go back to how it was out of the box?
Click to expand...
Click to collapse
Yes. except the unlocked bootloader and s-off if you have, but the rom will be completely stock.

Is there a point to re-lock the bootloader? (if it's even possible)

annascott said:
Is there a point to re-lock the bootloader? (if it's even possible)
Click to expand...
Click to collapse
It's possible but isn't needed. And if you want to unlock it again will wipe your data.
"fastboot oem lock"

tyvm!!! I'll try it later on.

Just to highlight that if you have an unlocked bootloader do not relock or lock it. If you have s-off there is no need at all to s-on.
Flashing back to stock doesn't wipe data but any updates from there on will.
Make sure you delete all your crap apps as it'll take an age for your phone to boot after the flash from optimisation of said crap apps.
Instead of fastboot method just rename the firmware zip to 0PJA10000.zip, copy to external sd card and boot to download mode. Press vol up to flash. Wait 10 mins and you're back to stock.

Tried flashing with fastboot, getting the error "target reported max download size of 800000000 bytes Invalid sparse file format at header magi".
What do I do?

annascott said:
Tried flashing with fastboot, getting the error "target reported max download size of 800000000 bytes Invalid sparse file format at header magi".
What do I do?
Click to expand...
Click to collapse
Make sure you have htc_fastboot.exe, not generic fastboot.exe
If this doesn't work, try the sdcard method.
Sent from my HTC One M9 using Tapatalk

Now I'm getting "FAIL9 RU_SECURITY_FAIL zip from usb command in download mode FAILED (remote: 9 RU_SECURITY_FAIL zip from usb command in download mode) Execution time is 9(s)".
SD method didn't work for me, but I may have done it wrong...
Is there a mirror for this file? Download had taken a few hourse for some reason (tried a few times). May the file is corrupt.

annascott said:
Now I'm getting "FAIL9 RU_SECURITY_FAIL zip from usb command in download mode FAILED (remote: 9 RU_SECURITY_FAIL zip from usb command in download mode) Execution time is 9(s)".
SD method didn't work for me, but I may have done it wrong...
Click to expand...
Click to collapse
You need to rename the file to 0PJA100.zip and put in the root of your external sdcard, boot in download and follow onscreen instructions.
Sent from my HTC One M9 using Tapatalk

You mean the external_sd folder?

annascott said:
You mean the external_sd folder?
Click to expand...
Click to collapse
Yes.. this folder it's actually your physical sdcard inserted in the right side slot...
Sent from my HTC One M9 using Tapatalk

I don't have an sd card
Is there another way?

annascott said:
I don't have an sd card
Is there another way?
Click to expand...
Click to collapse
No, these 2 are the only methods.
Actually does exists another method, the ruu.exe, but I don't think you'll find an exe ruu with latest version(4.28.401.3)
Make sure your downloaded ruu isn't corrupted(checksum) and place it in your adb folder.
Make sure you have htc_fastboot.exe in the same adb folder and do the commands with "htc_fastboot" instead of "fastboot"
If you still have error, try to flash from RUU mode(htc_fastboot oem rebootRUU).
Sent from my HTC One M9 using Tapatalk

htc_fastboot oem rebootRUU then file path?

annascott said:
htc_fastboot oem rebootRUU then file path?
Click to expand...
Click to collapse
"htc_fastboot oem rebootRUU" it's the entire command, this will boot your phone in ruu mode.
Then: "htc_fastboot flash zip path_to_ruu.zip" - do the command again when request.
After finishing do "fastboot reboot"
Hope you understand now, I think you never used fastboot...
Sent from my HTC One M9 using Tapatalk

Related

[Q] [Solved] unrooting?

I've read around on the forums here and other places but some of it doesn't make any sense to me and I watched a YouTube video about unlocking the bootloader then rooting the phone unfortunately i didn't do a nandroid back up before rooting (using supersu) and i am wondering if it is possible to flash to a stock rom so that in the future i can ota update in the future.
here is what i have at the moment
international phone (im on o2 in the uk anyway)
android version: 5.0.2
Software number: 1.32.401.15
unlocked bootloader
rooted
s-off
SuperCID
Also if someone can guide me through this i would be extremely thankful.
Thanks for your help guys.
You would need to either get a nandroid of your particular carriers ROM, or download the correct RUU from HTC.
BillTheCat said:
You would need to either get a nandroid of your particular carriers ROM, or download the correct RUU from HTC.
Click to expand...
Click to collapse
as far as i know there are these 2 RUUs which are the same version as mine
androidruu.com/getdownload.php?file=M9/0PJAIMG_HIMA_UHL_L50_SENSE70_HTC_Europe_1.32.401.15_R1_Radio_01.01_U11440261_56.02.50306G_2_F_release_426891_signed.zip
androidfilehost.com/?fid=96039337900114679
are these fine to flash to my device?
linton85 said:
as far as i know there are these 2 RUUs which are the same version as mine
androidruu.com/getdownload.php?file=M9/0PJAIMG_HIMA_UHL_L50_SENSE70_HTC_Europe_1.32.401.15_R1_Radio_01.01_U11440261_56.02.50306G_2_F_release_426891_signed.zip
androidfilehost.com/?fid=96039337900114679
are these fine to flash to my device?
Click to expand...
Click to collapse
I have no idea, since you haven't told us what version your phone is. I think you ought to wait for feedback from someone else who can advise you better.
linton85 said:
as far as i know there are these 2 RUUs which are the same version as mine
androidruu.com/getdownload.php?file=M9/0PJAIMG_HIMA_UHL_L50_SENSE70_HTC_Europe_1.32.401.15_R1_Radio_01.01_U11440261_56.02.50306G_2_F_release_426891_signed.zip
androidfilehost.com/?fid=96039337900114679
are these fine to flash to my device?
Click to expand...
Click to collapse
Yes your s-off you can use those RUU
hmm i cant seem to use them, i go to flash it then i get this;
Code:
C:\Users\Jack\Desktop\HTC ROOT + UNLOCK\platform-tools>fastboot oem rebootRUU
...
OKAY [ 0.020s]
finished. total time: 0.021s
C:\Users\Jack\Desktop\HTC ROOT + UNLOCK\platform-tools>fastboot flash zip 0PJAIM
G.zip
target reported max download size of 800000000 bytes
Invalid sparse file format at header magi
sending sparse 'zip' (88044 KB)...
OKAY [ 6.331s]
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) [email protected]
FAILED (remote: 22: fail to flash via downloadzip)
finished. total time: 8.430s
any idea?
linton85 said:
hmm i cant seem to use them, i go to flash it then i get this;
Code:
C:\Users\Jack\Desktop\HTC ROOT + UNLOCK\platform-tools>fastboot oem rebootRUU
...
OKAY [ 0.020s]
finished. total time: 0.021s
C:\Users\Jack\Desktop\HTC ROOT + UNLOCK\platform-tools>fastboot flash zip 0PJAIM
G.zip
target reported max download size of 800000000 bytes
Invalid sparse file format at header magi
sending sparse 'zip' (88044 KB)...
OKAY [ 6.331s]
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) [email protected]
FAILED (remote: 22: fail to flash via downloadzip)
finished. total time: 8.430s
any idea?
Click to expand...
Click to collapse
your using the wrong fastboot
you need htc_fastboot >> https://www.androidfilehost.com/?fid=96039337900114016
it's also easy to rename the RUU.zip to 0PJAIMG.ZIP, place it on a ext sd card formatted in FAT32 (a 16 or 32gig one should work), reboot into DOWNLOAD_MODE, agree and it should flash.
it's also easy to rename the RUU.zip to 0PJAIMG.ZIP, place it on a ext sd card formatted in FAT32 (a 16 or 32gig one should work), reboot into DOWNLOAD_MODE, agree and it should flash.
Click to expand...
Click to collapse
ok managed to flash it back successfully couple of things though:
i couldnt copy the file when it was named 0JAIMPG.ZIP to the sd card (was in the phone not sure if i had to take it out and put it on)
it still says "software status modified" "unlocked" "s-off" afaik you can't get software status back to normal, to get unlocked back to locked would mean me relocking the bootloader and s-off shouldnt matter with ota update?
if i was to now re-install twrp but before rooting i took a nandroid backup would this allow me to get ota updates if i then restore to that after rooting or would one of the things above prevent me?
if not is there anyway i can get ota updates again?
linton85 said:
ok managed to flash it back successfully couple of things though:
i couldnt copy the file when it was named 0JAIMPG.ZIP to the sd card (was in the phone not sure if i had to take it out and put it on)
it still says "software status modified" "unlocked" "s-off" afaik you can't get software status back to normal, to get unlocked back to locked would mean me relocking the bootloader and s-off shouldnt matter with ota update?
if i was to now re-install twrp but before rooting i took a nandroid backup would this allow me to get ota updates if i then restore to that after rooting or would one of the things above prevent me?
if not is there anyway i can get ota updates again?
Click to expand...
Click to collapse
If you used the htc_fastboot to flash it will not reset the modified tag
you have to do it yourself >> http://forum.xda-developers.com/one-m9/general/how-to-restore-software-status-original-t3092882
To set unlocked to locked you have to do this >> http://forum.xda-developers.com/one-m9/general/how-to-lock-unlock-bootloader-htcdevs-t3092036
and yes, you can get OTA update with unlocked and s-off
Thank you so much for taking the time to help me out and providing links I am very grateful
clsA said:
your using the wrong fastboot
you need htc_fastboot >> https://www.androidfilehost.com/?fid=96039337900114016
it's also easy to rename the RUU.zip to 0PJAIMG.ZIP, place it on a ext sd card formatted in FAT32 (a 16 or 32gig one should work), reboot into DOWNLOAD_MODE, agree and it should flash.
Click to expand...
Click to collapse
Do I rename this file to fastboot.exe and delete the original fastboot?
I seem to always get the 90 pre-update FAIL when I flash different firmware.
bigp951 said:
Do I rename this file to fastboot.exe and delete the original fastboot?
I seem to always get the 90 pre-update FAIL when I flash different firmware.
Click to expand...
Click to collapse
Just leave it as htc_fastboot. They can coexist.
Dude, what's it tell you after you get the error 90? Flash again immediately, right? EVERYONE gets error 90 when flashing firmware. It's a pre-check before actually doing anything. If you're phone reboots to OS after getting 90, then just leave your command/terminal window open and put your phone back in download mode and re-run the exact same command to start the flash again.
jollywhitefoot said:
Just leave it as htc_fastboot. They can coexist.
Dude, what's it tell you after you get the error 90? Flash again immediately, right? EVERYONE gets error 90 when flashing firmware. It's a pre-check before actually doing anything. If you're phone reboots to OS after getting 90, then just leave your command/terminal window open and put your phone back in download mode and re-run the exact same command to start the flash again.
Click to expand...
Click to collapse
That's what I have been doing.... Did not know EVERYONE gets that error. Thanks for the info though. From what I read elsewhere is that the htc_fastboot will reboot back into download mode instead of os. That's why I mentioned it.
bigp951 said:
That's what I have been doing.... Did not know EVERYONE gets that error. Thanks for the info though. From what I read elsewhere is that the htc_fastboot will reboot back into download mode instead of os. That's why I mentioned it.
Click to expand...
Click to collapse
No problem bro. I think I've gotten reboots to is using HTC_fastboot, too.
clsA said:
your using the wrong fastboot
you need htc_fastboot >> https://www.androidfilehost.com/?fid=96039337900114016
it's also easy to rename the RUU.zip to 0PJAIMG.ZIP, place it on a ext sd card formatted in FAT32 (a 16 or 32gig one should work), reboot into DOWNLOAD_MODE, agree and it should flash.
Click to expand...
Click to collapse
Sir After installing 5.1 update my phone got stuck at boot screen.
Now I am unable to boot into recovery. Also locked My bootloader accidentally. While trying to flash a zip through fastboot I am getting below error. Could you please help me out.
OTA_HIMA_UHL_L50_SENSE70_hTC_Asia_HK_1.40.708.9-1.32.708.15_R1_release_436199
amit_coolcampus said:
Sir After installing 5.1 update my phone got stuck at boot screen.
Now I am unable to boot into recovery. Also locked My bootloader accidentally. While trying to flash a zip through fastboot I am getting below error. Could you please help me out.
OTA_HIMA_UHL_L50_SENSE70_hTC_Asia_HK_1.40.708.9-1.32.708.15_R1_release_436199
Click to expand...
Click to collapse
I'm sorry to tell you but if you updated to 5.1 and did not go into developer options and check to allow bootloader unlock, and then locked your bootloader theirs is nothing you can do but flash a RUU. Are you s-off ? If no your most likely stuck.
I have no idea what the file name you posted above is for... Edit: This may be the help you need >> https://www.androidfilehost.com/?fid=24052804347810886
Sir I am S-On. I am trying to flash a RUU but getting error everytime. Tried from SD card. tried via fastboot.
Also my M9 is HTC Asia (Hongkong). So I have tried flashing below one. Can I try flashing TW version given by you??
https://www.androidfilehost.com/?fid=24269982087001508
clsA said:
I'm sorry to tell you but if you updated to 5.1 and did not go into developer options and check to allow bootloader unlock, and then locked your bootloader theirs is nothing you can do but flash a RUU. Are you s-off ? If no your most likely stuck.
I have no idea what the file name you posted above is for... Edit: This may be the help you need >> https://www.androidfilehost.com/?fid=24052804347810886
Click to expand...
Click to collapse
amit_coolcampus said:
Sir I am S-On. I am trying to flash a RUU but getting error everytime. Tried from SD card. tried via fastboot.
Also my M9 is HTC Asia (Hongkong). So I have tried flashing below one. Can I try flashing TW version given by you??
https://www.androidfilehost.com/?fid=24269982087001508
Click to expand...
Click to collapse
With S-ON it's not possible to downgrade or to flash RUUs that were made for other SKUs (Taiwan is 709 and Hongkong is 708). Since you can't use the RUU in my AFH folder because it's older than your actual firmware and there is no other RUU for the SKU 708 (or at least none I know) than that one you linked your only hope might be the RUU service on llabtoofer's website.
Edit @clsA: That file amit_coolcampus mentioned earlier is one of the OTAs for the Hongkong version of the M9.
Flippy498 said:
With S-ON it's not possible to downgrade or to flash RUUs that were made for other SKUs (Taiwan is 709 and Hongkong is 708). Since you can't use the RUU in my AFH folder because it's older than your actual firmware and there is no other RUU for the SKU 708 (or at least none I know) than that one you linked your only hope might be the RUU service on llabtoofer's website.
Edit @clsA: That file amit_coolcampus mentioned earlier is one of the OTAs for the Hongkong version of the M9.
Click to expand...
Click to collapse
Thanks Sir. Can I get this repaired if i visit HTC service center? Will they be having 2.11.708.30 RUU?
amit_coolcampus said:
Thanks Sir. Can I get this repaired if i visit HTC service center? Will they be having 2.11.708.30 RUU?
Click to expand...
Click to collapse
Honestly, I don't know. I've always been able to recover my phones without the help of the HTC service center or the RUU service. My guess is that the RUU service might be cheaper but that's only a guess. Maybe someone else here had to use one or both of these services and can share his/her experience...

HELP getting back to stock sprint rom

Im currently s-off, relocked, running viperonem8 2.5.0, and want to get back to stock sprint rom. cid-spcs_004, hboot 3.18.0.0000. I have the harman kardon edition one m8. ive downloaded the sprint one m8 h&k edition and also developer edition RUUs direct from htc, and when i change the ruu to 0P6BIMG.zip and drop it in my sd card, reboot the phone it says loading...[0P6BIMG.zip] for a while and then says wrong zipped image! when i enable usb debugging plug in usb and run the ruu exe i get error 155. i DO have current drivers installed for my phone. ive tried using adb and fastboot from command prompt using the instructions i found at droid views restore one m8 to stock rom guide and i get this:
C:\Program Files (x86)\Minimal ADB and Fastboot>adb reboot bootloader
adb server is out of date. killing...
* daemon started successfully *
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot oem rebootRUU
...
(bootloader) Start Verify: 0
OKAY [ 0.019s]
finished. total time: 0.021s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash zip firmware.zip
target reported max download size of 1830612992 bytes
sending 'zip' (1549156 KB)...
OKAY [ 58.261s]
writing 'zip'...
(bootloader) zip header checking...
(bootloader) shift signature_size for header checking...
FAILED (remote: 32 header error)
finished. total time: 58.549s
fastboot getvar all gives me this:
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot getvar all
(bootloader) version: 0.5
(bootloader) version-bootloader: 3.18.0.0000
(bootloader) version-baseband: 1.08.20.0612_4
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main: 2.16.654.4
(bootloader) version-misc: PVT SHIP S-OFF
(bootloader) serialno: FA459SF07192
(bootloader) imei: 990004991326509
(bootloader) imei2: Not Support
(bootloader) meid: 99000499132650
(bootloader) product: m8_whl
(bootloader) platform: hTCBmsm8974
(bootloader) modelid: 0P6B70000
(bootloader) cidnum: SPCS_004
(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: d4c3cae5
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
all: Done!
finished. total time: 0.085s
C:\Program Files (x86)\Minimal ADB and Fastboot>
please help!
let me know if you need any more info about my phone. after doing some more google searching i sazw somewhere someone say something about needing to flash another rom or ruu first since viperone uses different partitions or something, but they did not elaborate so i have no clue what to do....
jcedwards2009 said:
I have the harman kardon edition one m8. ive downloaded the sprint one m8 h&k edition and also developer edition RUUs direct from htc
Click to expand...
Click to collapse
Developers Edition is not intended for your version. It will fail due to wrong CID and MID. And do not attempt to change the CID and MID to flash this. If it works, it will screw up the phone, and possibly even lead to a radio brick! Only run Sprint RUU on Sprint version M8!
jcedwards2009 said:
i change the ruu to 0P6BIMG.zip
Click to expand...
Click to collapse
What exactly did you do here? You extracted ROM.zip from the RUU (or get it from your PC's temp directory after running the RUU .exe) and renamed it to 0P6BIMG.zip?
jcedwards2009 said:
when i enable usb debugging plug in usb and run the ruu exe i get error 155.
Click to expand...
Click to collapse
That usually means you need to flash the Sprint MM firmware, then the RUU. But it appears from your log, that you may have tried this (see next quote)?
jcedwards2009 said:
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash zip firmware.zip
target reported max download size of 1830612992 bytes
sending 'zip' (1549156 KB)...
OKAY [ 58.261s]
writing 'zip'...
(bootloader) zip header checking...
(bootloader) shift signature_size for header checking...
FAILED (remote: 32 header error)
finished. total time: 58.549s
Click to expand...
Click to collapse
What exactly are you trying to flash here, and where did you get it from?
redpoint73 said:
Developers Edition is not intended for your version. It will fail due to wrong CID and MID. And do not attempt to change the CID and MID to flash this. If it works, it will screw up the phone, and possibly even lead to a radio brick! Only run Sprint RUU on Sprint version M8!
1. What exactly did you do here? You extracted ROM.zip from the RUU (or get it from your PC's temp directory after running the RUU .exe) and renamed it to 0P6BIMG.zip?
2. That usually means you need to flash the Sprint MM firmware, then the RUU. But it appears from your log, that you may have tried this (see next quote)?
3. What exactly are you trying to flash here, and where did you get it from?
Click to expand...
Click to collapse
Thanks for your response!!
1 - i downloaded RUU_M8_WHL_M60_SENSE70_SPCS_MR_Sprint_WWE_Harman_6.20.654.3.exe directly from htc, and renamed it to 0P6BIMG.zip and placed it on the sd card to attempt to install directly from pressing pwr+vol dwn (it detects the file and automatically attempts to install it). ive also just tried running the exe on my pc with phone plugged in via usb, error 155
2 - the only thing i have tried is the 3 different methods of installing the ruu- placing on the sd card, running the exe from my pc, and using fastboot/adb. i have not tried flashing the sprint mm firmware to the best of my knowledge, where do i get that firmware and how do i install it?
3 - im trying to flash RUU_M8_WHL_M60_SENSE70_SPCS_MR_Sprint_WWE_Harman_6.20.654.3.exe (renamed to firmware.zip) that i got directly from htc page. I have file extensions unhidden in windows explorer to prevent "firmware.zip.exe", and i have made sure that my phone is harmon kardon edition (says it on the back of the phone) and that i downloaded the correct version.
i think i figured out my problem but still need help solving it. instead of renaming the exe to a zip, i need a different download that is already a zip image.... but not sure where to get it or what version ill need...
1) You can't do that. The exe is a Windows executable program, not a zip file. Changing the extension doesn't change the format/contents of the file (just changes what Windows or the phone thinks it is).
For example, if you had a spreadsheet file (like .xls), you can't just rename it to .jpg and expect it to magically turn the spreadsheet into a photograph.
Yes, the RUU.exe contains ROM.zip. But your phone doesn't know that, and can't extract it.
2) You'll want to get the 6 .20.654.3 firmware from the following webpage under FIRMWARES: http://forum.xda-developers.com/showthread.php?t=2729173
Flash with fastboot:
fastboot oem rebootRUU
fastboot flash zip firmware.zip
(run it twice)
This should clear up the Error 155, and allow the HK RUU exe to work.
Incidentally, the link above also has the correct zip format files, if you want to fastboot flash the zip (although for this you need htc_fastboot, not the generic Android fastboot), or rename to 0P6BIMG.zip and put on the SD card.
3) Again, you can not do this (simply change file extension to make exe into a zip).
redpoint73 said:
1) You can't do that. The exe is a Windows executable program, not a zip file. Changing the extension doesn't change the format/contents of the file (just changes what Windows or the phone thinks it is).
For example, if you had a spreadsheet file (like .xls), you can't just rename it to .jpg and expect it to magically turn the spreadsheet into a photograph.
Yes, the RUU.exe contains ROM.zip. But your phone doesn't know that, and can't extract it.
2) You'll want to get the 6 .20.654.3 firmware from the following webpage under FIRMWARES: http://forum.xda-developers.com/showthread.php?t=2729173
Flash with fastboot:
fastboot oem rebootRUU
fastboot flash zip firmware.zip
(run it twice)
This should clear up the Error 155, and allow the HK RUU exe to work.
Incidentally, the link above also has the correct zip format files, if you want to fastboot flash the zip (although for this you need htc_fastboot, not the generic Android fastboot), or rename to 0P6BIMG.zip and put on the SD card.
3) Again, you can not do this (simply change file extension to make exe into a zip).
Click to expand...
Click to collapse
thank you so much, downloading the firmware.zip file now and ill attempt to flash it and get back with you asap
redpoint73 said:
1) You can't do that. The exe is a Windows executable program, not a zip file. Changing the extension doesn't change the format/contents of the file (just changes what Windows or the phone thinks it is).
For example, if you had a spreadsheet file (like .xls), you can't just rename it to .jpg and expect it to magically turn the spreadsheet into a photograph.
Yes, the RUU.exe contains ROM.zip. But your phone doesn't know that, and can't extract it.
2) You'll want to get the 6 .20.654.3 firmware from the following webpage under FIRMWARES: http://forum.xda-developers.com/showthread.php?t=2729173
Flash with fastboot:
fastboot oem rebootRUU
fastboot flash zip firmware.zip
(run it twice)
This should clear up the Error 155, and allow the HK RUU exe to work.
Incidentally, the link above also has the correct zip format files, if you want to fastboot flash the zip (although for this you need htc_fastboot, not the generic Android fastboot), or rename to 0P6BIMG.zip and put on the SD card.
3) Again, you can not do this (simply change file extension to make exe into a zip).
Click to expand...
Click to collapse
so after i download the firmware zip and flash via fastboot as you described above (at this point does it need to be htc fastboot or will the minimal fastboot i already have be sufficient?), i should then run the ruu exe on my pc, correct?
jcedwards2009 said:
so after i download the firmware zip and flash via fastboot as you described above (at this point does it need to be htc fastboot or will the minimal fastboot i already have be sufficient?)
Click to expand...
Click to collapse
I've always flashed firmware with the generic fasboot (not the htc one). But I suppose in theory, either should work.
jcedwards2009 said:
i should then run the ruu exe on my pc, correct?
Click to expand...
Click to collapse
Yes.
i downloaded the signed version of the firmware, is that ok? just wanted to get as close to stock as possible.
i flashed once, it said "FAILED (remote: 90 hboot pre-update! please flush image again immediately)"
so i ran only the "fastboot flash zip firmware.zip" command a second time like you said and it has been saying "sending 'zip'" for a good almost 10 minutes now..... is that normal?
or did i need to run the entire "fastboot oem rebootRUU, fastboot flash zip firmware.zip" command twice?
very sorry for my ignorance...
just dont want to cancel the command right in the middle of flashing if thats what its doing if it just takes more than 10 or 15 minutes...
nevermind, canceled the operation ran the entire command again and theres now a green bar moving across the screen under htc. the green bar is full, and phone is just sitting.... what do i do now?
it kept sitting so i entered the command fastboot reboot. it rebooted, and its just sitting at the htc powered by android screen now...
its stuck at the htc powered by android screen still...... tried rebooting holding pwr for longer than 10 seconds, nothing....
ok i help pwr+up button and it restarted, held pwr+dwn got into bootloader, selected fastboot and its showed fastboot usb. ran the ruu exe on my pc and it detected my phone and version number, i continued to update, and now the ruu exe is sitting at sending at 0% now
canceled the operation, downloaded the ruu zip, put it on the sd card and restarted.... im now good to go. thank you so much for your help.

hit a roadblock while trying to revert my 816 to stock. please help.

Hi guys.
I rooted my 816 using CWM and SuperSU months ago. Now, there's an OTA update to Android 6.0 which will hopefully render the usefulness of root obsolete, as I mostly need it for link2sd (they also cite better RAM management as a new feature, which should get rid of the horrible lag on Lollipop).
I know I have to go back to full stock, and I read a simple guide somewhere, and I thought, why don't I give it a crack. So, it said I should just "fastboot oem lock" the phone and flash the correct .zip RUU. After much trouble with connectivity and driver issues between my computer (adb server is out of date. killing...; device offline; errors etc.) I FINALLY (after hours of troubleshooting) managed to go into fastboot via USB and lock the bootloader. Great. But, when I tried to flash the .zip, it just says waiting for device, indefinitely. Tried to go into recovery via the power buttons on the phone, but it shows an error and simply refuses to. As a sidenote, root still works, but the phone displays this in fastboot: Relocked, Security Warning.
Basically, I'm afraid to proceed because I think I'm on the wrong track, and could end up f'ing up my device altogether. I'm from Croatia so I downloaded the 5.0.1 EU version .zip from here: (can't post link, just search htcdev downloads, it's the first one).
I hate opening new threads because I'm sure someone has already had the problems I'm having, but I just can't keep searching the web for hours on end trying to find a solution. Forgive me for this guys, and please help a poor noob in need if you can.
Could you please post your device info? (Make sure to delete serialno. and imei!)
To get your device info, you'll need to make sure all drivers are up-to-date.(HTC Sync, Java and ADB)
After installing,
- Navigate to ADB folder and click on any free space while holding the shift Key
- Choose 'Open command window here'
- Once cmd is started use this command
Code:
fastboot devices
and check if your device is listed, then type
Code:
fastboot getvar all
and copy/paste code here.
nukaru said:
Could you please post your device info? (Make sure to delete serialno. and imei!)
To get your device info, you'll need to make sure all drivers are up-to-date.(HTC Sync, Java and ADB)
After installing,
- Navigate to ADB folder and click on any free space while holding the shift Key
- Choose 'Open command window here'
- Once cmd is started use this command
Code:
fastboot devices
and check if your device is listed, then type
Code:
fastboot getvar all
and copy/paste code here.
Click to expand...
Click to collapse
Oh great, you're from Germany, so you have an EU 816 too. It's an a5ul just like yours. I'll send the full info text as soon as i install SDK tools completely.
I noticed that in your guide you first flash the stock ROM, and only then lock the bootloader. In the guide I found it said to first lock the bootloader, and then flash the stock ROM. So right now, I have a locked bootloader and CWM recovery I can't get into. Is this going to be a problem?
No, you first flash the stock recovery, then relock bootloader. And if your flashed recovery works you flash the RUU.
running fastboot devices does literally nothing, just sends me to the next line.
running adb devices, on the other hand, lists my device.
great, so I messed up there. do you know how I can fix it?
Are you able to boot into fastboot USB? Have you tried the fastboot getvar all comand?
If yes, first you need to flash the stock recovery and check if the flash was a success. If you can get into recovery without any errors, relock bootloader and place the RUU file on sd-card. Boot to bootloader again and the flashing should start on its own.
nukaru said:
Are you able to boot into fastboot USB? Have you tried the fastboot getvar all comand?
If yes, first you need to flash the stock recovery and check if the flash was a success. If you can get into recovery without any errors, relock bootloader and place the RUU file on sd-card. Boot to bootloader again and the flashing should start on its own.
Click to expand...
Click to collapse
I managed to get the getvar command to work: here's the info
C:\Program Files (x86)\Android\android-sdk\platform-tools>adb reboot bootloader
C:\Program Files (x86)\Android\android-sdk\platform-tools>fastboot getvar all
(bootloader) version: 0.5
(bootloader) version-bootloader: 3.19.0.0000
(bootloader) version-baseband: 1.101.111011.20.0123
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main:
(bootloader) version-misc: PVT SHIP S-ON
(bootloader) serialno: *
(bootloader) imei: *
(bootloader) imei2: Not Support
(bootloader) meid: 00000000000000
(bootloader) product: a5_ul
(bootloader) platform: hTCBmsm8226
(bootloader) modelid: 0P9C20000
(bootloader) cidnum: HTC__032
(bootloader) battery-status: good
(bootloader) battery-voltage: 0mV
(bootloader) partition-layout: Generic
(bootloader) security: on
(bootloader) build-mode: SHIP
(bootloader) boot-mode: FASTBOOT
(bootloader) commitno-bootloader: 09813c97
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
all: Done!
finished. total time: 0.054s
The files from my guide should work with your device.
so it doesn't matter that my bootloader is now locked? I can just follow your guide and it should work?
Have you flashed stock recovery BEFORE locking bootloader? You have to install stock recovery or the RUU won't flash. It's all in the guide.
No, i didn't. I locked the bootloader and then tried to flash the stock RUU. That's the problem.
I wish I'd seen your guide before I did anything. I assume trying to flash anything now won't work, and that I'll have to unlock the bootloader again?
edofot said:
No, i didn't. I locked the bootloader and then tried to flash the stock RUU. That's the problem.
I wish I'd seen your guide before I did anything. I assume trying to flash anything now won't work, and that I'll have to unlock the bootloader again?
Click to expand...
Click to collapse
Did you type this before flashing the RUU?
Code:
fastboot oem rebootRUU
Nope. I tried to flash the RUU with fastboot flash ... .zip but it just said: waiting for device; and nothing happened. So I'll try the rebootRUU command when I get home from classes.
You need to flash the stock recovery, otherwise you won't be able to flash any official RUU.
Unlock bootloader, flash stock recovery, relock bootloader and flash RUU.
The command won't work, since you have a custom recovery. You need to get rid of that first.
nukaru said:
You need to flash the stock recovery, otherwise you won't be able to flash any official RUU.
Unlock bootloader, flash stock recovery, relock bootloader and flash RUU.
The command won't work, since you have a custom recovery. You need to get rid of that first.
Click to expand...
Click to collapse
I unlocked the bootloader, and did everything your guide said. Everything worked perfectly.
I just have a problem right now flashing the 0P9CIMG.zip. I can't flash it over the computer (it says the data length is too large or something similar), and I can't move it to sd-card on my phone. I tried moving other files and other .zip files, and that works. I tried redownloading from mega.nz, nothing. I'm thinking the .zip gets corrupted when downloading. Can you maybe re-upload it or send it to me through a different medium?
edofot said:
I unlocked the bootloader, and did everything your guide said. Everything worked perfectly.
I just have a problem right now flashing the 0P9CIMG.zip. I can't flash it over the computer (it says the data length is too large or something similar), and I can't move it to sd-card on my phone. I tried moving other files and other .zip files, and that works. I tried redownloading from mega.nz, nothing. I'm thinking the .zip gets corrupted when downloading. Can you maybe re-upload it or send it to me through a different medium?
Click to expand...
Click to collapse
Use this HTC mini-SDK
Gibz97 said:
Use this HTC mini-SDK
Click to expand...
Click to collapse
Tried it.
Stumped by this:
Code:
C:\Users\Korisnik\Desktop\HTC mini SDK>fastboot flash zip 0P9CIMG.zip
sending 'zip'... (51060 KB) OKAY
sending time = 2.709 secs
writing 'zip'... (bootloader) adopting the signature contained in this image...
(bootloader) signature checking...
FAILnot allowed
FAILED (remote: not allowed)
Execution time is 7(s)
edofot said:
Tried it.
Stumped by this:
Code:
C:\Users\Korisnik\Desktop\HTC mini SDK>fastboot flash zip 0P9CIMG.zip
sending 'zip'... (51060 KB) OKAY
sending time = 2.709 secs
writing 'zip'... (bootloader) adopting the signature contained in this image...
(bootloader) signature checking...
FAILnot allowed
FAILED (remote: not allowed)
Execution time is 7(s)
Click to expand...
Click to collapse
First type this. It will reboot phone into a black screen with a silver HTC logo:
Code:
fastboot oem rebootRUU
then type:
Code:
fastboot erase cache
then type:
Code:
fastboot flash zip 0P9CIMG.zip
Sorry, I was looking for an sd-card adapter, I wasn't here.
Update: Moved the 09PCIMG.zip to the sd-card successfully this time and am flashing the img now from sd-card! Seems to be going well so far.
Success
Finally! Did it, works like a charm.
I'm still amazed by how fast the phone really is when it's stock.
Viele Dank, @nukaru, du wärst eine sehr grosse hilfe. Wenn du nach Kroatien kommst, melde mich an, du hast ein Bier und/oder Kaffe von mich (at least I tried, even without google translate)
Thank you too @Gibz97, really appreciate the effort.
If anyone reading this has the same questions I had, just follow nukaru's guide, it has all you need to know. If you have an A5_UL, it's gonna work.

RIP to my HTC?

Hi all, here's a problem I hope you guys can help me with.
My M9 powered down on friday and I have not been able to get it to boot back up since. When I attempt to power it on the HTC logo appears, phone vibrates then it turns back off, this then continues to loop.
If I hold vol up, vol down and power I'm presented with the screen reading the following:
*** Software status: Official ***
*** LOCKED ***
*** S-ON ***
-
REBOOT
REBOOT TO BOOTLOADER
BOOT TO DOWNLOAD MODE
BOOT TO RECOVERY MODE
POWER DOWN
'Reboot' restarts the loop.
'Reboot to bootloader' returns me to the same screen.
'Download mode' takes me to DL mode.
'Recovery mode' returns the following: "Failed to boot to recovery mode. Press vol up or down to back to menu"
Selecting power down is the only way to stop the loop and power off the phone.
The phone is stock, S-ON, Bootloader locked, no CFW or Custom Recovery, no OEM unlocking or Developer options enabled.
Do I have any chance of recovering this? Thanks in advance.
If you can boot in download mode(you said you can) do "fastboot getvar all" and post the result here(remove imei,sn).
lucyr03 said:
If you can boot in download mode(you said you can) do "fastboot getvar all" and post the result here(remove imei,sn).
Click to expand...
Click to collapse
Code:
(bootloader) kernel: lk
(bootloader) product: htc_himauhl
(bootloader) version: 1.0
(bootloader) imei: ###############
(bootloader) version-main: 3.35.161.12
(bootloader) boot-mode: download
(bootloader) version-baseband: 01.01_U11440792_96.00.51201G_F
(bootloader) version-bootloader: 1.0.0.0000
(bootloader) mid: 0PJA10000
(bootloader) cid: VODAP001
all:
finished. total time: 0.004s
Here is the right RUU for your device: https://androidfilehost.com/?fid=24438995911969361
I recommend the sdcard method: just rename the zip to 0PJAIMG.zip and put in the root of your fat32 formatted sdcard.
Then boot in download mode and follow the on-screen instructions.
Note: This procedure will wipe all of your internal storage.
lucyr03 said:
Here is the right RUU for your device: https://androidfilehost.com/?fid=24438995911969361
I recommend the sdcard method: just rename the zip to 0PJAIMG.zip and put in the root of your fat32 formatted sdcard.
Then boot in download mode and follow the on-screen instructions.
Note: This procedure will wipe all of your internal storage.
Click to expand...
Click to collapse
Thanks!
I'll give this a shot when I get home from work and report back.
lucyr03 said:
Here is the right RUU for your device: https://androidfilehost.com/?fid=24438995911969361
I recommend the sdcard method: just rename the zip to 0PJAIMG.zip and put in the root of your fat32 formatted sdcard.
Then boot in download mode and follow the on-screen instructions.
Note: This procedure will wipe all of your internal storage.
Click to expand...
Click to collapse
Update: I've given this a try with no success.
I renamed the file and placed it on the root of my SD card then booted to DL mode. Then I pressed VolUp to start flash. 'Start ui_updating' appears at the top for about 5 seconds and then the phone reboots and begins looping again.
316894 said:
Update: I've given this a try with no success.
I renamed the file and placed it on the root of my SD card then booted to DL mode. Then I pressed VolUp to start flash. 'Start ui_updating' appears at the top for about 5 seconds and then the phone reboots and begins looping again.
Click to expand...
Click to collapse
That's strange, maybe your phone have an hardware problem.
Try to flash from the pc.
You need adb, htc drivers and htc_fastboot.exe
Boot your phone in download and connect to the pc.
"htc_fastboot flash zip RUU.zip" - do the command again when it ask(phone reboots itself back in download mode).
Note: Replace RUU.zip with your path to ruu.
After the process is completed do "fastboot reboot"
lucyr03 said:
That's strange, maybe your phone have an hardware problem.
Try to flash from the pc.
You need adb, htc drivers and htc_fastboot.exe
Boot your phone in download and connect to the pc.
"htc_fastboot flash zip RUU.zip" - do the command again when it ask(phone reboots itself back in download mode).
Note: Replace RUU.zip with your path to ruu.
After the process is completed do "fastboot reboot"
Click to expand...
Click to collapse
Tried this:
Code:
C:\>htc_fastboot flash zip RUU.zip
sending 'zip'... (133005 KB) OKAY
sending time = 7.398 secs
writing 'zip'... (bootloader) HOSD CL#671447
FAIL9 RU_SECURITY_FAIL zip from usb command in download mode
FAILED (remote: 9 RU_SECURITY_FAIL zip from usb command in download mode)
Execution time is 9(s)
I would question which ruu you're using.. I dont think you have the correct one.
shivadow said:
I would question which ruu you're using.. I dont think you have the correct one.
Click to expand...
Click to collapse
I'm using the following RUU as suggested by lucyr03, would you suggest another?
"0PJAIMG_HIMA_UHL_M60_SENSE70_MR_Vodafone_UK_3.35.161.12_Radio_01.01_U11440792_96.00.51201G_F_release_464298_signed.zip"
That's the correct firmware.. Seems like your phone is bricked.

bootloop HTC One M9, Original, Locked, S-ON

Good day everyone.
After two weeks of trying and searching the web for an answer I have finally given up and decided to post my question here, perhaps someone has an idea that can help.
I have an HTC One M9 that was stashed away in a cupboard, I decided that I am going back to it as my current phone is just not working for me, however, I LOVE the hardware on the One M9 but I do not like the HTC Sence UI and decided that I will flash it with a custom ROM. Needless to say I completely stuffed it up. (I probably should have S-OFF and unlocked before I tried flashing. (Also didn't enable developer options or USB debugging - stupid stupid me)
Herewith the symptom. I can boot into download mode but not recovery, when i boot into recovery the black HTC logo appears and then disappears, appears, disappears etc etc so ABD does not work.
I have tried the RUU route but as soon as the installer reboots the phone it does the whole black logo loop thing. the get_identifier_token command also returns bank (see output below) so can't even use the htcdev procedure.
I have tried manually flashing zip and img files and get a 9 RU_SECURITY_FAIL boot and bootloader isn't BL_UNLOCK also tried flashing stock recovery.img rom.
Rom:
M9_3.35.401.12_FullStock_wipe.zip
M9_3.35.401.12_NoWipe_TWRP2871b1.zip
0PJAIMG_HIMA_UHL_M60_SENSE70_HTC_Europe_3.35.401.1 2_Radio_01.01_U11440792_97.00.51203G_F_release_sig ned.zip
RUU_HIMA_UHL_L50_SENSE70_HTC_Europe_1.32.401.17_Ra dio_01.01_U11440261_56.02.50306G_2_F_release_42934 0_signed_2_4.exe
Manually flashing with extracted rom in RUU file
hima_uhl_n70_hosd_signed.img
HTC_One_M9_1.32.401.8_recovery_signed.img
twrp-3.2.1-0-hima.img
Used the SDCARD option
I did the fastboot erase cache process
At some point I was able to htc_fastboot flash zip rom.zip and it sent up to 50% but just remained there
Original Software
LOCKED
S-ON
htc_fastboot "works"
D:\Desktop\HTC\HTC One M9 Toolkit 2 1.6.1\adb>htc_fastboot.exe getvar all
(bootloader) kernel: lk
(bootloader) product: htc_himauhl
(bootloader) version: 1.0
(bootloader) imei: XXXXXXXXXXXX
(bootloader) version-main: 3.35.401.12
(bootloader) boot-mode: download
(bootloader) version-baseband: 01.01_U11440792_97.00.51203G_F
(bootloader) version-bootloader: 1.0.0.0000
(bootloader) mid: 0PJA10000
(bootloader) cid: HTC__016
all:
finished. total time: 0.004s
htc_fastboot finished. total time: 1.143s
flash example:
D:\Desktop\HTC\HTC One M9 Toolkit 2 1.6.1\adb>htc_fastboot.exe flash zip d:\roms\M9_3.35.401.12_FullStock_wipe.zip
htc_fastboot.exe v3.0.7 (2015-03-30)
target reported max download size of 800000000 bytes
sending 'zip' (134610 KB)...
OKAY [ 8.962s]
writing 'zip'...
(bootloader) HOSD CL#671758
FAILED (remote: 9 RU_SECURITY_FAIL zip from usb command in download mode)
finished. total time: 10.121s
htc_fastboot finished. total time: 12.576s
D:\Desktop\HTC\HTC One M9 Toolkit 2 1.6.1\adb>htc_fastboot.exe oem get_identifier_token
...
(bootloader) [KillSwitch] : /dev/block/bootdevice/by-name/frp
(bootloader) [KillSwitch] Last Byte is 0X00, disable unlock
(bootloader) [KillSwitch] oem unlock Turn Off!
OKAY [ 0.162s]
finished. total time: 0.162s
htc_fastboot finished. total time: 1.335s
Please help or even tell me I am doing something wrong.
Thank you
The only ruu you can flash with s-off is this: 0PJAIMG_HIMA_UHL_M60_SENSE70_HTC_Europe_3.35.401.1 2_Radio_01.01_U11440792_97.00.51203G_F_release_sig ned.zip
So, don't try another ruu, they will never work.
You just need to rename the zip to 0PJAIMG.zip and put in the root of your fat32 formatted sdcard.
Then boot in download and follow on-screen instructions.
The second method is with htc_fastboot.
Boot in download and do "htc_fastboot flash zip 0PJAIMG_HIMA......zip" - do the same command again when it asks(phone reboots itself in download mode).
After the process is complete do "fastboot reboot".
lucyr03 said:
The only ruu you can flash with s-off is this: 0PJAIMG_HIMA_UHL_M60_SENSE70_HTC_Europe_3.35.401.1 2_Radio_01.01_U11440792_97.00.51203G_F_release_sig ned.zip
So, don't try another ruu, they will never work.
You just need to rename the zip to 0PJAIMG.zip and put in the root of your fat32 formatted sdcard.
Then boot in download and follow on-screen instructions.
The second method is with htc_fastboot.
Boot in download and do "htc_fastboot flash zip 0PJAIMG_HIMA......zip" - do the same command again when it asks(phone reboots itself in download mode).
After the process is complete do "fastboot reboot".
Click to expand...
Click to collapse
Hi, thanks, however, I did that previously no luck, problem is that S is on and I never enabled USB Debug before I started
neetekweet said:
Hi, thanks, however, I did that previously no luck, problem is that S is on and I never enabled USB Debug before I started
Click to expand...
Click to collapse
Neither being S-ON nor not having enabled the USB debugging prevents you from flashing a RUU that has the same firmware version as your phone.
If flashing the RUU that lucyr03 mentioned fails then you need to check whether the MD5 checksum of the downloaded file is correct and whether your SD card is broken.
Sent from my HTC One M9 using XDA Labs
Probably wrong firmware. You need a stock signed zip of 3.35.401.12 and use the sdcard method.
shivadow said:
Probably wrong firmware. You need a stock signed zip of 3.35.401.12 and use the sdcard method.
Click to expand...
Click to collapse
Hi
Thank you kindly, tried with Lucy's and a few others on the sdcard method.
Its starts the process "updating_ui" it reboots and then it just starts looping again.
I have basically given up, I am going to try one more thing and that is to take it to a repair shop and see if they can fix it.
neetekweet said:
Hi
Thank you kindly, tried with Lucy's and a few others on the sdcard method.
Its starts the process "updating_ui" it reboots and then it just starts looping again.
I have basically given up, I am going to try one more thing and that is to take it to a repair shop and see if they can fix it.
Click to expand...
Click to collapse
I can tell you now the phone is bricked.

Categories

Resources