[Help] Restoring to Stock - One (M9) Q&A, Help & Troubleshooting

So I just got my new cell phone, my first time with Android, and a few days ago I messed up. I followed this video to try and root my device : Sakitech's video on 'How to Root your HTC One M9 (Full Guide) - sorry can't post links
It ended up in a bootloop, I tried a few things and ended up installing Android HD Revolution 20.0 as my OS. I did it, but I had one problem : I didn't have any service with my provider anymore
So I panicked, tried a few things and ended up relocking my phone, while still being S-ON. I tried more stuff, without really knowing exactly what I was doing, and now my ADB cannot recognize my phone anymore. (when I do cmd adb devices it doesn't show up) I tried everything : re-installing all the drivers I could, pdaNet, changing environment variables, nothing works. It also cannot go in recovery mode anymore, so it is impossible for me to install the TWRP backup I found which is an exact match to my phone and provider (videotron) :
kernel: lk
product: htc_himaulatt
version: 1.0
version-main: 3.38.1530.2
version-baseband: 01.01_U11440801_96.01.51207G_F
version-bootloader: 1.0.0.0000
mid: 0PJA11000
cid: VIDEO001
Went ahead and bought a micro sd card to try and install a stock rom. The microSD card works because I tried to flash a rom and it gave me the error that I didn't have the right version. I have no stock rom to work with, unless there is a way I can flash the TWRP backup with an sd card.
Again, I cannot
-turn my phone on (softbrick)
-enter recovery mode
-adb devices : list of devices attached empty
-put my phone s-off
-the device also is NOT rooted
I can
-enter download mode
-enter fastboot commands
-enter bootloader mode
-i have a working microsd card
When I go into download mode it's showing :
*** RELOCKED ***
htc_himaulatt PVT S-ON
LK-1.0.0.0000
RADIO-01.01_U11440801_96.01.51207G_F
OpenDSP-15.6.1.00522.8994_1026
OS-3.38.1530.2
Flashing a stock rom seems to be my only option left. Or is it? Please help me, guide me ! I have been working 20+ hours on this thing and it is driving me crazy!
Thanks a lot

Hi, try google: OS-3.38.1530.2...
Then open the last result from freelatestmovies, download the file where you find VIDEO001...
Sorry for my bad English!

Galli97 said:
Hi, try google: OS-3.38.1530.2...
Then open the last result from freelatestmovies, download the file where you find VIDEO001...
Sorry for my bad English!
Click to expand...
Click to collapse
Your English is fine! and thank you for the reply. But as I mentioned in the post, I already downloaded it, but it is a TWRP recovery file. There is no way (I believe) I can use it because I can't get into recovery mode.

max120 said:
Your English is fine! and thank you for the reply. But as I mentioned in the post, I already downloaded it, but it is a TWRP recovery file. There is no way (I believe) I can use it because I can't get into recovery mode.
Click to expand...
Click to collapse
What about this 1.32.1530.7 video001
http://androidruu.com/index.php?developer=M9

Mr Troop said:
What about this 1.32.1530.7 video001
Click to expand...
Click to collapse
I tried that one too, gave me error that it was wrong version. D:
EDIT: I guess I will give the full error code too!
19 RU_MAIN_VER_FAIL os-version in android-info missing or i
19 RU_MAIN_VER_FAIL os-version in android-info missing or i
FAIL19 RU_MAIN_VER_FAIL os-version in android-info missing or i
Again, I think I still have Android Revolution HD 20.0 Custom Rom installed on my phone.

max120 said:
I tried that one too, gave me error that it was wrong version. D:
EDIT: I guess I will give the full error code too!
19 RU_MAIN_VER_FAIL os-version in android-info missing or i
19 RU_MAIN_VER_FAIL os-version in android-info missing or i
FAIL19 RU_MAIN_VER_FAIL os-version in android-info missing or i
Again, I think I still have Android Revolution HD 20.0 Custom Rom installed on my phone.
Click to expand...
Click to collapse
Have you checked this?TWRP Backups
https://docs.google.com/spreadsheets/d/15K6xhb6wtosp9j8yu4xHBZ6n9v5OaFSW6ZVWxC4u_qc/pubhtml#

Mr Troop said:
Have you checked this?TWRP Backups
https://docs.google.com/spreadsheets/d/15K6xhb6wtosp9j8yu4xHBZ6n9v5OaFSW6ZVWxC4u_qc/pubhtml#
Click to expand...
Click to collapse
The main problem is that I cannot boot into recovery mode. My PC also doesn't recognize my phone so no way of doing adb commands. (can still boot in fastboot though)
I have the perfect matching TWRP recovery! I just don't know how to install it...

Related

[Solved] Cannot install CM12 due to outdated bootloader

Hello.
I am currently running ParanoidAndroid 4.6Beta5. Since PA's developement for M8 seems to be dead, I wanted to try CM12.
When I tried to install latest nightly build of CM12 I got a message that my bootloader (3.16) is not supported, and that I need to update it to 3.18 or 3.19.
I googled a bit and found out that in order to update it, I need to restore latest official ROM.
I managed to restore official ROM (3.28.401.6, based on android 4.4.4) but the WiFi wasn't working, so I couldn't do much there. I relocked bootloader and flashed official recovery, and then tried to run RUU.
RUU failed with code [315]. I ran out of ideas and google results to browse.
I unlocked my bootloader again, flashed clockworkmod recovery back, and restored my backup of ParanoidAndroid.
Right now the phone is in the same state as when I was starting.
Here is some basic info about my phone:
Model: HTC ONE M8 16GB Unlocked (purchased on amazon; network free)
CID: HTC_001
Bootloader: Unlocked
Recovery: Clockworkmod Touch v6.0.4.8
S status: S-ON
Click to expand...
Click to collapse
So the basic question is: how to flash CM12 on HTC One M8? I spent so many hours on it without any result, so this thread is my last chance.
Edit: SOLVED!
See http://forum.xda-developers.com/showpost.php?p=58859881&postcount=13 for solution.
ProTofik said:
Hello.
I am currently running ParanoidAndroid 4.6Beta5. Since PA's developement for M8 seems to be dead, I wanted to try CM12.
When I tried to install latest nightly build of CM12 I got a message that my bootloader (3.16) is not supported, and that I need to update it to 3.18 or 3.19.
I googled a bit and found out that in order to update it, I need to restore latest official ROM.
I managed to restore official ROM (3.28.401.6, based on android 4.4.4) but the WiFi wasn't working, so I couldn't do much there. I relocked bootloader and flashed official recovery, and then tried to run RUU.
RUU failed with code [315]. I ran out of ideas and google results to browse.
I unlocked my bootloader again, flashed clockworkmod recovery back, and restored my backup of ParanoidAndroid.
Right now the phone is in the same state as when I was starting.
Here is some basic info about my phone:
So the basic question is: how to flash CM12 on HTC One M8? I spent so many hours on it without any result, so this thread is my last chance.
Click to expand...
Click to collapse
Since you are S-On, you can't just flash the firmware, which is the easiest way. But you can use this method.
I'll give you an RUU to flash. But before you flash it, backup everything that is important to you, because this will wipe your phone.
Download this.
Rename it to 0P6BIMG.zip (that's a zero not the letter)
Put it onto the root of your extSD (By root of I mean just on the card and not a folder)
Boot into bootloader and choose hboot.
Follow the prompts (vol up to flash, power button to reboot when done)
Congratulations! You now have the latest lollipop firmware.
Make sure you delete the renamed zip from your extSD when you are done. If you don't delete it, it will try to update again every time you go back to hboot.
Since you are S-On, you can't just flash the firmware
Click to expand...
Click to collapse
What do you mean by firmware. Bootloader or ROM? I did 'just' flash PA without a problem.
I guess the ROM you liked is the latest official one. By installing it I will get my bootloader updated and then I will be able to flash CM12. Do I get this right? or will I get stuck on stock forever?
Edit: I just tried to flash your image using hboot but it didn't work. Check file attached.
I checked MD5 checksum just to make sure that it did download correctly and it does match with the one on the download page. However, I did notice that when I'm trying to open that zip file on my PC I'm getting an error saying that the archive is corrupted.
ProTofik said:
What do you mean by firmware. Bootloader or ROM? I did 'just' flash PA without a problem.
I guess the ROM you liked is the latest official one. By installing it I will get my bootloader updated and then I will be able to flash CM12. Do I get this right? or will I get stuck on stock forever?
Edit: I just tried to flash your image using hboot but it didn't work. Check file attached.
I checked MD5 checksum just to make sure that it did download correctly and it does match with the one on the download page. However, I did notice that when I'm trying to open that zip file on my PC I'm getting an error saying that the archive is corrupted.
Click to expand...
Click to collapse
It probably didn't work because you are S-On. The method I gave you is generally used by S-Off users to flash firmware, but since it was a signed zip, I thought it might work.
Rename the download I gave you to ROM.zip at put it into your fastboot/platform-tools folder on your PC. Then hook your phone up to your PC and fastbooot.
fastboot devices to make sure your phone and PC are properly connected. (letters and numbers/ser. #)
fastboot oem rebootRUU
fastboot flash zip ROM.zip
EDIT: If you respond here, please use the reply button, I will get a notification that way. I just stumbled back to this thread by chance.
xunholyx said:
It probably didn't work because you are S-On. The method I gave you is generally used by S-Off users to flash firmware, but since it was a signed zip, I thought it might work.
Rename the download I gave you to ROM.zip at put it into your fastboot/platform-tools folder on your PC. Then hook your phone up to your PC and fastbooot.
fastboot devices to make sure your phone and PC are properly connected. (letters and numbers/ser. #)
fastboot oem rebootRUU
fastboot flash zip ROM.zip
EDIT: If you respond here, please use the reply button, I will get a notification that way. I just stumbled back to this thread by chance.
Click to expand...
Click to collapse
Sorry, doesn't work either. I'm getting this error on 3rd command:
C:\Program Files (x86)\Android\android-sdk\platform-tools>fastboot flash zip ROM.zip
target reported max download size of 1830711296 bytes
error: cannot load 'ROM.zip'
Click to expand...
Click to collapse
ProTofik said:
Sorry, doesn't work either. I'm getting this error on 3rd command:
Click to expand...
Click to collapse
Okay. There must be something I am not aware of.
In fastboot: fastboot getvar all and post the readout here. But delete the serial number and IMEI for your own safety. Never post those on a public forum.
xunholyx said:
Okay. There must be something I am not aware of.
In fastboot: fastboot getvar all and post the readout here. But delete the serial number and IMEI for your own safety. Never post those on a public forum.
Click to expand...
Click to collapse
There you go:
C:\Program Files (x86)\Android\android-sdk\platform-tools>fastboot getvar all
(bootloader) version: 0.5
(bootloader) version-bootloader: 3.16.0.0000
(bootloader) version-baseband: 1.15.2133156.UA13G
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main: 1.54.401.5
(bootloader) version-misc: PVT SHIP S-ON
(bootloader) serialno: TOP SECRET
(bootloader) imei: TOP SECRET
(bootloader) imei2: Not Support
(bootloader) meid: 00000000000000
(bootloader) product: m8_ul
(bootloader) platform: hTCBmsm8974
(bootloader) modelid: 0P6B10000
(bootloader) cidnum: HTC__001
(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: ab0efa49
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
all: Done!
finished. total time: 0.063s
Click to expand...
Click to collapse
ProTofik said:
There you go:
Click to expand...
Click to collapse
It should work. Try this download instead. https://drive.google.com/file/d/0B17smFr95pleU2NqcVB3NWxoNnM/view
It's pretty much the same one. Maybe the other one is screwed somehow? Try with this one instead and hopefully you can get updated.
xunholyx said:
It should work. Try this download instead. https://drive.google.com/file/d/0B17smFr95pleU2NqcVB3NWxoNnM/view
It's pretty much the same one. Maybe the other one is screwed somehow? Try with this one instead and hopefully you can get updated.
Click to expand...
Click to collapse
Didn't work but I got a different error this time
C:\Program Files (x86)\Android\android-sdk\platform-tools>fastboot flash zip ROM
.zip
target reported max download size of 1830711296 bytes
sending 'zip' (1536838 KB)...
OKAY [ 43.198s]
writing 'zip'...
(bootloader) zip header checking...
FAILED (remote: 32 header error)
finished. total time: 43.510s
Click to expand...
Click to collapse
Is it not possible to just restore whatever ROM my phone came with and then just do the OTA update?
ProTofik said:
Didn't work but I got a different error this time
Is it not possible to just restore whatever ROM my phone came with and then just do the OTA update?
Click to expand...
Click to collapse
LOL!
Yes. I got caught up in this method. You will also need the stock recovery (more important than the ROM) to use the OTAs. Plus your system partition has to be unmodified. That means no Xposed modules. If you have them, delete them using Xposed framework, then uninstall that as well.
xunholyx said:
LOL!
Yes. I got caught up in this method. You will also need the stock recovery (more important than the ROM) to use the OTAs. Plus your system partition has to be unmodified. That means no Xposed modules. If you have them, delete them using Xposed framework, then uninstall that as well.
Click to expand...
Click to collapse
So if I get this right, I just need to restore my factory ROM and Recovery image, then update it through OTA to lollipop. After that I will be able to flash my custom recovery and ROMs once again, right?
Do you have any links to the ROM and Recovery to my phone?
ProTofik said:
So if I get this right, I just need to restore my factory ROM and Recovery image, then update it through OTA to kitkat. After that I will be able to flash my custom recovery and ROMs once again, right?
Do you have any links to the ROM and Recovery to my phone?
Click to expand...
Click to collapse
Yes. Sorry for the confusion I have caused.
xunholyx said:
LOL!
Yes. I got caught up in this method. You will also need the stock recovery (more important than the ROM) to use the OTAs. Plus your system partition has to be unmodified. That means no Xposed modules. If you have them, delete them using Xposed framework, then uninstall that as well.
Click to expand...
Click to collapse
Success. For future generations, here is what I did:
Using fastboot getvar all command I found out that my phone was still mentally stuck on stock rom 1.54.401.5. Using this info, I downloaded matching nandroid backup of that ROM from here and restored it using my custom recovery.
Then, downloading from the same thread, I flashed back stock recovery image using HTC One 2014 (M8) All-In-One Toolkit V2.0.
I was back on my original ROM with original recovery, so I started doing OTA updates until I got to the official android 5.0.1. These updates updated my bootloader to version 3.19.
Having the bootloader that I needed, I flashed custom recovery and installed CM12 without any problem.
Thanks for help!
Hey, I just found this as I am having the same problem. I am trying to follow your solution, but hit a road block and was wondering if you could help. I ran the command "fastboot getvar all" in fastboot and got output similar to yours. Following your advice I looked at the line (bootloader) version-main: 1.55.605.2 which is different than yours, but okay I just need to find a matching one. But when I go to the link that you had provided I can't find a backup that matches mine (or at least I think I can't). What does it mean for it to match anyway? I'm getting so close! I want cm12!!
I did it over like 6 months ago. I can't remember any more. Sorry.
Anyway, CM12 has way too many problem on HTC ONE M8 to be used as a daily driver. I am using GPE Rom now, which I can recommend.
I just need to find some way to update my bootloader so I can get lollipop up and running. Thanks tho
noo_too_droid said:
Following your advice I looked at the line (bootloader) version-main: 1.55.605.2 which is different than yours, but okay I just need to find a matching one. But when I go to the link that you had provided I can't find a backup that matches mine (or at least I think I can't). What does it mean for it to match anyway?
Click to expand...
Click to collapse
The number needs to match exactly to restore to stock and OTA update the software/firmware (and therefore update hboot).
You can try to post on the following thread, and ask if someone can post the stock nandroid for 1.55.605.2 :http://forum.xda-developers.com/htc-one-m8/help/tutorial-how-to-stock-stock-twrp-t3086860
Otherwise (if you can't get a stock nandroid) you may need to resort to getting s-off in order to update hboot (actually I recommend updating all firmware, not just hboot).
ProTofik said:
Success. For future generations, here is what I did:
Using fastboot getvar all command I found out that my phone was still mentally stuck on stock rom 1.54.401.5.
Click to expand...
Click to collapse
Hi there! I have a problem with my One M8 (S-OFF) - I cant flash any ROM on it. I can restore backups from a CM11 4.4.4 and an ARHD 41.0 but can't upgrade from either. I was looking at your solution and noticed that my ROM number is blank when I run fastboot getvar all. Is this a matter of concern? How can I flash a ROM again?
raghuchary said:
Hi there! I have a problem with my One M8 (S-OFF) - I cant flash any ROM on it. I can restore backups from a CM11 4.4.4 and an ARHD 41.0 but can't upgrade from either. I was looking at your solution and noticed that my ROM number is blank when I run fastboot getvar all. Is this a matter of concern? How can I flash a ROM again?
Click to expand...
Click to collapse
Your version-main is blank because of a bug in some older TWRPs. Update to 2.8.7.0. Flashing the new recovery won't fix version-main being blank until you flash new firmware though.
Also, you probably do have to update your firmware. You say you can't flash any ROMs, but you give no details.
xunholyx said:
Your version-main is blank because of a bug in some older TWRPs. Update to 2.8.7.0. Flashing the new recovery won't fix version-main being blank until you flash new firmware though.
Also, you probably do have to update your firmware. You say you can't flash any ROMs, but you give no details.
Click to expand...
Click to collapse
Apologies, newbie here. I was looking for the correct place to place my request for help, when I found this thread and asked. I will put it up in the Q&A section.

[Help] Restoring to Stock on HTC One M9 Canada

So I just got my new cell phone, my first time with Android, and a few days ago I messed up. I followed this video to try and root my device : Sakitech's video on 'How to Root your HTC One M9 (Full Guide) - sorry can't post links
It ended up in a bootloop, I tried a few things and ended up installing Android HD Revolution 20.0 as my OS. I did it, but I had one problem : I didn't have any service with my provider anymore
So I panicked, tried a few things and ended up relocking my phone, while still being S-ON. I tried more stuff, without really knowing exactly what I was doing, and now my ADB cannot recognize my phone anymore. (when I do cmd adb devices it doesn't show up) I tried everything : re-installing all the drivers I could, pdaNet, changing environment variables, nothing works. It also cannot go in recovery mode anymore, so it is impossible for me to install the TWRP backup I found which is an exact match to my phone and provider (videotron) :
kernel: lk
product: htc_himaulatt
version: 1.0
version-main: 3.38.1530.2
version-baseband: 01.01_U11440801_96.01.51207G_F
version-bootloader: 1.0.0.0000
mid: 0PJA11000
cid: VIDEO001
Went ahead and bought a micro sd card to try and install a stock rom. The microSD card works because I tried to flash a rom and it gave me the error that I didn't have the right version. I have no stock rom to work with, unless there is a way I can flash the TWRP backup with an sd card.
Again, I cannot
-turn my phone on (softbrick)
-enter recovery mode
-adb devices : list of devices attached empty
-put my phone s-off
-the device also is NOT rooted
I can
-enter download mode
-enter fastboot commands
-enter bootloader mode
-i have a working microsd card
When I go into download mode it's showing :
*** RELOCKED ***
htc_himaulatt PVT S-ON
LK-1.0.0.0000
RADIO-01.01_U11440801_96.01.51207G_F
OpenDSP-15.6.1.00522.8994_1026
OS-3.38.1530.2
I already tried this ROM
- The 1.32.1530.7 video001 ( gave me following error code after trying to flash with my microsd card :
19 RU_MAIN_VER_FAIL os-version in android-info missing or i
19 RU_MAIN_VER_FAIL os-version in android-info missing or i
FAIL19 RU_MAIN_VER_FAIL os-version in android-info missing or i
Keep in mind I messed up my device after installing Android Revolution HD 20.0 Custom Rom (don't know if this matters)
Flashing a stock rom seems to be my only option left. Or is it? Please help me, guide me ! I have been working 20+ hours on this thing and it is driving me crazy!
Thanks a lot

HELP! Soft bricked S-ON re-locked bootloader with no system or recovery partitions!

Hi, I am having some serious issues with my HTC One M9 and am wondering if anyone could lend a hand...
A bit of background
Originally, I set out on the task to update to the latest CyanogenMod version, but was having trouble as none of the nightly releases were installing (I was using TWRP and was constantly getting error messages). After much research, I found some instructions to unroot my phone, reinstall the stock image, and then download the OTA update. After this, it said that I would be able to install the latest CyanogenMod build. I went to the HTC ROM download support forum and downloaded the HTC One M9 version 3.35.617.12 ROM, and then proceeded to run the executable. I downloaded the Unlocked/Developer version because I live in Australia and none of options were my carrier (Telstra). This turned out to be a mistake, as after I got half way through the installation, I received the following:
Code:
error 131: customer id error
The main issue was, that the installer already went through the wiping phase, so my system was completely empty!
Where I messed up...
After my system being wiped, I read several forum posts as to why this error was occurring. I was following the instructions on one of the posts, which said to re-lock my boot loader... So, i ran:
Code:
fastboot oem lock
This turned out to be a huge mistake, as not only did it not fix the issue, but I cant even access my recovery partition.
Where I am at now
Currently, I can not access anything on my phone. I only have access to the boot loader (which is locked and is S-ON), as well as download mode. I tried to unlock the boot loader again with:
Code:
fastboot flash unlocktoken Unlock_code.bin
but after completing the steps and rebooting, the phone is still in a re-locked state. I tried to flash twrp back onto the recovery partition, or the stock ROM extracted from the RUU executable, but I would constantly get one of the two errors:
Code:
FAILED (status read failed (Unknown error))
FAILED (data transfer failure (Too many links))
So, I have a soft bricked phone that is S-ON, has a re-locked boot loader, and has no system or recovery partitions. All of the data was backed up, so I am literally open to anything to get it to a working state again.
Extra info about the phone
Code:
htc_himauhl PVT S-ON
LK-1.0.0.0000
RADIO-01.04_U11440601_71.02.50709G_F
OpenDSP-v29.2.6-00492-M8994_0702
OS-2.9.81.5
Sep 30 2015,12:34:35(573756)
(bootloader) kernel: lk
(bootloader) product: htc_himauhl
(bootloader) version: 1.0
(bootloader) imei: 358509062058233
(bootloader) version-main: 2.9.841.5
(bootloader) boot-mode: RUU
(bootloader) version-baseband: 01.04_U11440601_71.02.50709G_F
(bootloader) version-bootloader: 1.0.0.0000
(bootloader) mid: 0PJA10000
(bootloader) cid: TELST001
Thank you anyone who can lend a hand
- Alex
ABorrello said:
Hi, I am having some serious issues with my HTC One M9 and am wondering if anyone could lend a hand...
A bit of background
Originally, I set out on the task to update to the latest CyanogenMod version, but was having trouble as none of the nightly releases were installing (I was using TWRP and was constantly getting error messages). After much research, I found some instructions to unroot my phone, reinstall the stock image, and then download the OTA update. After this, it said that I would be able to install the latest CyanogenMod build. I went to the HTC ROM download support forum and downloaded the HTC One M9 version 3.35.617.12 ROM, and then proceeded to run the executable. I downloaded the Unlocked/Developer version because I live in Australia and none of options were my carrier (Telstra). This turned out to be a mistake, as after I got half way through the installation, I received the following: The main issue was, that the installer already went through the wiping phase, so my system was completely empty!
Where I messed up...
After my system being wiped, I read several forum posts as to why this error was occurring. I was following the instructions on one of the posts, which said to re-lock my boot loader... So, i ran: This turned out to be a huge mistake, as not only did it not fix the issue, but I cant even access my recovery partition.
Where I am at now
Currently, I can not access anything on my phone. I only have access to the boot loader (which is locked and is S-ON), as well as download mode. I tried to unlock the boot loader again with: but after completing the steps and rebooting, the phone is still in a re-locked state. I tried to flash twrp back onto the recovery partition, or the stock ROM extracted from the RUU executable, but I would constantly get one of the two errors:
So, I have a soft bricked phone that is S-ON, has a re-locked boot loader, and has no system or recovery partitions. All of the data was backed up, so I am literally open to anything to get it to a working state again.
Extra info about the phone
Thank you anyone who can lend a hand
- Alex
Click to expand...
Click to collapse
You need to request a new unlock token as the old one won't work again so go through the htcdev steps again to get your new token and see if that works, then you can install TWRP again.
Sent from my HTC 10 using XDA Labs
Tried getting a new unlock token
squ89r97 said:
You need to request a new unlock token as the old one won't work again so go through the htcdev steps again to get your new token and see if that works, then you can install TWRP again.
Sent from my HTC 10 using XDA Labs
Click to expand...
Click to collapse
Ok, I just gave that a shot with out any luck. I was sent a new Unlock_code.bin, but I diff'd the two files and found they were the same. After I ran the command to flash unlocktoken, the screen popped up for me to say 'Yes' or 'No' to unlocking the bootloader. I clicked yes, but then after the restart, my phone booted back into the bootloader saying that it was still in the ***RELOCKED*** state.
Finally was able to unlock the bootloader
squ89r97 said:
You need to request a new unlock token as the old one won't work again so go through the htcdev steps again to get your new token and see if that works, then you can install TWRP again.
Sent from my HTC 10 using XDA Labs
Click to expand...
Click to collapse
Finally I have managed to unlock the bootloader. For some reason, when the phone booted, the bootloader was not "official"?? The software status was modified. To fix it, from the bootloader, I rebooted into download mode; from download mode I booted back into the bootloader (now official); and then rebooted back into download mode. From there, I flashed unlocktoken with Unlock_code.bin and this time after I went through the prompts, the bootloader was unlocked and my phone booted into twrp. I tried to boot into cyanogenmod again, but it is in a boot loop (assumed because the system partition was wiped). I will now look to put stock HTC Sense, download the OTA update, and then upgrade to the newest build of cyanogenmod.

All stock zips corrupt? What am I missing here?

I'm trying to restore stock android on a HTC One M9. I'm an experienced developer but new to the Android scene. So I think there's something obvious I must be missing here.
I've unlocked the bootloader and installed TWRP. I managed to install lineage OS just fine but I need to go back to stock android. I have the correct zip that I'm trying to recover to using TWRP.
The problem is that booting to recovery and trying to install from a USB OTG gives me:
Code:
Installing zip file '/usb_otg/0PJAIMG_HIMA_UHL_M60_SENSE70_MR_Vodafone_UK_3.35.161.12_Radio_01.01_U11440792_96.00.51201G_F_release_464298_signed.zip'
Checking for MD5 file...
Skipping MD5 check: no MD5 file found
"Zip file is corrupt!"
Error installing zip file '/usb_otg/0PJAIMG_HIMA_UHL_M60_SENSE70_MR_Vodafone_UK_3.35.161.12_Radio_01.01_U11440792_96.00.51201G_F_release_464298_signed.zip'
Updateing partition details...
...done
Now it gets weird.
I checked the MD5sum, it's fine, the file is perfect. I tried to unzip it with 7-zip:
Code:
---------------------------
7-Zip
Can not open file 'C:\Users\dave\Downloads\0PJAIMG_HIMA_UHL_M60_SENSE70_MR_Vodafone_UK_3.35.161.12_Radio_01.01_U11440792_96.00.51201G_F_release_464298_signed.zip' as archive
So I thought that maybe the file was just corrupt on the filehost. So I downloaded two other different files. Guess what? They're "corrupt" too, even though their MD5 hashes match too.
What's going on here? How is every HTC One M9 zip corrupt somehow?
Or am I just not getting something?
I'm dual booting Win10 and Ubuntu, both with adb etc. installed, so I can try any other methods you can suggest.
I'd really appreciate any tips or suggestions.
Thanks.
Dav1dJones said:
I'm trying to restore stock android on a HTC One M9. I'm an experienced developer but new to the Android scene. So I think there's something obvious I must be missing here.
I've unlocked the bootloader and installed TWRP. I managed to install lineage OS just fine but I need to go back to stock android. I have the correct zip that I'm trying to recover to using TWRP.
The problem is that booting to recovery and trying to install from a USB OTG gives me:
Now it gets weird.
I checked the MD5sum, it's fine, the file is perfect. I tried to unzip it with 7-zip:
So I thought that maybe the file was just corrupt on the filehost. So I downloaded two other different files. Guess what? They're "corrupt" too, even though their MD5 hashes match too.
What's going on here? How is every HTC One M9 zip corrupt somehow?
Or am I just not getting something?
I'm dual booting Win10 and Ubuntu, both with adb etc. installed, so I can try any other methods you can suggest.
I'd really appreciate any tips or suggestions.
Thanks.
Click to expand...
Click to collapse
I'm not sure about this, this is only my opinion but if you've tried to down grade from lineage OS 14.1 (7.1.2) you can't flash a OTG of firmware version 3.x because it's android 6.0.
As I said, I might be wrong but I'm sure I've read here you can't downgrade that way.
I can go from LOS 14.1 to firmware version 4.x (7.0) as I've done it, and it does return to stock nougat.
Thanks for the reply. I'm upgrading from TWRP 3.1.1-0. I don't think it cares what version of OS is on the phone. I'm not doing an OTA.
Dav1dJones said:
Thanks for the reply. I'm upgrading from TWRP 3.1.1-0. I don't think it cares what version of OS is on the phone. I'm not doing an OTA.
Click to expand...
Click to collapse
I understand that, my point was I don't think you can downgrade from LOS 14.1 to firmware 3.x
I can return to stock from LOS 14.1 to firmware version 4.x but not to version 3.x, I have the same errors as you described.
I have been running LOS 15 (android 8.0) and successfully returned to firmware version 4.x also as LOS 15 is not 100% stable right now.
I'm pretty sure you can't downgrade due to encryption being different between 3.x and 4.x firmware
Please read the ReadMe thread. You can't flash RUUs via Recovery Mode and you aren't able to unzip them since they're encrypted.
Sent from my HTC One M9 using XDA Labs
Flippy498 said:
Please read the ReadMe thread. You can't flash RUUs via Recovery Mode and you aren't able to unzip them since they're encrypted.
Sent from my HTC One M9 using XDA Labs
Click to expand...
Click to collapse
Thanks Flippy, I've thoroughly read the ReadMe thread now. I didn't realise the zips were encrypted at first, thanks for that.
I tried the ARUWizard method which looked promising for a while, it froze at 44% and never resumed after a couple of hours of waiting. I tried it again and it made it to 55% but no more. I tried it several more times, with different USB ports and cables, running cmd as administrator. No luck.
So I tried using HTC_Fastboot:
Code:
D:\ADB_20170512_Fastboot_20170512_HtcFastboot_20150529>htc_fastboot.exe flash zip 0PJAIMG_HIMA_UHL_M60_SENSE70_HTC_Europe_[B]3.35.401.12[/B]_Radio_
01.01_U11440792_97.00.51203G_F_release_signed.zip
htc_fastboot v3.0.9.2 (2015-05-29)
target rom version: 3.35.401.12
found large-zip header, file count: 8
processing file 1/8...
sending 'zip' (134725 KB)...
OKAY [ 13.705s]
writing 'zip'...
(bootloader) HOSD CL#671447
FAILED (remote: 9 RU_SECURITY_FAIL zip from usb command in download mode)
finished. total time: 14.719s
htc_fastboot finished. total time: 36.927s
It's S-OFF, this is my getvar all:
Code:
[email protected]:~/Downloads# ./fastboot getvar all
kernel: lk
product: htc_himauhl
version: 1.0
version-main: [B]3.35.161.12[/B]
boot-mode: download
version-baseband: 01.01_U11440792_96.00.51201G_F
version-bootloader: 1.0.0.0000
mid: 0PJA10000
cid: VODAP001
I don't have an sdcard in the phone, I'm going to try to pick one up tomorrow so I can attempt that method. Otherwise do you have any other suggestions?
Appreciate it.
The RUU isn't compatible with your current CID. You have a Vodafone-branded phone and are trying to flash an European unbranded RUU. You need to change the phone's CID (which requires S-OFF) if you want to de-brand the phone.
If you want to keep the current firmware then you need to look for a RUU that matches your "version-main".
Sent from my HTC One M9 using XDA Labs
You definitely need an sdcard. Just rename the zip to match the mid, copy to the sdcard, put sdcard in the phone and boot the download mode. Follow the prompts. You'll be amazed how easy it is.
Ps you can use any micro sdcard. I used a 128gb sandisk and it worked fine.
shivadow said:
You definitely need an sdcard. Just rename the zip to match the mid, copy to the sdcard, put sdcard in the phone and boot the download mode. Follow the prompts. You'll be amazed how easy it is.
Ps you can use any micro sdcard. I used a 128gb sandisk and it worked fine.
Click to expand...
Click to collapse
Awsome. That did it guys! Thanks a lot. I'll stick around the site and help out to give back.
shivadow said:
You definitely need an sdcard. Just rename the zip to match the mid, copy to the sdcard, put sdcard in the phone and boot the download mode. Follow the prompts. You'll be amazed how easy it is.
Ps you can use any micro sdcard. I used a 128gb sandisk and it worked fine.
Click to expand...
Click to collapse
hi!!! can you explain me the process please??

HTC 10 flashing (again)

Hi everyone,
I am sorry for asking for help, as I am really stock and don't know what to try to fix the problem.
I know that members posted similar issues but I tried about everything but no success.
I have HTC 10 (UK) , Unlocked, S-ON. I tried to flash it with Customer ROM (Purefusion) and now lost the baseband.
I know, it was not right to do that , as I knew later that it has to be downgraded to nougat and then flash, as I was on the latest FW (oreo 8.0 I believe).
I tried to go back to stock rom for the mobile by using RUU but no luck , I get the error Message (error 132 Authentication error).I have no recovery from the original FW.
I did run Fastboot getvar all and I got the following:
C:\platform-tools> Fastboot getvar all
(bootloader) kernel: lk
(bootloader) product: htc_pmeuhl
(bootloader) version: 1.0
(bootloader) max-download-size: 1578400000
(bootloader) serialno: xxxxxxxxx
(bootloader) slot-count: 0
(bootloader) current-slot:
(bootloader) imei: xxxxxxxxxxxxxxxx
(bootloader) version-main: 3.16.401.2
(bootloader) boot-mode: download
(bootloader) version-baseband: [email protected]
(bootloader) version-bootloader: 1.0.0.0000
(bootloader) mid: 2PS620000
(bootloader) cid: HTC__001
all:
finished. total time: 0.031s
As mentioned I tried the RUU for HTC__001 ( and different RUUs) but get always the message (error 132 Authentication error).
What I am doing wrong? Does anyone have the right link for the right Ruu for me, this would be fantastic, as my HTC is useless at the moment.
Many thanks
Madona33
madona33 said:
Hi everyone,
I am sorry for asking for help, as I am really stock and don't know what to try to fix the problem.
I know that members posted similar issues but I tried about everything but no success.
I have HTC 10 (UK) , Unlocked, S-ON. I tried to flash it with Customer ROM (Purefusion) and now lost the baseband.
I know, it was not right to do that , as I knew later that it has to be downgraded to nougat and then flash, as I was on the latest FW (oreo 8.0 I believe).
I tried to go back to stock rom for the mobile by using RUU but no luck , I get the error Message (error 132 Authentication error).I have no recovery from the original FW.
I did run Fastboot getvar all and I got the following:
C:\platform-tools> Fastboot getvar all
(bootloader) kernel: lk
(bootloader) product: htc_pmeuhl
(bootloader) version: 1.0
(bootloader) max-download-size: 1578400000
(bootloader) serialno: xxxxxxxxx
(bootloader) slot-count: 0
(bootloader) current-slot:
(bootloader) imei: xxxxxxxxxxxxxxxx
(bootloader) version-main: 3.16.401.2
(bootloader) boot-mode: download
(bootloader) version-baseband: [email protected]
(bootloader) version-bootloader: 1.0.0.0000
(bootloader) mid: 2PS620000
(bootloader) cid: HTC__001
all:
finished. total time: 0.031s
As mentioned I tried the RUU for HTC__001 ( and different RUUs) but get always the message (error 132 Authentication error).
What I am doing wrong? Does anyone have the right link for the right Ruu for me, this would be fantastic, as my HTC is useless at the moment.
Many thanks
Madona33
Click to expand...
Click to collapse
You need OREO RUU
https://androidfilehost.com/?fid=673956719939830809
To flash RUU:
Rename the zip to 2PS6IMG.zip
Place on ex sdcard
Boot to download mode
Press vol up to flash.
yldlj said:
You need OREO RUU
https://androidfilehost.com/?fid=673956719939830809
To flash RUU:
Rename the zip to 2PS6IMG.zip
Place on ex sdcard
Boot to download mode
Press vol up to flash.
Click to expand...
Click to collapse
Hi yldlj,
Many thanks for your help.
I downloaded different RUUs for the CID and mid I have , renamed them to 2PS6IMG.zip, placed them on ex SDcard, tried to flash them by using the latest TWRP ( because I don't get the option " Press vol up to flash" in download mode ) but I get the message in TWRP " zip signature verification failed, error installing ..........., invalid zip file format".
I tried the following RUUs but always the same Error messages
https://www.androidfilehost.com/?fid=24533100289591083
https://forum.xda-developers.com/htc-10/how-to/htc-10-stock-rom-ruu-t3378240/post66830893#post66830893
is there any other way to flash those Ruus? would it be better by using adb ?
Or, Why don't I get the option " Press vol up to flash " in download mode?
Many thanks for any suggestion or help.
Madona33
I bet you named it. zip.zip ......remove 1 .zip and try again.
You can not flash it from twrp. Must be done from download mode. It will be picked up automatically but i bet the filename is wrong. Disable the "hide file extensions" in windows.
Many thanks Mr hofs, I will give it a try after work.
I will have a look at the file name but I am sure is't not xxxx.zip.zip (I hope I am wrong).
I'll give it a try and let you all know.
Many thanks again
Mr Hofs said:
I bet you named it. zip.zip ......remove 1 .zip and try again.
You can not flash it from twrp. Must be done from download mode. It will be picked up automatically but i bet the filename is wrong. Disable the "hide file extensions" in windows.
Click to expand...
Click to collapse
Hi,
I have no idea why it wouldn't' work? I've put the zip file on External SD and always I end up with the message shown in the picture.
I tried about all RUUs for HTC__001 from the link in my first post but always the same result.
Would it help if I relock the mobile?
If I need to relock it, then what's the best way to do it, as TWRP is installed ? What's the best way to do it?
BTW, I flashed a custom Rom (lineage 14) and it went ok but I lost the baseband imei , So I have to get it back to stock rom?
Many thanks
Madona33
madona33 said:
Hi,
I have no idea why it wouldn't' work? I've put the zip file on External SD and always I end up with the message shown in the picture.
I tried about all RUUs for HTC__001 from the link in my first post but always the same result.
Would it help if I relock the mobile?
If I need to relock it, then what's the best way to do it, as TWRP is installed ? What's the best way to do it?
BTW, I flashed a custom Rom (lineage 14) and it went ok but I lost the baseband imei , So I have to get it back to stock rom?
Many thanks
Madona33
Click to expand...
Click to collapse
Never relock bootloader. I don't know why the RUU won't install. Are you trying to install the ruu I linked because that's the one you need and no other will work. Did you make sure windows isn't hiding file extensions? Try deleting the .zip so just name the RUU 2PS6IMG. Are you trying to flash from download mode? You can't flash from twrp. Another ootion would be to flash leedroid Oreo ROM. Your IMEI and baseband will come back if you do.
yldlj said:
Never relock bootloader. I don't know why the RUU won't install. Are you trying to install the ruu I linked because that's the one you need and no other will work. Did you make sure windows isn't hiding file extensions? Try deleting the .zip so just name the RUU 2PS6IMG. Are you trying to flash from download mode? You can't flash from twrp. Another ootion would be to flash leedroid Oreo ROM. Your IMEI and baseband will come back if you do.
Click to expand...
Click to collapse
Many thanks yldlj for your reply,
I tried every RUU in the link in my first post for HIC__001 and always the same error / https://forum.xda-developers.com/htc...3#post66830893 (I wish I could upload the error image ), it looks like I couldn't attach any picture or file to the post.
I did it in download mode and got always the same error but I don't have to go back to stock rom, it's just I wanted to be able to try other custom roms.If it works with leedriod oreo (or any other rom ) without losing the IMEI and baseband then I would give it a try.
I have no idea why I can't attach pictures from my laptop without uploading it to a server. The following is the whats written in the error message:
end ui_updating, press power key to contin..
SD MOUNTED
OTG NOT MOUNTED
file /mnt/media_rw/ext_sd/2PS6IMG.zip
file /mnt/media_rw/ext_sd/2PS6IMG.zip
press VolUp to start flash
press VolDown to cancel
19 RU_MAIN_VER_FAIL os-version in android-info missing or i
19 RU_MAIN_VER_FAIL os-version in android-info missing or i
FAIL 19 RU_MAIN_VER_FAIL os-version in android-info missing or i
press power to continue
Many thanks
Madona33
madona33 said:
Many thanks yldlj for your reply,
I tried every RUU in the link in my first post for HIC__001 and always the same error / https://forum.xda-developers.com/htc...3#post66830893 (I wish I could upload the error image ), it looks like I couldn't attach any picture or file to the post.
I did it in download mode and got always the same error but I don't have to go back to stock rom, it's just I wanted to be able to try other custom roms.If it works with leedriod oreo (or any other rom ) without losing the IMEI and baseband then I would give it a try.
I have no idea why I can't attach pictures from my laptop without uploading it to a server. The following is the whats written in the error message:
end ui_updating, press power key to contin..
SD MOUNTED
OTG NOT MOUNTED
file /mnt/media_rw/ext_sd/2PS6IMG.zip
file /mnt/media_rw/ext_sd/2PS6IMG.zip
press VolUp to start flash
press VolDown to cancel
19 RU_MAIN_VER_FAIL os-version in android-info missing or i
19 RU_MAIN_VER_FAIL os-version in android-info missing or i
FAIL 19 RU_MAIN_VER_FAIL os-version in android-info missing or i
press power to continue
Many thanks
Madona33
Click to expand...
Click to collapse
Your flashing the wrong RUU. You can't downgrade while S ON that's what the error is. You need 3.16.401 which I linked you too. Your baseband and IMEI will come back if you flash leedroid or maximus.
yldlj said:
Your flashing the wrong RUU. You can't downgrade while S ON that's what the error is. You need 3.16.401 which I linked you too. Your baseband and IMEI will come back if you flash leedroid or maximus.
Click to expand...
Click to collapse
Many thanks You are a star.
I will give it a try (after work) and report back.
Madona33
Dear yldlj,
Many thanks for your excellent help, I pushed maximusHD and it worked from first time. Brilliant.
Thanks again
Madona33
hi, need some help here
can`t get in download mode. not from cmd not from pushing buttons.
any suggestions?
Bitza said:
hi, need some help here
can`t get in download mode. not from cmd not from pushing buttons.
any suggestions?
Click to expand...
Click to collapse
Hi,
Sorry for the delay,
What do you get by pressing PW+ V-Down?
madona33 said:
Hi,
Sorry for the delay,
What do you get by pressing PW+ V-Down?
Click to expand...
Click to collapse
nothing. just start normaly
only if i press all 3 i get a menu but nothing about download
Bitza said:
nothing. just start normaly
only if i press all 3 i get a menu but nothing about download
Click to expand...
Click to collapse
Is it possible to send a pic for the menu you get after pressing all 3
Many thanks
madona33 said:
Is it possible to send a pic for the menu you get after pressing all 3
Many thanks
Click to expand...
Click to collapse
hi, sorry for delay this is the menu. hope it works
imgur. com/a/f8fcNdN
*delete space after imgur.

Categories

Resources