[Q] [Solved] unrooting? - One (M9) Q&A, Help & Troubleshooting

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...

Related

Removing Demo Content

Hi guys, I downloaded firmware from the following location - http://forum.xda-developers.com/one-m9/general/htc-one-m9-dump-t3060545
I wanted to try and flash the software back to stock and get rid of the annoying demo video that pops up every few seconds. When I follow the fastboot commands I get the following issue
C:\adb>fastboot flash zip update.zip
target reported max download size of 800000000 bytes
Invalid sparse file format at header magi
sending sparse 'zip' (72616 KB)...
OKAY [ 5.379s]
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) [email protected]
FAILED (remote: 22: fail to flash via downloadzip)
finished. total time: 9.272s
C:\adb>fastboot reboot
rebooting...
finished. total time: 0.002s
C:\adb>
Can anyone assist? (I renamed the downloaded file)
i also got a demo unit you have to copy the 0PJAIMG.ZIP to the SDCARD and then load up the bootloader then flashing starts fastboot didnt work for me
the problem is after flashing i got the retail software but still the ****ing Demo auto showcase -.-
Edit:
seems like the only variant is to unlock the bootloader and then remove the demo.apk
Check if Demo is a device administrator in Settings > Security.
crucky said:
i also got a demo unit you have to copy the 0PJAIMG.ZIP to the SDCARD and then load up the bootloader then flashing starts fastboot didnt work for me
the problem is after flashing i got the retail software but still the ****ing Demo auto showcase -.-
Edit:
seems like the only variant is to unlock the bootloader and then remove the demo.apk
Click to expand...
Click to collapse
When I try and do this, Windows throws an error at me about the device being disconnected or not responding. It does this on more than one phone when trying to move the file to the SD card, I can move other files to the SD card it's just this one?
Insert the SD card into another device or copy using AirDroid.
or use adb like i did =) but the demo.apk is not removed -,- after full sdcard flash and factory reset
crap, my demo unit is for a week around here and I admire it almost only later that day when im back at home ill try to delete the f***** retail software.
problem is after flashing the ruu the demo.apk is still on the device and cant be removed or deleted.so we have to unlock bootloader flash twrp (if there is a version with system write) and then flash a stock rooted rom so we have to have patient
Damn.. I hope we can unlook them fast
k1moe said:
Damn.. I hope we can unlook them fast
Click to expand...
Click to collapse
you can already unlock at HTC Dev site but we dont have a working TWRP Recovery so we cant flash anything or remove anything because of system write protection.By the way the device you got is a retail demo right ? i also got one in my shop to play with xD
crucky said:
you can already unlock at HTC Dev site but we dont have a working TWRP Recovery so we cant flash anything or remove anything because of system write protection.By the way the device you got is a retail demo right ? i also got one in my shop to play with xD
Click to expand...
Click to collapse
okay.. THANX :highfive: via "all other supported devices" right? ill try..
yes, ists a retail phone.. but with modem and full working. and to my luck we had a few more
So I took a retail demo HTC One M8 too and after unlocking and rooting I deleted the contents of the demo folder in etc. I then flashed a custom rom, booted successfully and boom demo content was gone. So I tried to revert to stock using the Lollipop RUU exe floating around and on first boot the demo app re-installed itself. Basing of this, I can imagine the M9 would work the same. It would seem removing demo content is impossible.
Sent from my SM-N910F using Tapatalk
got it.. bootloader unlocked, rooted with superSU via twrp and deleted demo.apk, com.htc.demoflo and another process started by com.htc.demoflo. after rebooting all aps are gone :highfive: thank you so much for helping me :good::victory:
Please could you detail exactly which processes and folders so I can replicate this on mine?
Sent from my SM-N910F using Tapatalk
I have replied to your question in the m8 threads Jay, I have m8 & M9 retail demo units ?
While I couldn't use TB, I was able to use "pm disable" to take out a load of bits.
Copy and paste job......
Hi Jay
I get demo devices through my employer, every single HTC ROM out there inclues demoflow, the device it's self is essentialy a generic unit with an alternate CID, the demo installation and launch is triggered by CID HTC_002, the most effective way to get rid of demoflo and make the device 100% generic, is to S-Off and supercid! (11111111)
Once you are supercid you can flash any ruu and you will still have a 100% generic device, OTA updates and all... Demo won't even install.
The alternative method would be to simply remove /system/etc/.demoflo and /system/priv-app/DemoFlowInstaller
This will break ota and carrying the 002 cid will bring demoflo back when you flash any HTC ruu.
My M9 came as a demo unit, I modified the supersu installer to do the work for me as S-off isn't yet available... Htc dev unlock - twrp & flash the modified supersu zip.. once again breaking ota but I have an ruu on standby..
Feel free to shout if you need assistance.
Thanks
Lee
Electronic Punk said:
While I couldn't use TB, I was able to use "pm disable" to take out a load of bits.
Click to expand...
Click to collapse
Also an option but less permanent, I had considered adding pm commands to usf_post_boot.sh but it would still kill ota's
tbh, if I mod the system I won't even dare try an OTA and I am going to mod /system/ just because they change the way an OTA works I am not going to suddenly get worried.
If an when I have to flash an OTA I will back my **** up and RUU my way up to it.
Electronic Punk said:
tbh, if I mod the system I won't even dare try an OTA and I am going to mod /system/ just because they change the way an OTA works I am not going to suddenly get worried.
If an when I have to flash an OTA I will back my **** up and RUU my way up to it.
Click to expand...
Click to collapse
Indeedie mate, but seriously looking forward to s-off & supercid, drives me insane flashing and fighting with demo stuff..
Any thoughts on the screen? The color doesn't look as vibrant as my m8, wondering if it's the M9s config or if its down to them being demo units...

Help restoring to stock

Hi I need some help returning to stock with a RUU.
My phone is currently S-off, rooted, twrp and supercid. I am trying to return to stock (keeping s-off and supercid). From reading posts it seemed like a simple task but I cant get it to work. I have tried two different RUU's. I have tried putting a RUU on my extsd and renamed it to 0PJAIMG.zip but nothing happens in download and it actually says SD NOT MOUNTED down the bottom left.
The other method I have tried is through ADB using these commands.
fastboot oem rebootRUU
fastboot flash zip 0PJAIMG.ZIP
fastboot oem rebootRUU puts it into a screen with the htc logo
fastboot flash zip 0PJAIMG.ZIP gives me the following message
C:\platform-toolsM9>fastboot flash zip 0PJAIMG.ZIP
target reported max download size of 800000000 bytes
Invalid sparse file format at header magi
sending sparse 'zip' (96760 KB)...
OKAY [ 7.557s]
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: 9.673s
Does anyone have any ideas?
Ok I used htc_fastboot and that has worked.
Stock RUU
Hi, I recently unlocked the bootloader and installed TWRP. Since then I have done a backup and installed Android Revolution rom. No my phone continuously turns off and restarts.
I really want to return to stock but can only find limited information. I have a TWRP backup of the stock ROM but when I try to flash it in recovery I get "cannot restore system--mounted read only" Apparently the backup has to be flashed with fastboot however the instructions are a bit dodgy at the android soul
I have the backup copied onto C drive yet it's not in "system.emmc.win format" its " 2015-06-09--04-46-13_LRX22G_release-keys". This folder of course has a few files in it, such as
boot.emmc.win
boot.emmc.win.md5
data.ext4.win000
system.ext4.win000
system.ext4.winooo.md5
I tried looking for the right RUU but couldn't find any for Australia let alone Vodafone Australia. Can I use the UK one?
If anyone has any ideas or advice I'd be most grateful.
I'm really disappointed in how difficult this phone is to root/unlock and restore. I hate it. I hate HTC.
There's one for vodafone australia on Androidruu it's 1.32.710.16. It's actually really easy to return to stock once you know how. Have a look in other threads and use the sd card method. Just make sure its formatted the correct way.
Soopajoosee said:
Hi, I recently unlocked the bootloader and installed TWRP. Since then I have done a backup and installed Android Revolution rom. No my phone continuously turns off and restarts.
If anyone has any ideas or advice I'd be most grateful.
I'm really disappointed in how difficult this phone is to root/unlock and restore. I hate it. I hate HTC.
Click to expand...
Click to collapse
Please don't blame HTC for your failure to read. You're describing a well-known conflict that results from running a 1.40 Rom on top of 1.32 firmware. There is a simple solution: Flash a 1.32 kernel or update your firmware.
And I don't understand your complaints about this being a difficult phone to mod. Compared to anything but a Nexus, it's a piece of cake.
iElvis said:
Please don't blame HTC for your failure to read. You're describing a well-known conflict that results from running a 1.40 Rom on top of 1.32 firmware. There is a simple solution: Flash a 1.32 kernel or update your firmware.
And I don't understand your complaints about this being a difficult phone to mod. Compared to anything but a Nexus, it's a piece of cake.
Click to expand...
Click to collapse
Thanks for your help not....I don't understand why you're a condescending prick. Don't worry, I flashed another rom and all is good. Personally I found the galaxy S2 and S4 a lot easier than this. I thought this was a forum for help....if this is your idea of help, don't bother in future.
Soopajoosee said:
Thanks for your help not....I don't understand why you're a condescending prick. Don't worry, I flashed another rom and all is good. Personally I found the galaxy S2 and S4 a lot easier than this. I thought this was a forum for help....if this is your idea of help, don't bother in future.
Click to expand...
Click to collapse
There's no need for the name calling. He was trying to help even though it could of been more eloquently put.
Sent from my 0PJA10 using Tapatalk
matust said:
There's no need for the name calling. He was trying to help even though it could of been more eloquently put.
Click to expand...
Click to collapse
Well, I was a condescending prick, but this is also a common problem. If you try to run the latest ARHD over 1.32 firmware, you will get random reboots because there is a conflict between the old firmware and 1.40 kernels.
iElvis said:
Well, I was a condescending prick, but this is also a common problem. If you try to run the latest ARHD over 1.32 firmware, you will get random reboots because there is a conflict between the old firmware and 1.40 kernels.
Click to expand...
Click to collapse
I just don't see a reason for name calling. I didn't read what you wrote as rude. What you were saying is correct even though it could of been put better. XDA isn't a place for name calling.
Sent from my 0PJA10 using Tapatalk
I have exactly the same problem. I can't return stock by putting file 0PJAIMG in the microsd and start in download mode and also I can't flash in fastboot. The messages are the same that report Matust. He said solved using HTC_fast boot but I don't how to use it
Cid and model id are correctly and I tried different ruu
jacopo.kaldewey said:
I have exactly the same problem. I can't return stock by putting file 0PJAIMG in the microsd and start in download mode and also I can't flash in fastboot. The messages are the same that report Matust. He said solved using HTC_fast boot but I don't how to use it
Cid and model id are correctly and I tried different ruu
Click to expand...
Click to collapse
If you use sd card method the card needs to formatted to fat32 and make sure the file name has .zip at the end. If your using the adb method download https://www.androidfilehost.com/?fid=96042739161891970 and put it in your adb folder. Use htc_fastboot as the command instead of fastboot to flash the file.
Sent from my HTC One M9 using Tapatalk
jacopo.kaldewey said:
I have exactly the same problem. I can't return stock by putting file 0PJAIMG in the microsd and start in download mode and also I can't flash in fastboot. The messages are the same that report Matust. He said solved using HTC_fast boot but I don't how to use it
Cid and model id are correctly and I tried different ruu
Click to expand...
Click to collapse
here is a link with a link to the htc_fastboot file. Just download it and place it in the same folder as your regular fastboot file.
http://forum.xda-developers.com/showpost.php?p=60346126&postcount=14
jollywhitefoot said:
here is a link with a link to the htc_fastboot file. Just download it and place it in the same folder as your regular fastboot file.
http://forum.xda-developers.com/showpost.php?p=60346126&postcount=14
Click to expand...
Click to collapse
thank you very much for Your help. I solved this problem and flash the RUU with htc_fastboot, but Sorry now I have a new problem. I made some mistake becouse my M9 now became e developer edition and I dont'know how to come back... also my english is bad and I've difficult to understand the thread that i search. Somebody can Help me to come back from developer edition to Europe edition?

[Q] Can't flash RUU firmware htc one m9

Hey guys, so I tried to flash RUU Firmware on my htc one m9. I downloaded the firmware, minimal adb flashboot, and htc sync manager. Problem is when I open command prompt via minimal adb flashboot and I type 'adb reboot downloader' it says:
adb server is out of date. killing...
* daemon started successfully *
error: device '(null)' not found
Am I missing something here? What should I do?
any chance you run a virtual android, genymotion or something of the like? And I would like to think aside from the drivers for HTC, the sync manager is best tucked safely away in the garbage
MrLizm said:
any chance you run a virtual android, genymotion or something of the like? And I would like to think aside from the drivers for HTC, the sync manager is best tucked safely away in the garbage
Click to expand...
Click to collapse
alright now I can get it to works however it says failed at the end.
C:\adb>adb reboot bootloader
adb server is out of date. killing...
* daemon started successfully *
error: device unauthorized. Please check the confirmation dialog on your device.
C:\adb>adb reboot bootloader
C:\adb>fasboot oem rebootRUU
'fasboot' is not recognized as an internal or external command,
operable program or batch file.
C:\adb>fastboot oem rebootRUU
...
OKAY [ 0.048s]
finished. total time: 0.048s
C:\adb>fastboot flash zip 0PJAIMG.ZIP
target reported max download size of 800000000 bytes
sending 'zip' (61661 KB)...
OKAY [ 4.842s]
writing 'zip'...
(bootloader) HOSD CL#506785
(bootloader) GPT is up-to-dated. [17408]
(bootloader) Perform pre-update
(bootloader) ERR ZIP signature checking failed...
(bootloader) ERR [SD_UPDATE_ERR] Not allow flash image except boot/recov
(bootloader) ery/system
(bootloader) ERR [SD_UPDATE_ERR] sddownload failed: 14
(bootloader) ERR Update zip file failed.
(bootloader) Update zip file OK
(bootloader) ERR ZIP ERROR CODE, 14
(bootloader) [email protected]
FAILED (remote: 14: fail to flash via downloadzip)
finished. total time: 8.598s
C:\adb>fastboot reboot
rebooting...
finished. total time: 0.002s
C:\adb>
any idea how to make it successful?
Have to ask, you s-off?
This line makes me wonder,
(bootloader) ERR [SD_UPDATE_ERR] Not allow flash image except boot/recov
(bootloader) ery/system
MrLizm said:
Have to ask, you s-off?
This line makes me wonder,
(bootloader) ERR [SD_UPDATE_ERR] Not allow flash image except boot/recov
(bootloader) ery/system
Click to expand...
Click to collapse
How do i check it? Sorry I'm totally new in this kind of things
kamocheng said:
How do i check it? Sorry I'm totally new in this kind of things
Click to expand...
Click to collapse
if you boot to bootloader, should be up top there. from a booted phone just 'adb reboot bootloader' if it says s-on thats your problem. My guess is since you do not know your s-on/off you are probably s-on.
kamocheng said:
How do i check it? Sorry I'm totally new in this kind of things
Click to expand...
Click to collapse
No it says:
*** Software status: Modified ***
*** Unlocked ***
*** S-ON ***
so this is your problem, S-ON is the last piece of security for you. Without S-OFF you are unable to flash RUU the way your are attempting.
There is an app, Sunshine. Cost 25$ I am pretty sure and that will get you s-off. or you can wait until your carrier pushes the OTA and do a "Back To Stock" method. Well the app is free, it runs a check and makes sure it can get s-off. then it wants money.
MrLizm said:
so this is your problem, S-ON is the last piece of security for you. Without S-OFF you are unable to flash RUU the way your are attempting.
There is an app, Sunshine. Cost 25$ I am pretty sure and that will get you s-off. or you can wait until your carrier pushes the OTA and do a "Back To Stock" method. Well the app is free, it runs a check and makes sure it can get s-off. then it wants money.
Click to expand...
Click to collapse
Good to know, any idea how to get the app for free? Kinda tight on budget here. Thanks!
kamocheng said:
Good to know, any idea how to get the app for free? Kinda tight on budget here. Thanks!
Click to expand...
Click to collapse
Okay hold on, I remember when I rooted my phone it was S-Off. So to get it back to original factory version I need to S-on it?
kamocheng said:
Okay hold on, I remember when I rooted my phone it was S-Off. So to get it back to original factory version I need to S-on it?
Click to expand...
Click to collapse
No not at all, S-OFF makes it easier to get back to stock. If you were S-OFF at some point I am not too sure why the bootloader is reporting S-ON now. I am cheap and I revert to stock to get my OTAs to get the latest roms.. this is a huge pain. S-OFF is ideal once you have it you should keep it.
@kamocheng: Since I don't have much time at the moment I'm keeping it short:
1. Your zip is corrupted (look at the output). Re-download it and compare the MD5 checksums.
2. If you're s-on you need to be relocked for running RUUs.
3. You never mentioned your firmware version nor your CID so no one can verify whether you use the correct RUU.
4. There is no free version of sunshine since its a free app with in-app purchasement. But there is no need to s-off if you use the correct RUU.
Make sure htc sync isn't running on your computer.
Sent from my 0PJA10 using Tapatalk
Flippy498 said:
@kamocheng: Since I don't have much time at the moment I'm keeping it short:
1. Your zip is corrupted (look at the output). Re-download it and compare the MD5 checksums.
2. If you're s-on you need to be relocked for running RUUs.
3. You never mentioned your firmware version nor your CID so no one can verify whether you use the correct RUU.
4. There is no free version of sunshine since its a free app with in-app purchasement. But there is no need to s-off if you use the correct RUU.
Click to expand...
Click to collapse
Hello there, thanks for replying my thread
1. I'm sorry I dont quiet understand, do you mean zip in my PC or zip in my phone?
2. My firmware version is 1.32.617.30, how do i check my CID?
Correct me if I'm wrong but there are 2 options for me to return to original stock? First, S-off my phone and flash RUU firmware? Second, relocked my phone then run original stock? Since I didnt backup my original stock, I need to find untouched one?
Sorry this is my first android phone so if I'm total noob, I'm so sorry
What if i unrooted then relocked my phone, will i be able to take OTA then?
kamocheng said:
Hello there, thanks for replying my thread
1. I'm sorry I dont quiet understand, do you mean zip in my PC or zip in my phone?
2. My firmware version is 1.32.617.30, how do i check my CID?
Correct me if I'm wrong but there are 2 options for me to return to original stock? First, S-off my phone and flash RUU firmware? Second, relocked my phone then run original stock? Since I didnt backup my original stock, I need to find untouched one?
Sorry this is my first android phone so if I'm total noob, I'm so sorry
Click to expand...
Click to collapse
I'm talking about the zip you tried to flash in post 3. If you are using firefox as a browser I would recommend using an addon like DownThemAll! to verifiy the md5 checksum after the download has finished. Files can get corrupted during a download.
No, its one and the same way. You run the RUU either way. The only difference is that you can flash any firmware version with s-off and you don't need to relock while the versions you can flash with s-on have to match your current version (that means same version or newer) and your CID. Firmware versions with x.xx.617.xx are the developers editions if I'm not mistaking. (As far as I know AndroidRUU doesn't have any corresponding files. So I assume you downloaded it from clsA's personal collection of developer edition files since google didn't find any other sources for these files.) As said before redownload the file and compare the downloaded file's checksum with the one mentioned next to the download link (428582cef691c2e37053a0e19e9d738e). If they match the file should be flashable.
I prefer flashing RUUs using the sd-card method instead of fastboot so here are some instructions how I would continue:
Be sure to backup everything important like contacts, sms, etc. (I'm using MyPhoneExplorer for this step)
Get a SD-card that is not bigger than 32 gb and formatted to fat32 (I've always been using the formatting function of the m9 for this step).
Rename the RUU to "0PJAIMG.zip".
Copy that file into the root direction of your SD-card.
Relock your bootloader.
Put the card back into your phone.
Be sure that your phone is charged enough (more than 50 %).
Boot into download mode.
Follow the instructions on the screen.
Wait some minutes.
Done.
Flippy498 said:
I'm talking about the zip you tried to flash in post 3. If you are using firefox as a browser I would recommend using an addon like DownThemAll! to verifiy the md5 checksum after the download has finished. Files can get corrupted during a download.
No, its one and the same way. You run the RUU either way. The only difference is that you can flash any firmware version with s-off while the versions you can flash with s-on have to match your current version (that means same version or newer) and your CID. Firmware versions with x.xx.617.xx are the developers editions if I'm not mistaking. (As far as I know AndroidRUU doesn't have any corresponding files. So I assume you downloaded it from clsA's personal collection of developer edition files since google didn't find any other sources for these files.) As said before redownload the file and compare the downloaded file's checksum with the one mentioned next to the download link (428582cef691c2e37053a0e19e9d738e). If they match the file should be flashable.
I prefer flashing RUUs using the sd-card method instead of fastboot so here are some instruction how I would continue:
Be sure to backup everything important like contacts, sms, etc. (I'm using MyPhoneExplorer for this step)
Get a SD-card that is not bigger than 32 gb and formatted to fat32 (I've always been using the formatting function of the m9 for this step).
Rename the RUU to "0PJAIMG.zip".
Copy that file into the root direction of your SD-card.
Relock your bootloader.
Put the card back into your phone.
Be sure that your phone is charged enough (more than 50 %).
Boot into download mode.
Follow the instructions on the screen.
Wait some minutes.
Done.
Click to expand...
Click to collapse
So by doing that way, I dont have to S-off my phone to have it return to original stock?
kamocheng said:
So by doing that way, I dont have to S-off my phone to have it return to original stock?
Click to expand...
Click to collapse
Correct.
Edit: I just saw that you asked more or less the same question twice. jollywhitefoot's solution works the same way as the one I described. The only difference is that you are using fastboot instead of a sd-card.
Flippy498 said:
Correct.
Edit: I just saw that you asked more or less the same question twice. jollywhitefoot's solution works the same way as the one I described. The only difference is that you are using fastboot instead of a sd-card.
Click to expand...
Click to collapse
Alright, thank you for your guidance.
kamocheng said:
Alright, thank you for your guidance.
Click to expand...
Click to collapse
So my method in your other thread didn't work? Where are you running into problems?

[Q] Upgrading To 2.10.709.1 Help

Greetings to all of you
i need little help since i'm a new HTC User
first of all , my phone is :
S-On , Rooted , Unlocked Bootloader , TWRP & finally on stock base 1.40.709.8
CID : HTC_621
MID : 0PJA10000
now i need to update to latest base " 2.10.709.1 "
how to do so step by step ??
EDIT :
i read here on XDA " If your device is S-ON , then you cannot flash an RUU with version less than your phone's current version . The same applies for hboot version "
Amr Nasser said:
Greetings to all of you
i need little help
i'm a new HTC User , I've HTC M9
first of all , my phone is :
S-On , Rooted , Unlocked Bootloader , TWRP & finally on Lee Droid Rom base 1.40.401.8
CID : HTC_621
MID : 0PJA10000
now i need to update to latest 2.10.401.1
how to do so step by step ??
Click to expand...
Click to collapse
Either you S-OFF with sunshine (costs 25 USD) so you can flash the leaked firmware or you wait untill the official OTA gets distributed by HTC. If you choose to do the latter you need to restore your system to stock, unrooted, read-only state by flashing a RUU or restoring a stock backup and reflashing the stock recovery.
Important
Flippy498 said:
Either you S-OFF with sunshine (costs 25 USD) so you can flash the leaked firmware or you wait untill the official OTA gets distributed by HTC. If you choose to do the latter you need to restore your system to stock, unrooted, read-only state by flashing a RUU or restoring a stock backup and reflashing the stock recovery.
Click to expand...
Click to collapse
this posted yesterday :
http://forum.xda-developers.com/showpost.php?p=61995182&postcount=373
i have the same MID & CID
does it mean if i get back to stock 1.40.401.8 , i can use that OTA To get 2.10.401.1 ??
Amr Nasser said:
this posted yesterday :
http://forum.xda-developers.com/showpost.php?p=61995182&postcount=373
i have the same MID & CID
does it mean if i get back to stock 1.40.401.8 , i can use that OTA To get 2.10.401.1 ??
Click to expand...
Click to collapse
The update from the link is for the Asian SKU 709. If you go back to a stock version with the SKU 401 you can only use updates with the same SKU and the update for firmware 2.10.401.1 has not been realesed officially untill now.
Edit: Maybe I understood you wrong. What is your actual firmware version? I mean the one that is stated in the download mode in the line with "OS" at the beginning. That is the firmware you need to look for if you want to get back to stock. The one in settings>about only tells you the base of the rom you are using.
Important
Flippy498 said:
The update from the link is for the Asian SKU 709. If you go back to a stock version with the SKU 401 you can only use updates with the same SKU and the update for firmware 2.10.401.1 has not been realesed officially untill now.
Edit: Maybe I understood you wrong. What is your actual firmware version? I mean the one that is stated in the download mode in the line with "OS" at the beginning. That is the firmware you need to look for if you want to get back to stock. The one in settings>about only tells you the base of the rom you are using.
Click to expand...
Click to collapse
i will go back to stock 1.40.709.8 ?? then update to 2.10.709.1 ?? both are Asian
will this work , i think they are same SKU now ??
Amr Nasser said:
i will go back to stock 1.40.709.8 ?? then update to 2.10.709.1 ?? both are Asian
will this work , i think they are same SKU now ??
Click to expand...
Click to collapse
Your phone is S-ON so you can only go back to the stock firmware that belongs to your phones SKU. You need to look at the "OS" line in download mode if you want to know which SKU versions you can use.
Amr Nasser said:
Greetings to all of you
i need little help
i'm a new HTC User , I've HTC M9
first of all , my phone is :
S-On , Rooted , Unlocked Bootloader , TWRP & finally on Lee Droid Rom base 1.40.401.8
CID : HTC_621
MID : 0PJA10000
now i need to update to latest 2.10.401.1
how to do so step by step ??
Click to expand...
Click to collapse
Since you're s-on, you're already on .709 firmware. There is no way you could be on anything else because it would not flash. Still, you should reboot to download mode and see what it says. If it's 1.32.709 as I expect, proceed.
1. Use Titanium Backup to back up all your user data and apps to your external sdcard; remove it.
2. Relock and run the existing RUU for your phone (this will wipe everything). Link is in this thread; follow instructions in the OP.
3. Wait until the OTA shows up and install.
4. Unlock and reroot, then restore your backed up data and apps.
Important
iElvis said:
Since you're s-on, you're already on .709 firmware. There is no way you could be on anything else because it would not flash. Still, you should reboot to download mode and see what it says. If it's 1.32.709 as I expect, proceed.
1. Use Titanium Backup to back up all your user data and apps to your external sdcard; remove it.
2. Relock and run the existing RUU for your phone (this will wipe everything). Link is in this thread; follow instructions in the OP.
3. Wait until the OTA shows up and install.
4. Unlock and reroot, then restore your backed up data and apps.
Click to expand...
Click to collapse
when i entered download mode , my OS showed me 1.40.709.8
so i assume now ,
relock my bootloader , run RUU 1.32.709 then OTA from my phone till i reach 1.40.709.8 and then i use the OTA in this thread to upgrade to 2.10.709.1 :
http://forum.xda-developers.com/showpost.php?p=61995182&postcount=373
then i can Unlock again and install TWRP and so on ,, am i right ??
Amr Nasser said:
when i entered download mode , my OS showed me 1.40.709.8
so i assume now ,
relock my bootloader , run RUU 1.32.709 then OTA from my phone till i reach 1.40.709.8 and then i use the OTA in this thread to upgrade to 2.10.709.1 :
http://forum.xda-developers.com/showpost.php?p=61995182&postcount=373
then i can Unlock again and install TWRP and so on ,, am i right ??
Click to expand...
Click to collapse
Correct. Although I think there is no need to flash the last OTA manually. You can update via the OTA function until you reach 2.10.709.1 since it's been released officially.
Amr Nasser said:
when i entered download mode , my OS showed me 1.40.709.8
so i assume now ,
relock my bootloader , run RUU 1.32.709 then OTA from my phone till i reach 1.40.709.8 and then i use the OTA in this thread to upgrade to 2.10.709.1 :
http://forum.xda-developers.com/showpost.php?p=61995182&postcount=373
then i can Unlock again and install TWRP and so on ,, am i right ??
Click to expand...
Click to collapse
No. If you're on 1.40, the 1.32 RUU will not flash because you're s-on—you can't downgrade. You need to find the 1.40.709 RUU. Let me look around.
Edit: It doesn't seem to be posted anywhere I can find. You need to get back to stock to flash an OTA. I think your only option unless HTC releases a RUU for 2.10.709 may be to s-off and update manually.
iElvis said:
No. If you're on 1.40, the 1.32 RUU will not flash because you're s-on—you can't downgrade. You need to find the 1.40.709 RUU. Let me look around.
Edit: It doesn't seem to be posted anywhere I can find. You need to get back to stock to flash an OTA. I think your only option unless HTC releases a RUU for 2.10.709 may be to s-off and update manually.
Click to expand...
Click to collapse
Actually downgrading with S-ON is possible as long as the bootloader version doesn't need to be downgraded, too (source). Just checked on my phone that the aboot is even with the 2.7.401.1 firmware still on version 1.0.0.0000. So there should be no problem.
Flippy498 said:
Actually downgrading with S-ON is possible as long as the bootloader version doesn't need to be downgraded, too (source). Just checked on my phone that the aboot is even with the 2.7.401.1 firmware still on version 1.0.0.0000. So there should be no problem.
Click to expand...
Click to collapse
That's interesting, thanks. Didn't use to be that way.
Important
Flippy498 said:
Actually downgrading with S-ON is possible as long as the bootloader version doesn't need to be downgraded, too (source). Just checked on my phone that the aboot is even with the 2.7.401.1 firmware still on version 1.0.0.0000. So there should be no problem.
Click to expand...
Click to collapse
i relocked my bootloader then tried to flash RUU with these orders :
fastboot oem rebootRUU
fastboot flash zip 0PJAIMG.zip
i got this error every time :
target reported max download size of 800000000 bytes
Invalid sparse file format at header magi
and i can't flash RUU
any ideas ??
Amr Nasser said:
i relocked my bootloader then tried to flash RUU with these orders :
fastboot oem rebootRUU
fastboot flash zip 0PJAIMG.zip
i got this error every time :
target reported max download size of 800000000 bytes
Invalid sparse file format at header magi
and i can't flash RUU
any ideas ??
Click to expand...
Click to collapse
Download and use HTC_fast boot.exe instead of facebook.exe. you can find HTC_fastboot by searching the forum. Just place it on the same folder as your current fastboot.exe file.
Command are the same except instead of typing "fastboot flash..." It's "HTC_fastboot flash..."
Edit: this is because regular fastboot can't handle files over 2GB.
Important
Flippy498 said:
Actually downgrading with S-ON is possible as long as the bootloader version doesn't need to be downgraded, too (source). Just checked on my phone that the aboot is even with the 2.7.401.1 firmware still on version 1.0.0.0000. So there should be no problem.
Click to expand...
Click to collapse
jollywhitefoot said:
Download and use HTC_fast boot.exe instead of facebook.exe. you can find HTC_fastboot by searching the forum. Just place it on the same folder as your current fastboot.exe file.
Command are the same except instead of typing "fastboot flash..." It's "HTC_fastboot flash..."
Edit: this is because regular fastboot can't handle files over 2GB.
Click to expand...
Click to collapse
that's worked , but now i got this error :
C:\Users\Amr\Desktop\Squabbi's Toolkit\adb>htc_fastboot oem rebootRUU
... OKAY
Execution time is 206(ms)
C:\Users\Amr\Desktop\Squabbi's Toolkit\adb>htc_fastboot flash zip 0PJAIMG.zip
< waiting for device >
sending 'zip'... (250395 KB) OKAY
sending time = 10.592 secs
writing 'zip'... (bootloader) HOSD CL#553039
(bootloader) ERR [SD_UPDATE_ERR] Main version NOT ALLOWED
(bootloader) ERR [SD_UPDATE_ERR] sddownload failed: 19
(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, 19
(bootloader) [email protected]
FAIL19: fail to flash via downloadzip
FAILED (remote: 19: fail to flash via downloadzip)
Execution time is 19(s)
i've S-On , and my bootloader is " RELOCKED " >> if this can help
Edit :
i've " Relocked " My bootloader through
reboot bootloader
then download mode
fastboot oem lock
any ideas ??
Amr Nasser said:
that's worked , but now i got this error :
C:\Users\Amr\Desktop\Squabbi's Toolkit\adb>htc_fastboot oem rebootRUU
... OKAY
Execution time is 206(ms)
C:\Users\Amr\Desktop\Squabbi's Toolkit\adb>htc_fastboot flash zip 0PJAIMG.zip
< waiting for device >
sending 'zip'... (250395 KB) OKAY
sending time = 10.592 secs
writing 'zip'... (bootloader) HOSD CL#553039
(bootloader) ERR [SD_UPDATE_ERR] Main version NOT ALLOWED
(bootloader) ERR [SD_UPDATE_ERR] sddownload failed: 19
(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, 19
(bootloader) [email protected]
FAIL19: fail to flash via downloadzip
FAILED (remote: 19: fail to flash via downloadzip)
Execution time is 19(s)
i've S-On , and my bootloader is " RELOCKED " >> if this can help
Edit :
i've " Relocked " My bootloader through
reboot bootloader
then download mode
fastboot oem lock
any ideas ??
Click to expand...
Click to collapse
Main version not allowed looks like its saying you can't downgrade. Maybe the bootloader version changed.
Amr Nasser said:
that's worked , but now i got this error :
C:\Users\Amr\Desktop\Squabbi's Toolkit\adb>htc_fastboot oem rebootRUU
... OKAY
Execution time is 206(ms)
C:\Users\Amr\Desktop\Squabbi's Toolkit\adb>htc_fastboot flash zip 0PJAIMG.zip
< waiting for device >
sending 'zip'... (250395 KB) OKAY
sending time = 10.592 secs
writing 'zip'... (bootloader) HOSD CL#553039
(bootloader) ERR [SD_UPDATE_ERR] Main version NOT ALLOWED
(bootloader) ERR [SD_UPDATE_ERR] sddownload failed: 19
(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, 19
(bootloader) [email protected]
FAIL19: fail to flash via downloadzip
FAILED (remote: 19: fail to flash via downloadzip)
Execution time is 19(s)
i've S-On , and my bootloader is " RELOCKED " >> if this can help
Edit :
i've " Relocked " My bootloader through
reboot bootloader
then download mode
fastboot oem lock
any ideas ??
Click to expand...
Click to collapse
Which RUU did you try to flash? As far as I know there is one for 1.32.709.6 and one for 1.36.709.3. Best case scenario would be you downloaded a wrong RUU. Worst case scenario would be that downgrading is (in contrast to the post I linked earlier) not aboot dependent and not possible if the software numbers (in your case the 40 you want to downgrade to 32 or 36) differ.
iElvis said:
No. If you're on 1.40, the 1.32 RUU will not flash because you're s-on—you can't downgrade. You need to find the 1.40.709 RUU. Let me look around.
Edit: It doesn't seem to be posted anywhere I can find. You need to get back to stock to flash an OTA. I think your only option unless HTC releases a RUU for 2.10.709 may be to s-off and update manually.
Click to expand...
Click to collapse
mY RECOMMENDATION IS TO WAIT UNTIL DE 2.10 RUU ZIP AND DO THE SCARD METHOD, IS SAFE FAST AND THEN YOU GOT A FULL STOCK CLEAN OF BLOATWARE, ALSO IYOU WILL BECOME OFFICIAL STOCK, YOU WOULD HAVE TO ROOT AGAIN AND FLASH TWRP. NO S-OFF REQUIERED.
Important
jollywhitefoot said:
Main version not allowed looks like its saying you can't downgrade. Maybe the bootloader version changed.
Click to expand...
Click to collapse
i searched the internet and found a nandroid backup which was the same stock rom my device was running
now i restored it via TWRP , everything is perfect now
so now , i've stock 1.40.709.8 base
Unlocked , TWRP Recovery , Rooted , S-On
And i got OTA Notification to update to 2.10.709.1 >> downloaded it >> but it doesn't install >> i know that i must flash stock recovery and " RELOCK " bootloader
can anyone provide me stock recovery for 1.40.709.8 ??
what is the next steps i have to do , because when i " RELOCK " my bootloader >> device start in bootloader mode and don't boot and i have to unlock it again so it can boot , what causes this ??
EDIT :
can i just flash OTA zip file via TWRP or i can't ??
Amr Nasser said:
i searched the internet and found a nandroid backup which was the same stock rom my device was running
now i restored it via TWRP , everything is perfect now
so now , i've stock 1.40.709.8 base
Unlocked , TWRP Recovery , Rooted , S-On
And i got OTA Notification to update to 2.10.709.1 >> downloaded it >> but it doesn't install >> i know that i must flash stock recovery and " RELOCK " bootloader
can anyone provide me stock recovery for 1.40.709.8 ??
what is the next steps i have to do , because when i " RELOCK " my bootloader >> device start in bootloader mode and don't boot and i have to unlock it again so it can boot , what causes this ??
EDIT :
can i just flash OTA zip file via TWRP or i can't ??
Click to expand...
Click to collapse
Flashing OTAs with TWRP isn't possible but you can use the recovery that is placed in the OTA. The OTA can be found in
Code:
/data/data/com.htc.updater/files/
Just copy it to your pc and open the zip file. The recovery can be found in one of the subfolders. Next step would be making a TWRP backup with only recovery checked. After the backup has finished you need to copy it to your pc, too. Now you need to rename the stock recovery you grabbed from the OTA to
Code:
recovery.emmc.win
and replace the recovery in the backup with the renamed file. Next you need to copy the backup back to your phone and restore it with TWRP. When you reboot now TWRP will be replaced by the stock recovery and you should be able to install the OTA. I'm not sure whether it is necessary to relock for the update with S-ON. With S-OFF it is actually not needed.
Edit: I missed the part where you stated that you're still rooted and assumed that you restored a "read-only backup". My instructions won't work until you restored a stock, unrooted and read-only system beforehand.

HTC One M9 RUU gets stuck a 50% on "Sending"

Hello,
I have been having a lot of trouble lately and all of my problems can be fixed by doing an RUU. The issue is my m9 will not take a full RUU it gets stuck at 50% and I get an error 155 in the HTC exe. The phone itself freezes on the screen with red security text a phone with a spinning circular arrow and a green progress bar. After the freeze I can reboot the phone by volup and pwr. I can access bootloader, and download mode. Doing an RUU by the zip file on the sd card in download mode results in "Failed: -2, 8: fail to flash via downloadzip
How I got here.
relocked bootloader without selecting allow oem unlock in dev settings
attempted an RUU and it froze no ROM installed
attempted to unlock bootloader to get error message because of allow unlock not selected in dev settings
attempted to flash using sd card and download mode to get error above
I am s-on and relocked
I am so stuck right now and I need some help
lpcar04 said:
Hello,
I have been having a lot of trouble lately and all of my problems can be fixed by doing an RUU. The issue is my m9 will not take a full RUU it gets stuck at 50% and I get an error 155 in the HTC exe. The phone itself freezes on the screen with red security text a phone with a spinning circular arrow and a green progress bar. After the freeze I can reboot the phone by volup and pwr. I can access bootloader, and download mode. Doing an RUU by the zip file on the sd card in download mode results in "Failed: -2, 8: fail to flash via downloadzip
How I got here.
relocked bootloader without selecting allow oem unlock in dev settings
attempted an RUU and it froze no ROM installed
attempted to unlock bootloader to get error message because of allow unlock not selected in dev settings
attempted to flash using sd card and download mode to get error above
I am s-on and relocked
I am so stuck right now and I need some help
Click to expand...
Click to collapse
ok. so error 155 could be a connectivity issue. Check device manager or try a different USB port.
Also, do you have HTC Sync Manager installed on the PC? It's required for an RUU to run. Otherwise you get 155.
jollywhitefoot said:
ok. so error 155 could be a connectivity issue. Check device manager or try a different USB port.
Also, do you have HTC Sync Manager installed on the PC? It's required for an RUU to run. Otherwise you get 155.
Click to expand...
Click to collapse
I do have sync manager does it need to be running?
lpcar04 said:
I do have sync manager does it need to be running?
Click to expand...
Click to collapse
No. just needs to be installed.
What firmware are you currently on and what is the version of the RUU you're using? People have had issue running an ruu version that is older than their current firmware version.
if this helps i have tried to update firmware using fastboot and I get this messgae
C:\adb>fastboot flash zip firmware.zip
target reported max download size of 800000000 bytes
sending 'zip' (58525 KB)...
OKAY [ 4.028s]
writing 'zip'...
(bootloader) HOSD CL#556164
(bootloader) Perform pre-update
(bootloader) ERR ZIP signature checking failed...
(bootloader) ERR [SD_UPDATE_ERR] sddownload failed: 8
(bootloader) ERR Update zip file failed.
(bootloader) Update zip file OK
(bootloader) ERR ZIP ERROR CODE, 8
(bootloader) [email protected]
FAILED (remote: 8: fail to flash via downloadzip)
finished. total time: 7.881s
jollywhitefoot said:
No. just needs to be installed.
What firmware are you currently on and what is the version of the RUU you're using? People have had issue running an ruu version that is older than their current firmware version.
Click to expand...
Click to collapse
I am on 2.6.651.11 trying to flash that same version because the first time I flashed that It never finished flashing the ROM portion
lpcar04 said:
if this helps i have tried to update firmware using fastboot and I get this messgae
C:\adb>fastboot flash zip firmware.zip
target reported max download size of 800000000 bytes
sending 'zip' (58525 KB)...
OKAY [ 4.028s]
writing 'zip'...
(bootloader) HOSD CL#556164
(bootloader) Perform pre-update
(bootloader) ERR ZIP signature checking failed...
(bootloader) ERR [SD_UPDATE_ERR] sddownload failed: 8
(bootloader) ERR Update zip file failed.
(bootloader) Update zip file OK
(bootloader) ERR ZIP ERROR CODE, 8
(bootloader) [email protected]
FAILED (remote: 8: fail to flash via downloadzip)
finished. total time: 7.881s
Click to expand...
Click to collapse
lpcar04 said:
I am on 2.6.651.11 trying to flash that same version because the first time I flashed that It never finished flashing the ROM portion
Click to expand...
Click to collapse
You can't flash firmware when you're s-on.
For the RUU, maybe open device manager while it's running to make sure the device is recognized throughout the process. I suppose it's possibly a bad download, but I'm not sure the exe would run at all of that was the case.
jollywhitefoot said:
You can't flash firmware when you're s-on.
For the RUU, maybe open device manager while it's running to make sure the device is recognized throughout the process. I suppose it's possibly a bad download, but I'm not sure the exe would run at all of that was the case.
Click to expand...
Click to collapse
ok thanks will try now
lpcar04 said:
ok thanks will try now
Click to expand...
Click to collapse
Ok I just tried it phone stays detected in Device manager the entire time but right before it fails it says "updating signature" in the exe then closes and gives me 155 and phone freezes
Im in the exact same boat. what to do ? how do i revive the phone ?
arm5263 said:
Im in the exact same boat. what to do ? how do i revive the phone ?
Click to expand...
Click to collapse
Meaning you are s-on, relocked, can't boot into the OS, and did not tick "allow oem unlock"?
If that's the case, your only options are to run the ruu for your firmware version or, if that doesn't work or none exists, return it to htc for repair.
Sent from my HTC One M9 using Tapatalk
yes unfortunately I am S-on, bootloader reloacked (to take the official update). It all started when my official HTC RUU crashed mid way!!! it still crashes..I can get to fastboot, recovery download mode etc but just cant RUU any more as it will crash around 62% saying errror 115 ..get the correct RUU for your device ... it stops at fail to update signature or something... Repeated this this multiple times..same result... I was trying to update to 5.1 from 5.01 software. The download mode does say that I have 2.X.502.18 OS but I believe it did not finish installing all...
I have head there is another way of putting the RUU.zip file and renaming it to some specific name and putting it in your sd card and applying update or may be it will automatically install in download mode?
Can someone help me get that zip file for ATT 5.1 version or outline the process ? my last hope!
arm5263 said:
yes unfortunately I am S-on, bootloader reloacked (to take the official update). It all started when my official HTC RUU crashed mid way!!! it still crashes..I can get to fastboot, recovery download mode etc but just cant RUU any more as it will crash around 62% saying errror 115 ..get the correct RUU for your device ... it stops at fail to update signature or something... Repeated this this multiple times..same result... I was trying to update to 5.1 from 5.01 software. The download mode does say that I have 2.X.502.18 OS but I believe it did not finish installing all...
I have head there is another way of putting the RUU.zip file and renaming it to some specific name and putting it in your sd card and applying update or may be it will automatically install in download mode?
Can someone help me get that zip file for ATT 5.1 version or outline the process ? my last hope!
Click to expand...
Click to collapse
Can't you just unlock with htcdev, get TWRP and flash a rom to check "allow oem unlocking"?
I don't really understand what that option does as I was unlocked at version 5.0.2 though, sorry for my ignorance.
arm5263 said:
yes unfortunately I am S-on, bootloader reloacked (to take the official update). It all started when my official HTC RUU crashed mid way!!! it still crashes..I can get to fastboot, recovery download mode etc but just cant RUU any more as it will crash around 62% saying errror 115 ..get the correct RUU for your device ... it stops at fail to update signature or something... Repeated this this multiple times..same result... I was trying to update to 5.1 from 5.01 software. The download mode does say that I have 2.X.502.18 OS but I believe it did not finish installing all...
I have head there is another way of putting the RUU.zip file and renaming it to some specific name and putting it in your sd card and applying update or may be it will automatically install in download mode?
Can someone help me get that zip file for ATT 5.1 version or outline the process ? my last hope!
Click to expand...
Click to collapse
There's a thread on the ATT M9 forms for converting to a dev edition that has the SD install method listed.
Sent from my HTC One M9 using Tapatalk
Ajxx16 said:
There's a thread on the ATT M9 forms for converting to a dev edition that has the SD install method listed.
Sent from my HTC One M9 using Tapatalk
Click to expand...
Click to collapse
@arm5263
You can find it here >> http://forum.xda-developers.com/showthread.php?t=3086948
Sent from my HTC One M9 using Tapatalk
the problem is since the RUU failed in the middle of updating to 5.1 and I already have relocked the bootloader before applying RUU (you have to lock the bootloader or RUU will fail) and now with partially installed 5.1 on my phone, there was a new security feature that was added that youa have to check allow oem unlock on developer settings.
So now I am stcuk, cant got to developer setting as I cant boot to OS, RUU keeps failing on me, can not unlock bootloader as its not even letting me get the token...fails saying "
(bootloader) [KillSwitch] : /dev/block/bootdevice/by-name/frp
(bootloader) [KillSwitch] Last Byte is 0X00, disable unlock
(bootloader) [KillSwitch] oem unlock Turn Off!
any way to allow oem unlock in fastboot instead of through developer settings?
any other clue?
arm5263 said:
the problem is since the RUU failed in the middle of updating to 5.1 and I already have relocked the bootloader before applying RUU (you have to lock the bootloader or RUU will fail) and now with partially installed 5.1 on my phone, there was a new security feature that was added that youa have to check allow oem unlock on developer settings.
So now I am stcuk, cant got to developer setting as I cant boot to OS, RUU keeps failing on me, can not unlock bootloader as its not even letting me get the token...fails saying "
(bootloader) [KillSwitch] : /dev/block/bootdevice/by-name/frp
(bootloader) [KillSwitch] Last Byte is 0X00, disable unlock
(bootloader) [KillSwitch] oem unlock Turn Off!
any way to allow oem unlock in fastboot instead of through developer settings?
any other clue?
Click to expand...
Click to collapse
Did you try the SD-card method ?
Code:
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.
thatts the only thing I have not tried. I will do so tonight and report back.
BTW any place I can grab the ATT 5.1 RUU.zip ? It has to be 2.X.502.18 OS as thats what I see in download screen. With locked bootloder I believe I can only update or re-install the same version.
I extracted rom.zip out of the HTC RUU.EXE file (grabbing it from the temp folder). Do i Just rename it from rom.zip to 0PJAIMG.zip ? I tried to open rom.zip in the arhive app abut it failed to open it ? is that expected?
arm5263 said:
thatts the only thing I have not tried. I will do so tonight and report back.
BTW any place I can grab the ATT 5.1 RUU.zip ? It has to be 2.X.502.18 OS as thats what I see in download screen. With locked bootloder I believe I can only update or re-install the same version.
I extracted rom.zip out of the HTC RUU.EXE file (grabbing it from the temp folder). Do i Just rename it from rom.zip to 0PJAIMG.zip ? I tried to open rom.zip in the arhive app abut it failed to open it ? is that expected?
Click to expand...
Click to collapse
yes rename that rom.zip
no you can't open them their encrypted, and if i recall that RUU was corrupt directly from AT&T
have they updated it ?
http://forum.xda-developers.com/att...ruu-how-to-t3086948/post62629949#post62629949
Sd card method failed too...gives some error say unable to flash from sd card ERROR -2.
Seems like I'll have to return it to ATT or should I send it to HTC ? it is S-on but bootloader is re-locked. I hope ATT wont mind taking it back. I believe its under one year warranty period. I mean was just trying to install 5.1 manually after it failed to take OTA.
Never relock your bootloader on HTC especially on 5.1 and spend $25 to get S-OFF lesson learned!

Categories

Resources