Related
Starting from a new stock Desire HD, I have attempted gaining root access using Visionary (r14). Temproot worked, but permroot apparently failed. My device rebooted, but didn't come back up - I get the phone-with-red-triangle screen.
If I pull the battery and then boot into the bootloader, using the Image CRC menu option I can see that my system partition has been modified (but all other partitions are unchanged):
<redacted>
Do I have any options available to me now, or am I screwed?
My phone is a stock Desire HD A9191 (stock HBOOT S-ON, stock recovery, stock radio S-ON):
Code:
Branded (Vodafone Australia)
<redacted>
Is there magic process that can be done to re-flash the faulty system partition?
Any help would be hugely appreciated. Sorry to make this my first post to the forums, but I'm well and truely stuck... hopefully not permanently, but I have that sinking feeling
What happens when on the red triangle screen, you HOLD the volume up, and then press power button? I think this will take you to stock recovery. Reboot if you have the option, or Wipe data & factory reset.
Sent from my Desire HD using XDA App
Thanks UpInTheAir.
At the red-triangle screen I press vol-up and power, and it displays the Android system recovery screen. It shows the options:
1 Reboot system now
2 Apply sdcard:update.zip
3 Wipe data/factory reset
4 Wipe cache partition
I've tried (3) and (4) and then rebooted, but it does not help - the phone continues to boot into the red-triangle screen.
It looks to me like the system partition was incorrectly modified / corrupted by visionary, and somehow flashing it back to a known-good condition seems like the only way forward...
Is it possible to use option (2) to flash a new rom if I package it up and put it on the SD card somehow? My phone is branded vodafone-australia, and they have not published any RUU update files yet. I gather that using a WWE rom update from HTC will not be possible?
Try DL think stock 1.32 RUU
Rename to PD98IMG.zip (not .zip.zip, do not extract)
Put PD98IMG.zip onto sdcard
HOLD volume down, and power on -> this will boot into Bootloader
Start update and follow the prompts
I hope this helps, but as always, please don't hold me responsible if anything goes pear-shaped.
Thanks again. Downloading now, and will update this post when I've tried it out. Cheers.
You'll need to make a Goldcard to flash this ROM (if your phone is branded).
http://android.modaco.com/content/general-discussion/305672/creating-a-goldcard/
Also for more help follow this thread http://forum.xda-developers.com/showthread.php?t=1035027 (follow the bit about flashing the PD98IMG.zip)
a33a said:
You'll need to make a Goldcard to flash this ROM (if your phone is branded).
http://android.modaco.com/content/general-discussion/305672/creating-a-goldcard/
Also for more help follow this thread http://forum.xda-developers.com/showthread.php?t=1035027 (follow the bit about flashing the PD98IMG.zip)
Click to expand...
Click to collapse
Won't the Gold Card be useless if the system partition is already corrupted?
This was to be done before using visionary?
Thanks a33a.
My phone doesn't boot (I can only get to the bootloader menu, or the red-triangle screen). I tried talking to it with ADB, but it says "device offline".
The instructions for making a gold-card appear to require you using adb to talk to the phone to get it to tell you some long id number... I don't think it's possible for me to do this.
Is there a work around or some other way?
Did the PD98IMG.zip work?
Did u update the HTC drivers for the usb before. The adb needs the latest drivers for Windows to communicate.
If u can't create a goldcard than u should try and borrow 1 from a friend that already rooted his dhd. It might work that way. If not than u have to bring it to HTC and have it reflash.
When you tried ADB;
1. Make sure your phone is in FASTBOOT USB (HOLD volume down + power on -> Bootloader)
2. Connect to PC
3. CMD (Command Prompt) cd\............android\android-sdk-windows\tools\ (or whewrever the adb.exe & fastboot.exe is)
4. Type fastboot devices
5. You should get pyour device serial number HT............
But as I said, if the partition is screwed up, it is pointless with the goldcard?........
Edit: Memory coming back......You only need the Gold Card if you flash a stock ROM and require OTA updates? Without this you can't get the updates. So not having it shouldn't stop the flash?
Unfortunately the PD98IMG.zip did not work.
As suspected, the bootloader found it, loaded it, checked it, then displayed:
Code:
CID incorrect!
Update Fail!
Press <POWER> to reboot.
I haven't tried creating the gold card yet. I'm not holding out much hope, because with the device not booting into the OS, I don't think you can get adb to connect.
When the phone was working, I was able to use ADB to install apps and run commands from the shell, so I'm pretty sure the USB drivers are OK (I've installed the latest HTC Sync, which included the usb drivers and adb.exe).
I don't know anyone with another Desire HD, let alone anyone who has created a gold card... maybe someone on here with one can zip up the files and send them to me?
Did you try through fastboot? Sorry I don't have one as wasn't carrier branded. I never had intention to keep the stock, so never bothered. I will keep an eye open for ideas though.
I suppose you would get the same if you rename it to update.zip & try flash through the recovery / update. My guess is yes, but doesn't hurt to try?
Sent from my Desire HD using XDA App
I'm just trying the fastboot method now (downloading and installing the SDK as I type).
I'll let you know how it goes.
Thanks for sticking around to help out.
If no good, look on the bright side. There will be no evidence on your phone about the attempted root, still s-on etc. With the system partition corrupt, you could send it back and claim ignorance, not sure what happened. I would think you would have a very goof chance of repair (htc flash) or replacement.
Well hope you have some luck first though.
Edit: meant s-on
Sent from my Desire HD using XDA App
Yeah, I was considering that -- all partitions except system are unmodified and stock, and both S-flags are S-ON. Using the bootloader to wipe cache and data, should erase any evidence that I was attempting to root the phone.
Fingers crossed they will replace / repair under warranty -- if it comes to that!
Okay, as per the earlier post, I've put the phone into FASTBOOT USB mode, and used the Android SDK fastboot.exe program, which gave me back a 12 digit number beginning with "HTxxxxxxxxxx".
However, the linked gold-card creation guide says to run "adb shell cat /sys/... " which does not work -- adb returns "error: device not found". Presumably this is because you can't talk to the phone when it's in the bootloader.
What should I do with the "HTxxxxxxxxxx" value? The goldcard guide doesn't mention it as far as I can tell...
That's your device serial number, meaning you can ay least talk with it via fastboot. Try substituting 'fastboot' instead of 'adb'. Your connected in Fastboot, ADB command is when your phone is powered up and connected in charge only, usb debugging enabled.
Sent from my Desire HD using XDA App
Okay, I've tried a couple more things:
Renaming PD98IMG.zip to update.zip and selecting "Apply sdcard:update.zip" from the recovery menu. This failed, displaying "E:Can't open /cache/recovery/command ---- invalid operation ----"
Then I tried issuing ADB commands using fastboot.exe, but fastboot doesn't support the shell parameter, so "fastboot shell cat /sys/...." doesn't work.
It does look like fastboot can be used to flash various parts of the device though... I wonder if this is worth looking into a bit more?
ie: fastboot's usage output says:
Code:
commands:
update <filename> reflash device from update.zip
flashall flash boot + recovery + system
flash <partition> [ <filename> ] write a file to a flash partition
erase <partition> erase a flash partition
getvar <variable> display a bootloader variable
boot <kernel> [ <ramdisk> ] download and boot kernel
flash:raw boot <kernel> [ <ramdisk> ] create bootimage and flash it
devices list all connected devices
continue continue with autoboot
reboot reboot device normally
reboot-bootloader reboot device into bootloader
I tried "fastboot update update.zip" giving it the renamed PD98IMG.zip file, but it complained of:
Code:
Whoops: didn't find expected signature
read_central_directory_entry failed
error: failed to access zipdata in '....garbage characters...'
Does anyone know how and what to feed to fastboot to get to force-flash the system partition?
UPDATE: yeah I thought this might have been too easy... This link suggests that you can't flash a production device with fastboot unless you already have ENG S-OFF (which I don't).
http://wiki.cyanogenmod.com/index.php?title=Fastboot
I have an international One x, I don't know what I did wrong but my phone never gets past the ROM's logo screen. I've tried flashing about 6 different ROMs that all worked before but the boot.img file never flashes. When I type the command in fastboot, it says it flashed successfully on the pc but the phone just shuts down. When I open it again, it doesn't boot. I also tried restoring to a stock nandroid backup (from here: http://forum.xda-developers.com/show....php?t=1975140 ) and. I tried restoring to a backup I'd made a month ago but neither worked.
I tried looking for a RUU to run but none worked or are compatible because I can't find one higher than 3.16 and I have S-ON so can't flash anything below that. I looked on the internet in general and here http://www.androidruu.com/?developer=Endeavor
Info about the phone:
It's S-ON with an unlocked bootloader
hboot 1.39.0000
CID HTC__J15
Software version 3.16.415.4
radio-5.1204.162.29
Posting here is a last resort, I've tried everything I can think of over the past 3 weeks and I don't know what to do
Hadya said:
I have an international One x, I don't know what I did wrong but my phone never gets past the ROM's logo screen. I've tried flashing about 6 different ROMs that all worked before but the boot.img file never flashes. When I type the command in fastboot, it says it flashed successfully on the pc but the phone just shuts down. When I open it again, it doesn't boot. I also tried restoring to a stock nandroid backup (from here: http://forum.xda-developers.com/show....php?t=1975140 ) and. I tried restoring to a backup I'd made a month ago but neither worked.
I tried looking for a RUU to run but none worked or are compatible because I can't find one higher than 3.16 and I have S-ON so can't flash anything below that. I looked on the internet in general and here http://www.androidruu.com/?developer=Endeavor
Info about the phone:
It's S-ON with an unlocked bootloader
hboot 1.39.0000
CID HTC__J15
Software version 3.16.415.4
radio-5.1204.162.29
Posting here is a last resort, I've tried everything I can think of over the past 3 weeks and I don't know what to do
Click to expand...
Click to collapse
Wow what a poem first thing as you may know, flashing the boot.img is a really important step to do if you want your rom to work... I see that you can't do it but i have just a question, does your phone shuts down immediately after you type the command or at the end of the flashing process?
Sent from my HTC One X using xda app-developers app
matt95 said:
Wow what a poem first thing as you may know, flashing the boot.img is a really important step to do if you want your rom to work... I see that you can't do it but i have just a question, does your phone shuts down immediately after you type the command or at the end of the flashing process?
Sent from my HTC One X using xda app-developers app
Click to expand...
Click to collapse
Shuts down the second I press enter.
The only other thing I can think of is trying to flash the ROM whose boot.img last successfully flashed but I don't know which one that is. Is there a way to find out?
Hadya said:
Shuts down the second I press enter.
The only other thing I can think of is trying to flash the ROM whose boot.img last successfully flashed but I don't know which one that is. Is there a way to find out?
Click to expand...
Click to collapse
That could be a solution but there's no way to find out the Rom you've installed previously...
matt95 said:
That could be a solution but there's no way to find out the Rom you've installed previously...
Click to expand...
Click to collapse
Okay. Do you have any suggestions then?
Is there a way that I can change the files inside the RUU?
Hadya said:
Is there a way that I can change the files inside the RUU?
Click to expand...
Click to collapse
Don't think so, and it would be very dangerous for your phone
matt95 said:
Don't think so, and it would be very dangerous for your phone
Click to expand...
Click to collapse
So I should just give up for now and wait for a suitable RUU?
Hadya said:
So I should just give up for now and wait for a suitable RUU?
Click to expand...
Click to collapse
That's your only option as long as i know
Maybe you can try on a different pc or reinstall drivers?
Sent from my HTC One X using xda app-developers app
Stefan0vic said:
Maybe you can try on a different pc or reinstall drivers?
Sent from my HTC One X using xda app-developers app
Click to expand...
Click to collapse
I've tried re-installing the drivers but I don't see how a different pc would help since there are no compatible RUUs
You can use a nandroid backup
http://forum.xda-developers.com/showthread.php?t=1975140
Sent from my HTC One X using xda app-developers app
Hi Hadya!
I guess you should start from scratch. U will lost all data on your device but after all it is working again.
!!! IMPORTANT !!!
1. Make sure your device is fully charged for this. Otherwise it will be a big stress to get it back to work.
2. Copy all data from the SDCard away because you will loose EVERYTHING!!!
3. You need your unlock_token.bin to unlock your device again. If you don't have it available please request this from the HTC web site.
Now, let's recover your device...
1. Download this file and extract it.
http://ul.to/j4j1cpft
2. Enter fastboot
Press POWER & VOLUME DOWN KEY and enter the bootloader
3. Connect your device to PC for the 1st Recover
Test if your device is available via fastboot and use this command:
fastboot devices
You should see your device with Serial number
Now lock your device back with command:
fastboot oem lock
You will see a short message and your bootloader is locked. You should see the message on top of the bootloader with RELOCKED.
That's fine.
Now start the ARUWIZARD from the downloade ZIP file and flash your device as you know it.
There is a ROM file inside which is same as your current hboot. This flash procedure will allign your partitions on the device and it might be that you will loose all SDCard files. I'm pretty sure that you will loose it.
The ROM contains only hboot, recovery and boot Images but it will "RECOVER" your device.
4. Unlock your device
After this procedure you are ready to unlock your device again. Enter fastboot and flash your unlock token again.
fastboot flash unlocktoken unlock_token.bin
After the device is unlocked flash boot and recovery image of your choice within this way:
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot erase Cache
After this you have a half running device.
5. Second Recover Step
Now you need to do a final repair for the device. For this you need to download Android Revolution HD 31.x ROM.
1. Put this ROM on your SDCard
2. Enter recovery and flash this ROM
3. Flash the boot.img to your device
4. Start your device and ignore the 1st Setup steps.
5. Now go to:
SETTINGS > Backup & reset > Reset phone (touch this)
6. On the next page scroll down to the bottom and select:
"Erase Music, Picture... on the storage"
7. Press "OK" and wait
When the phone is back again device is fully recovered. The SDCard is reformated and all partitons are back again.
Now you can do everything you want with your device again.
Best regards!
MrT69 said:
Hi Hadya!
I guess you should start from scratch. U will lost all data on your device but after all it is working again.
!!! IMPORTANT !!!
1. Make sure your device is fully charged for this. Otherwise it will be a big stress to get it back to work.
2. Copy all data from the SDCard away because you will loose EVERYTHING!!!
3. You need your unlock_token.bin to unlock your device again. If you don't have it available please request this from the HTC web site.
Now, let's recover your device...
1. Download this file and extract it.
http://ul.to/j4j1cpft
2. Enter fastboot
Press POWER & VOLUME DOWN KEY and enter the bootloader
3. Connect your device to PC for the 1st Recover
Test if your device is available via fastboot and use this command:
fastboot devices
You should see your device with Serial number
Now lock your device back with command:
fastboot oem lock
You will see a short message and your bootloader is locked. You should see the message on top of the bootloader with RELOCKED.
That's fine.
Now start the ARUWIZARD from the downloade ZIP file and flash your device as you know it.
There is a ROM file inside which is same as your current hboot. This flash procedure will allign your partitions on the device and it might be that you will loose all SDCard files. I'm pretty sure that you will loose it.
The ROM contains only hboot, recovery and boot Images but it will "RECOVER" your device.
4. Unlock your device
After this procedure you are ready to unlock your device again. Enter fastboot and flash your unlock token again.
fastboot flash unlocktoken unlock_token.bin
After the device is unlocked flash boot and recovery image of your choice within this way:
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot erase Cache
After this you have a half running device.
5. Second Recover Step
Now you need to do a final repair for the device. For this you need to download Android Revolution HD 31.x ROM.
1. Put this ROM on your SDCard
2. Enter recovery and flash this ROM
3. Flash the boot.img to your device
4. Start your device and ignore the 1st Setup steps.
5. Now go to:
SETTINGS > Backup & reset > Reset phone (touch this)
6. On the next page scroll down to the bottom and select:
"Erase Music, Picture... on the storage"
7. Press "OK" and wait
When the phone is back again device is fully recovered. The SDCard is reformated and all partitons are back again.
Now you can do everything you want with your device again.
Best regards!
Click to expand...
Click to collapse
I'm facing a tiny problem with running the ARUWizard. It says my phone's battery is below 30% and won't flash every time although I fully charged it till the light turned green.
Hmmm... this seems to be a tricky thing.
Try this:
1. Copy the rom.zip into the same Folder where your fastboot.exe is located
2. Enter bootloader and go to fastboot.
3. Flash the file with this command:
fastboot flash zip rom.zip
4. Enter the original recovery
5. When you see the red triangle than do a short press on the power button and vol up and you will see the menue as same as you know it from the CWM Recovery
6. Wipe Cache
7. Wipe data/factory
8. unlock the bootloader
9. Flash the rom.img from AHD Image
fastboot flash boot boot.img
10. Flash CWM recovery
fastboot flash recovery recovery.img
11. enter Recovery and Mount USB
12. Copy the AHD ROM to your device & flash it
13. Boot the ROM, wait up to 10 minutes bevore you use it & ignore the setup
14. Within the Phone enter Settings and do a FACTORY RESET
MrT69 said:
Hmmm... this seems to be a tricky thing.
Try this:
1. Copy the rom.zip into the same Folder where your fastboot.exe is located
2. Enter bootloader and go to fastboot.
3. Flash the file with this command:
fastboot flash zip rom.zip
4. Enter the original recovery
5. When you see the red triangle than do a short press on the power button and vol up and you will see the menue as same as you know it from the CWM Recovery
6. Wipe Cache
7. Wipe data/factory
8. unlock the bootloader
9. Flash the rom.img from AHD Image
fastboot flash boot boot.img
10. Flash CWM recovery
fastboot flash recovery recovery.img
11. enter Recovery and Mount USB
12. Copy the AHD ROM to your device & flash it
13. Boot the ROM, wait up to 10 minutes bevore you use it & ignore the setup
14. Within the Phone enter Settings and do a FACTORY RESET
Click to expand...
Click to collapse
I tried that but it just says this in cmd when I try to flash the rom.zip
sending 'zip' (12882 KB)...
OKAY [ 1.654s]
writing 'zip'...
FAILED (remote: not allowed)
finished. total time: 1.864s
Hadya said:
I tried that but it just says this in cmd when I try to flash the rom.zip
sending 'zip' (12882 KB)...
OKAY [ 1.654s]
writing 'zip'...
FAILED (remote: not allowed)
finished. total time: 1.864s
Click to expand...
Click to collapse
Sorry!!!!!
This is the wrong way. Use this command:
fastboot oem rebootRUU fastboot flash zip rom.zip
MrT69 said:
Sorry!!!!!
This is the wrong way. Use this command:
fastboot oem rebootRUU fastboot flash zip rom.zip
Click to expand...
Click to collapse
Okay. It worked! Thank you!
Hadya said:
Okay. It worked! Thank you!
Click to expand...
Click to collapse
Is everything now working again?
Yes! All working. Thanks.
I have an EVO 4G phone that I am trying to root. It has hboot 2.18 and I followed some instructions for that hboot. I used the htc unlock bootloader and it is now unlocked.
I trying to follow this procedure from teramrevolation: http://teamrevolation.forumotion.com/t16-how-to-root-an-htc-evo-4g-with-hboot-2180001?highlight=rooting+hboot+2+18
I am running into difficulty when I get to where I flash a custom recovery. I have put a custom unloader zip file on my SD card. When I enter: adb reboot bootloader the phone turns off and the bootloader opens. I then select boot and that changes the menu to include recovery and I then select recovery. The phone reboots and I get a triangle and an exclamation mark. I then press the volume up and power buttons to get the android system recovery <3e>. I have the followin options listed:
Reboot system now
Apply update from sdcard
Wipe data/factory reset
Wipe cache partition
Also lower on the screen in yellow text it says: E:Can't open /cache/recovery/command
If I select "Apply update from sdcard" and press the power button it doesn't install the update it gives the following message and reboots:
Invalid operation
Success rebooting by reason: oem-00...
I looked around in some forums for the message above and there was a suggestion to enter the following commands, but, doesn't explain what to do with them:
adb reboot bootloader
fastboot devices => which returns HT0A3HL06966 fastboot
fastboot getvar cid => which returns cid: SPCS_001
I take it getting the cid is important, but, I don't know what to do with it???
Place the recovery file on the root of your SD card. Rename it PC36IMG.zip (make sure you don't have an extra .zip extension on the end of the file name). Reboot to the bootloader. You should be prompted to update afterwards.
Sent from my HTC EVO 4G LTE
That is what I did. It is named PC36IMG.zip. I did a MD5 check after I copied it to the SD card.
Did you select the bootloader option from the bootloader menu?
You can also push the recovery to your phone via fastboot. Just put the recovery image file in your ADB/Fastboot tools folder and connect via fastboot USB. Use the command "fastboot flash recovery nameofrecovery.img" to push it to your phone. Also, you don't need to worry about CID with this device, and, further, the menu you're referring to is the stock Android recovery menu.
Sent from my HTC EVO 4G LTE
Yes, I did select bootloader.
I'm trying the fastboot flash recovery method now. It seems to have started, there are now error messages after I enter fastboot flash recovery openrecovery_supersonic.img, but, all I see is <waiting for device>. It has been waiting for over thirty minutes.
I may take another approach. My phone is unlocked, but, not s-off. I think I will try this method http://forum.xda-developers.com/showthread.php?t=1771755, starting at step 21 as I've already performed the prior steps.
If I can get it fully rooted with s-off I think I can then install install recoverx, or oneclickroot right from google play store.
Any thoughts?
My EVO is unlocked but S-ON. It;s rooted and had CWM Touch 5.8.0.1 recovery already installed.
I just installed TWRP 2.63 using the fastboot method on a Windows XP computer. do you have the HTC drivers installed? When you boot into the bootloader, then plug your phone into the computer via USB cable, the Bootloader status should change to Fastboot USB.
ran the fastboot flash_image recovery command in it transferred pretty quickly.
Since I was having a hard time flashing these files the first time, here's a guide how it worked for me.
There’s no going back once you do this. All your data will be lost, so make sure you've got your own data backup and placed it somewhere safe!
First of all, if you need to flash the recovery too (eg. black screen in recovery, bootloop), make sure USB-Debugging is enabled on your device, all drivers are up-to-date (HTC Sync, Java and fastboot) and your bootloader is unlocked.
If it's still locked/relocked visit the HTC Developer Center and follow the guide to unlock your bootloader.
- Create a folder 'ADB' in disc drive C and copy all files into this folder, this way you can just copy/paste the commands.
ADB fastboot folder (just extract it to C:\ and you're good to go)
- Connect your device and PC using usb data cable.
Step 1
Flashing recovery (before relocking your bootloader)
- Download recovery.img
- Save it to C:\ADB folder
- Navigate to ADB folder and click on any free space while holding the shift Key
- Choose 'Open command window' here
- Once cmd is started use this command
Code:
fastboot devices
and check if your device is listed, then type
Code:
adb reboot fastboot
to reboot your device. It should start in fastboot mode.
If it's not, shut down your phone and restart using power + volume down buttons, pressed at the same time. Once Hboot starts just navigate (using volume up or volume down buttons on your device) to Fastboot and press the power button. Make sure FASTBOOT USB is display under your specs.
- Enter
Code:
fastboot flash recovery recovery.img
into the cmd window and press enter to flash your recovery.
- If it's successful go to step 2, if it's not try again. Most of the time, the first flashing process isn't successful.
Step 2
Relock Bootloader using Fastboot:
Now you need to relock the bootloader, otherwise the Stock RUU can't be installed.
- Copy command to the cmd window
Code:
fastboot oem lock
- Press enter
Your device should now be relocked.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Step 3.a
Flashing Stock RUU using fastboot commands
- Download 0P9CIMG.zip
- Place it in ADB folder
- now type the following command in the cmd window
Code:
fastboot flash zip 0P9CIMG.zip
- Wait for the flashing process to finish.
If that doesn't work go to the next step..
Step 3.b
Flashing Stock RUU using HBOOT
- Save 0P9CIMG.zip to the root folder of an sd-card (min. 2GB )
- Put sd-card into your device
- Start the device by pushing Power + Vol Down at the same time
- At this point, your device should pick the 0P9CIMG.zip you downloaded up and install it as an update.
- Wait till the flashing process is finished. (Might take some time )
- remove sd-card from device once the flashing is finished, otherwise hboot will flash again once you enter hboot.
Now, you're back to Stock Android Lollipop 5.0.2
At this point, you should really consider making your own backup.
If this fails and you're still unable to get back to Stock Android, follow the next guide:
Restore system using clean twrp Android 5.0.1 nandroid backup
Make sure your device battery is charged upto 80%.
Make sure your bootloader is unlocked and usb debugging is activated
- Download twrp for your device (HTC Desire 816 a5 )
- Follow the guide Fastboot Install Method (No Root Required) to flash custom recovery
- Download TWRP Nandroid backup
- Boot to bootloader (volume down + power), use volume buttons to navigate to Fastboot and then select recovery
- Once twrp is running, tab the Wipe button, followed by Advanced Wipe
- Select Dalvik Cache, System, Cache and Internal Storage
- Swipe to confirm, wait till it's finished
- Unzip A5_UL TWRP Nandroid 2016-01-25--03-37-20 UNROOTED.zip file to desktop
!!! IMPORTANT !!!
You will need to insert your device ID into the folder structure otherwise the folder won't be listed.
To get your device ID, start cmd in your adb folder and enter adb devices. The number/letter combination is your device id. (eg. SH45...)
Browse through the TWRP folder until you get to fastboot_getvar (bootloader) serialno folder and replace the text with your serialno.
- Move TWRP folder to sd-card
- Connect device to pc
- Insert sd-card into device
- Tab Restore button
- Choose nandroid backup folder
- Swipe on screen to confirm restore
After this you will have a functional factory reset device.
@nukaru hey man, thanks for the guide, I have some questions:
-you have given ZIP file of the RUU, does it matter which model of D816 we flash it on?(I have dual sim with snapdragon processor)
-Im stuck at bootscreen so I cant go and enable USB debugging, what should I do?!
btw, I didnt do anything like rooting or unlocking BL, it just went to bootloop after update!
This RUU is for the a5_ul, european single SIM version. It won't support dual SIM.
First of all, you need to find out more about your model. Please press volume up + volume down + power at the same time. And once the backlight is turned off, release volume up and hold power and volume down. You should then be starting in hboot. Please post the device info here.
Ps is your recovery still working? Or do you get a black screen?
nukaru said:
This RUU is for the a5_ul, european single SIM version. It won't support dual SIM.
First of all, you need to find out more about your model. Please press volume up + volume down + power at the same time. And once the backlight is turned off, release volume up and hold power and volume down. You should then be starting in hboot. Please post the device info here.
Ps is your recovery still working? Or do you get a black screen?
Click to expand...
Click to collapse
thanks for the reply, I have been struggling with the phone for the past several days, the battery was drained(I know it's bad) and now it wont turn on or charge!
dont know what to do with it
Successfully rstore the RUU thanks a lot
---------- Post added at 01:16 AM ---------- Previous post was at 12:46 AM ----------
I have restore the stock using this guide thanks a lot
nukaru said:
Since I was having a hard time flashing these files the first time, here's a guide how it worked for me.
There’s no going back once you do this. All your data will be lost, so make sure you've got your own data backup and placed it somewhere safe!
First of all, if you need to flash the recovery too (eg. black screen in recovery, bootloop), make sure USB-Debugging is enabled on your device, all drivers are up-to-date (HTC Sync, Java and fastboot) and your bootloader is unlocked.
If it's still locked/relocked visit the HTC Developer Center and follow the guide to unlock your bootloader.
- Create a folder 'ADB' in disc drive C and copy all files into this folder, this way you can just copy/paste the commands.
ADB fastboot folder (just extract it to C:\ and you're good to go)
- Connect your device and PC using usb data cable.
Step 1
Flashing recovery (before relocking your bootloader)
- Download recovery.img
- Save it to C:\ADB folder
- Navigate to ADB folder and click on any free space while holding the shift Key
- Choose 'Open command window' here
- Once cmd is started use this command
Code:
fastboot devices
and check if your device is listed, then type
Code:
adb reboot fastboot
to reboot your device. It should start in fastboot mode.
If it's not, shut down your phone and restart using power + volume down buttons, pressed at the same time. Once Hboot starts just navigate (using volume up or volume down buttons on your device) to Fastboot and press the power button. Make sure FASTBOOT USB is display under your specs.
- Enter
Code:
fastboot flash recovery recovery.img
into the cmd window and press enter to flash your recovery.
- If it's successful go to step 2, if it's not try again. Most of the time, the first flashing process isn't successful.
Step 2
Relock Bootloader using Fastboot:
Now you need to relock the bootloader, otherwise the Stock RUU can't be installed.
- Copy command to the cmd window
Code:
fastboot oem lock
- Press enter
Your device should now be relocked.
Step 3.a
Flashing Stock RUU using fastboot commands
- Download 0P9CIMG.zip
- Place it in ADB folder
- now type the following command in the cmd window
Code:
fastboot flash zip 0P9CIMG.zip
- Wait for the flashing process to finish.
If that doesn't work go to the next step..
Step 3.b
Flashing Stock RUU using HBOOT
- Save 0P9CIMG.zip to the root folder of an sd-card (min. 2GB )
- Put sd-card into your device
- Start the device by pushing Power + Vol Down at the same time
- At this point, your device should pick the 0P9CIMG.zip you downloaded up and install it as an update.
- Wait till the flashing process is finished. (Might take some time )
- remove sd-card from device once the flashing is finished, otherwise hboot will flash again once you enter hboot.
Now, you're back to Stock Android Lollipop 5.0.2
At this point, you should really consider making your own backup.
If this fails and you're still unable to get back to Stock Android, follow the next guide:
Restore system using clean twrp Android 5.0.1 nandroid backup
Make sure your device battery is charged upto 80%.
Make sure your bootloader is unlocked and usb debugging is activated
- Download twrp for your device (HTC Desire 816 a5 )
- Follow the guide Fastboot Install Method (No Root Required) to flash custom recovery
- Download TWRP Nandroid backup
- Boot to bootloader (volume down + power), use volume buttons to navigate to Fastboot and then select recovery
- Once twrp is running, tab the Wipe button, followed by Advanced Wipe
- Select Dalvik Cache, System, Cache and Internal Storage
- Swipe to confirm, wait till it's finished
- Unzip A5_UL TWRP Nandroid 2016-01-25--03-37-20 UNROOTED.zip file to desktop
!!! IMPORTANT !!!
You will need to insert your device ID into the folder structure otherwise the folder won't be listed.
To get your device ID, start cmd in your adb folder and enter adb devices. The number/letter combination is your device id. (eg. SH45...)
Browse through the TWRP folder until you get to fastboot_getvar (bootloader) serialno folder and replace the text with your serialno.
- Move TWRP folder to sd-card
- Connect device to pc
- Insert sd-card into device
- Tab Restore button
- Choose nandroid backup folder
- Swipe on screen to confirm restore
After this you will have a functional factory reset device.
Click to expand...
Click to collapse
---------- Post added at 01:39 AM ---------- Previous post was at 01:16 AM ----------
Updating to Android M Sense 7 thanks a lot again
Hi
Thank you for the tutorial which is excellen.t. I have tried all 3 methods but am unable to install a Lollipop RUU or OPCIMG file.
Problem is that I have a HK_CHT CID 622 816 a5_ul version of the phone and any of the Firmwares I have tried are not compatible.
I am currently running SVHD 1.2.0 whic h is 4.4.2 Sense 6 custom Rom. I would like to be able to get Lollipop so that I can upgrade to MM in the future, either a Stok Version or custom.
Any help wold be greatly appreciated. I have no problem locking/unlocking.
Sent from my HTC Desire 816 using Tapatalk
This RUU only supports european a5_ul versions. To upgrade you'll need to find the hk version RUU.
I'm at work right now, but once I get back home, I'll help you search for the right RUU.
In the meantime, could you please post your hboot data?
nukaru said:
Since I was having a hard time flashing these files the first time, here's a guide how it worked for me.
There’s no going back once you do this. All your data will be lost, so make sure you've got your own data backup and placed it somewhere safe!
First of all, if you need to flash the recovery too (eg. black screen in recovery, bootloop), make sure USB-Debugging is enabled on your device, all drivers are up-to-date (HTC Sync, Java and fastboot) and your bootloader is unlocked.
If it's still locked/relocked visit the HTC Developer Center and follow the guide to unlock your bootloader.
- Create a folder 'ADB' in disc drive C and copy all files into this folder, this way you can just copy/paste the commands.
ADB fastboot folder (just extract it to C:\ and you're good to go)
- Connect your device and PC using usb data cable.
Step 1
Flashing recovery (before relocking your bootloader)
- Download recovery.img
- Save it to C:\ADB folder
- Navigate to ADB folder and click on any free space while holding the shift Key
- Choose 'Open command window' here
- Once cmd is started use this command
Code:
fastboot devices
and check if your device is listed, then type
Code:
adb reboot fastboot
to reboot your device. It should start in fastboot mode.
If it's not, shut down your phone and restart using power + volume down buttons, pressed at the same time. Once Hboot starts just navigate (using volume up or volume down buttons on your device) to Fastboot and press the power button. Make sure FASTBOOT USB is display under your specs.
- Enter
Code:
fastboot flash recovery recovery.img
into the cmd window and press enter to flash your recovery.
- If it's successful go to step 2, if it's not try again. Most of the time, the first flashing process isn't successful.
Step 2
Relock Bootloader using Fastboot:
Now you need to relock the bootloader, otherwise the Stock RUU can't be installed.
- Copy command to the cmd window
Code:
fastboot oem lock
- Press enter
Your device should now be relocked.
Step 3.a
Flashing Stock RUU using fastboot commands
- Download 0P9CIMG.zip
- Place it in ADB folder
- now type the following command in the cmd window
Code:
fastboot flash zip 0P9CIMG.zip
- Wait for the flashing process to finish.
If that doesn't work go to the next step..
Step 3.b
Flashing Stock RUU using HBOOT
- Save 0P9CIMG.zip to the root folder of an sd-card (min. 2GB )
- Put sd-card into your device
- Start the device by pushing Power + Vol Down at the same time
- At this point, your device should pick the 0P9CIMG.zip you downloaded up and install it as an update.
- Wait till the flashing process is finished. (Might take some time )
- remove sd-card from device once the flashing is finished, otherwise hboot will flash again once you enter hboot.
Now, you're back to Stock Android Lollipop 5.0.2
At this point, you should really consider making your own backup.
If this fails and you're still unable to get back to Stock Android, follow the next guide:
Restore system using clean twrp Android 5.0.1 nandroid backup
Make sure your device battery is charged upto 80%.
Make sure your bootloader is unlocked and usb debugging is activated
- Download twrp for your device (HTC Desire 816 a5 )
- Follow the guide Fastboot Install Method (No Root Required) to flash custom recovery
- Download TWRP Nandroid backup
- Boot to bootloader (volume down + power), use volume buttons to navigate to Fastboot and then select recovery
- Once twrp is running, tab the Wipe button, followed by Advanced Wipe
- Select Dalvik Cache, System, Cache and Internal Storage
- Swipe to confirm, wait till it's finished
- Unzip A5_UL TWRP Nandroid 2016-01-25--03-37-20 UNROOTED.zip file to desktop
!!! IMPORTANT !!!
You will need to insert your device ID into the folder structure otherwise the folder won't be listed.
To get your device ID, start cmd in your adb folder and enter adb devices. The number/letter combination is your device id. (eg. SH45...)
Browse through the TWRP folder until you get to fastboot_getvar (bootloader) serialno folder and replace the text with your serialno.
- Move TWRP folder to sd-card
- Connect device to pc
- Insert sd-card into device
- Tab Restore button
- Choose nandroid backup folder
- Swipe on screen to confirm restore
After this you will have a functional factory reset device.
Click to expand...
Click to collapse
Best Guide Ever
htc desire 816
please help me out in unrooting my device and installing stock rom on it.
till now i have downloaded many ruu but every ruu is somehow corrupted. and i want to install android m update.
and the update wont install unless and intill i install stock rom on my phone.
i have and indian version of htc desire 816.
please help me out in finding the correct ruu and flash it.
any stock rom be it kitkat be it lollipop i just want my phone unrooted .
please reply asap because i had already wasted so much of time on it.
Do you have dual sim?
Could you please post your getvar all log and bootloader screen?
To get your device info, you'll need to make sure all drivers are up-to-date.(HTC Sync, Java and ADB)
After installing,
- Navigate to ADB folder and click on any free space while holding the shift Key
- Choose 'Open command window here'
- Once cmd is started use this command
Code:
fastboot devices
and check if your device is listed, then type
Code:
fastboot getvar all
and copy/paste code here.
siddharthsatija said:
please help me out in unrooting my device and installing stock rom on it.
till now i have downloaded many ruu but every ruu is somehow corrupted. and i want to install android m update.
and the update wont install unless and intill i install stock rom on my phone.
i have and indian version of htc desire 816.
please help me out in finding the correct ruu and flash it.
any stock rom be it kitkat be it lollipop i just want my phone unrooted .
please reply asap because i had already wasted so much of time on it.
Click to expand...
Click to collapse
Hi Siddhartha
Marshmallow twrp Indian rom is available for restore ,just download the twrp back up and restore it
Mine is working fine I used twrp back up
Hi!
need help tried either ways but not able to flash the stock rom, gives error.
sending 'zip'... (38480 KB) OKAY
sending time = 2.786 secs
writing 'zip'... (bootloader) adopting the signature contained in this image...
(bootloader) signature checking...
(bootloader) rom parsing start ...
(bootloader) rom parsing finish ...
FAILnot allowed
FAILED (remote: not allowed)
Execution time is 7(s)
Hi I have used ur RUU and flash the system then I updated my phone in android M earlier later I flash custom ROM and I need to reflash in to stock and I when I try to update in android M update is not getting popup anymore any idea
Thank you! Everything working
nukaru said:
This RUU is for the a5_ul, european single SIM version. It won't support dual SIM.
First of all, you need to find out more about your model. Please press volume up + volume down + power at the same time. And once the backlight is turned off, release volume up and hold power and volume down. You should then be starting in hboot. Please post the device info here.
Ps is your recovery still working? Or do you get a black screen?
Click to expand...
Click to collapse
hello....can i flash this to desire 816 a5_ul taiwan single sim version? thanks....
about this RUU
my HTC is S-off, unlocked, rooted, can I flash this RUU directly?
thanks in advance for any response!
I've flashed to [ROM][MM] Official MarshMallow for HTC Desire 816 | v1.0.0 | PreRooted (A5_ul)
Contributors
xXminiWHOOPERxX
ROM OS Version: 6.0.x Marshmallow
ROM Kernel: Linux 3.4.x
ROM Firmware Required: Lollipop Firmware , MarshMallow Firmware , TWRP 3.0.0-0
Based On: HTC
Version Information
Status: Stable
Current Stable Version: v1.0.0
Stable Release Date: 2016-02-26
Stuck at the 4rd step
I got stuck at the 4th step. If I reboot the system, it just hangs on the CyanogenMod Logo. Please throw some ideas
Step 1 - passed
Step 2 - passed
Step 3.a - failed
Step 3.b - failed (Error:update halted due to large file)
Step 4 - Failed ( Due to extractTarFork() process ended with Error : 255)
Unable to extract tar archive '/external_sd/TWRP/BACKUPS/SH46TWW04877/2016-01-25--03-37-20/data.ext4.win'
Error during restore process. extractTarFork() process ended with ERROR: 255)
I am sure the backup file is not corrupted.
Could anybody help me in this. Thanks.
I bought a Virgin Mobile network unlocked HTC Desire 816 that's currently running Android 4.4.2. I want to upgrade to 5.0.2 but every time the phone reboots to the recovery mode, the screen stays black without any indicator and then the RUU bails with a connection error. Is this due to a corrupted recovery? Here's a screen shot of the bootloader screen. Please advice me what I should do to upgrade to 5.0.2. Thanks in advanced!
How to download RUU for Htc 816 A5_UL
i neeed Ruu for my mobile 816 a5_ul please if you guys have give me reply in coments i need it please help me
---------- Post added at 11:37 AM ---------- Previous post was at 11:34 AM ----------
vinaymysore777 said:
Hi Siddhartha
Marshmallow twrp Indian rom is available for restore ,just download the twrp back up and restore it
Mine is working fine I used twrp back up
Click to expand...
Click to collapse
i need ruu for my htc 816 A5_UL link.. how i can download this ruu please help me
HTC Desire 816 single sim (816n) for europe (A5_UL) Please HELP
i downloaded the file 0P9CIMG.zip but file is corrupted :crying::crying:. Please need your HELP
I want to flash TWRP but just discovered that i cannot enter download mode.
I can enter bootloader mode (white screen), recovery mode. But as long as i try to enter download mode i see small HTC logo then after a while phone reboots again and go normal android boot.
I've tried to enter download mode from bootloadr, from recovery, from adb "adb rebood download"
Result is always the same.
FW 1.80.709.
What i'm doing wrong??
fastboot oem rebootRUU also doesn't boot into download mode. Same small HTC logo and then reboot automatically into normal android boot.
Can anyone help?
from bootloader mode i cannot even flash firmware.zip to correct possible errors. Such a stupid developers are in HTC - don't leave any chance to fix the problem!
very angry at HTC!
I had many Samsung devices, and ASUS Zenfone - and never had such stupid softbrick...
Everything is done from download mode. Seems like your out of luck. Maybe put a description what you have done to your phone prior this happening.
Nothing special i did.
Bought this phone couple months ago. Had no time to configure it, so it just laid on table. I only unlocked the bootloader through htcdev site and was updating it when new fw out. And yesterday i've decided to start to use it. The first thing i wanted to do is flash TWRP. And discovered that i can't enter to download mode.
Probably the last OTA wasn't sucessful because phone didn't restart when finished updating.
That could be the cause....
Tryed a factory reset?
yldlj said:
Tryed a factory reset?
Click to expand...
Click to collapse
of course
Probably the part where download mode code is, didn't update to v1.80 and thus don't agree with bootloader.
Although, HTC has long history in PDA/Phone manufacturing, they still don't know how to write the proper code. They don't understand how to write protected bootloader with high resistance to bricks. Why they don't allow to flash protected partitions with OFFICIAL SIGNED images?? Stupidity!
They should learn from Samsung and even ASUS how to write correct bootloaders.
"You asked for it, we delivered" in boot unlock page looks like loud laughing to their customers
sorg said:
I want to flash TWRP but just discovered that i cannot enter download mode.
I can enter bootloader mode (white screen), recovery mode. But as long as i try to enter download mode i see small HTC logo then after a while phone reboots again and go normal android boot.
I've tried to enter download mode from bootloadr, from recovery, from adb "adb rebood download"
Result is always the same.
FW 1.80.709.
What i'm doing wrong??
Click to expand...
Click to collapse
DId you ever get your phone working? I can't enter download mode either, which means I can't flash any recovery. I can boot to the bootloader and fastboot recognizes a devices but adb doesn't from the bootloader screen and i get stuck in a bootloop if i try to select the boot to recovery or download mode options. So i also can't boot into recovery.
I pretty desperate at this point. I don't know what to do. The bootloader says
software status: official
unlocked
s-off
bootloader screen also says:
DDR TEST (LOOPING)
and I'm not sure what that means.
I tried to use an RUU and it always gave me the error saying my battery was below 30% so it can't continue. I also can't get into RUU mode using the fastboot command. It starts the bootloop again.
Extract hosd.img from your current firmware.zip and flash in bootloader.
Fastboot flash hosd hosd.img
Had the same issue with my M9 before.
I've repaired in HTC service center. And since i had to request new key to unlock the bootloader (old key didn't work) - they've replaced motherboard!
hi there,
did you manage to fix the problem? im having the exact same issue...please advise if do so...thanks
CPUser20 said:
DId you ever get your phone working? I can't enter download mode either, which means I can't flash any recovery. I can boot to the bootloader and fastboot recognizes a devices but adb doesn't from the bootloader screen and i get stuck in a bootloop if i try to select the boot to recovery or download mode options. So i also can't boot into recovery.
I pretty desperate at this point. I don't know what to do. The bootloader says
software status: official
unlocked
s-off
bootloader screen also says:
DDR TEST (LOOPING)
and I'm not sure what that means.
I tried to use an RUU and it always gave me the error saying my battery was below 30% so it can't continue. I also can't get into RUU mode using the fastboot command. It starts the bootloop again.
Click to expand...
Click to collapse
In a similar boat here - 1-week-old HTC 10 bricked
I flashed the Nougat OTA zip successfully, then realized that TWRP doesn't yet work with Nougat. I tried flashing back to M with fastboot flash zip m_ruu.zip, but fastboot refuses to downgrade.
So I went into download mode, and flashed a backup of M's boot partition with fastboot flash boot m_boot.img, thinking that this will allow me to downgrade the other partitions back to M. Ooops.
Now I can only get to the white background bootloader screen, but neither download mode, nor recovery, nor system.
I tried flashing both M's and N's hosd image, and neither will allow booting into download mode. As mentioned in previous posts, unless you can boot into download mode, you can't flash any other partition.
Furthermore, looks like you can only flash an HTC-signed kernel / initramfs to the hosd partition. I tried flashing both M's / N's boot image to hosd, and in both cases got an error saying it failed ASN1 verification.
Sad :crying:
Maybe this will help:
http://forum.xda-developers.com/showpost.php?p=69870232&postcount=974
Tarima said:
Maybe this will help:
http://forum.xda-developers.com/showpost.php?p=69870232&postcount=974
Click to expand...
Click to collapse
Nope...on the white background bootloader screen, when trying to flash (with fastboot) any other partition except hosd, I'm getting
Code:
sending 'radio' (54625 KB)... OKAY
writing 'radio'... FAILED (remote: cannot flash this partition in s-on state)
...but I can't figure out how to s-off in the current state either. Sunshine is an APK and requires the phone to boot into system. XTC2Clip's s-off instructions require entering into recovery mode.
Flashing different firmwares & RUUs without s-off is a big gamble
Sent from my HTC6545LVW using XDA-Developers mobile app
---------- Post added at 10:03 PM ---------- Previous post was at 10:01 PM ----------
jichuan89 said:
In a similar boat here - 1-week-old HTC 10 bricked
I flashed the Nougat OTA zip successfully, then realized that TWRP doesn't yet work with Nougat. I tried flashing back to M with fastboot flash zip m_ruu.zip, but fastboot refuses to downgrade.
So I went into download mode, and flashed a backup of M's boot partition with fastboot flash boot m_boot.img, thinking that this will allow me to downgrade the other partitions back to M. Ooops.
Now I can only get to the white background bootloader screen, but neither download mode, nor recovery, nor system.
I tried flashing both M's and N's hosd image, and neither will allow booting into download mode. As mentioned in previous posts, unless you can boot into download mode, you can't flash any other partition.
Furthermore, looks like you can only flash an HTC-signed kernel / initramfs to the hosd partition. I tried flashing both M's / N's boot image to hosd, and in both cases got an error saying it failed ASN1 verification.
Sad :crying:
Click to expand...
Click to collapse
You should be 100% to RUU. It's just a good practice
CPUser20 said:
DId you ever get your phone working? I can't enter download mode either, which means I can't flash any recovery. I can boot to the bootloader and fastboot recognizes a devices but adb doesn't from the bootloader screen and i get stuck in a bootloop if i try to select the boot to recovery or download mode options. So i also can't boot into recovery.
I pretty desperate at this point. I don't know what to do. The bootloader says
software status: official
unlocked
s-off
bootloader screen also says:
DDR TEST (LOOPING)
and I'm not sure what that means.
I tried to use an RUU and it always gave me the error saying my battery was below 30% so it can't continue. I also can't get into RUU mode using the fastboot command. It starts the bootloop again.
Click to expand...
Click to collapse
Sent from my HTC6545LVW using XDA-Developers mobile app
I tried to use an RUU and it always gave me the error saying my battery was below 30% so it can't continue. I also can't get into RUU mode using the fastboot command. It starts the bootloop again.
And i've left the phone charging over a longer time period, but every time i plug the phone in while it's off, the Orange LED light turns on, then the battery icon pops up, and then the phone turns on and its begins looping all over again. I read here on XDA that the phone isn't charging unless the LED light is registering a signal.
Ultimately, an RUU doesn't work for me. I get the error saying my battery is below 30%, and it aborts. I'd really like to get it running again so any help will be very much appreciated.
sjpritch25 said:
Flashing different firmwares & RUUs without s-off is a big gamble
Sent from my HTC6545LVW using XDA-Developers mobile app
---------- Post added at 10:03 PM ---------- Previous post was at 10:01 PM ----------
You should be 100% to RUU. It's just a good practice
Sent from my HTC6545LVW using XDA-Developers mobile app
Click to expand...
Click to collapse
sjpritch25 said:
Flashing different firmwares & RUUs without s-off is a big gamble
Click to expand...
Click to collapse
You are absolutely right, it was totally dumb :crying:
Unbelievable - I actually managed to unbrick my HTC 10!! :victory::victory::victory: I still don't understand exactly what happened, but I'll document everything I did...
Before:
S-ON
Flashed bad boot image in download mode
Could not enter download, RUU, recovery, or system mode - all of them enter into bootloop
Could only enter white background bootloader mode (Volume Up + Volume Down + Power), which only allows flashing signed hosd image
What I did:
Followed @Tarima's link above. With the phone in the white background bootloader mode, I ran fastboot flash $x $x.img with $x = each of the partitions. Except for hosd, all the other commands printed an error like
Code:
sending 'xbl' (1809 KB)... OKAY
writing 'xbl'... FAILED (remote: cannot flash this partition in s-on state)
but I continued anyway.
Selected "REBOOT TO BOOTLOADER" from white background bootloader
Downloaded an RUU exe file from here (I got the 1.96.617.20 version, but in hindsight it probably doesn't matter which version), and extracted an RUU zip file (following this guide on Linux)
Renamed the RUU ZIP to 2PS6IMG.zip, copied it to the root of an empty FAT32-formatted microSD card, and inserted the card into the HTC 10 (inspired by this post and this post)
Selected "BOOT TO DOWNLOAD MODE" from white background bootloader
This triggered a screen prompting whether to install update from SD card (photo).
I didn't need to actually install the update from the SD card; instead, the presence of a valid update on the SD card may have short-circuited whatever was causing the download mode to crash loop, and allowed the phone to enter download mode and accept fastboot flash commands. Since my problem was a bad boot image, I just did
Code:
fastboot flash boot boot.img
with the boot.img extracted from the official Nougat OTA zip's firmware.zip, and it worked! Phone was able to boot back into system / download / RUU / recovery. :victory:
I'd already given up hope and bought another HTC 10 off Swappa I've now learned my lesson and I'm going to S-OFF at once.
jichuan89 said:
Unbelievable - I actually managed to unbrick my HTC 10!! :victory::victory::victory: I still don't understand exactly what happened, but I'll document everything I did...
Before:
S-ON
Flashed bad boot image in download mode
Could not enter download, RUU, recovery, or system mode - all of them enter into bootloop
Could only enter white background bootloader mode (Volume Up + Volume Down + Power), which only allows flashing signed hosd image
What I did:
Followed @Tarima's link above. With the phone in the white background bootloader mode, I ran fastboot flash $x $x.img with $x = each of the partitions. Except for hosd, all the other commands printed an error like
Code:
sending 'xbl' (1809 KB)... OKAY
writing 'xbl'... FAILED (remote: cannot flash this partition in s-on state)
but I continued anyway.
Selected "REBOOT TO BOOTLOADER" from white background bootloader
Downloaded an RUU exe file from here (I got the 1.96.617.20 version, but in hindsight it probably doesn't matter which version), and extracted an RUU zip file (following this guide on Linux)
Renamed the RUU ZIP to 2PS6IMG.zip, copied it to the root of an empty FAT32-formatted microSD card, and inserted the card into the HTC 10 (inspired by this post and this post)
Selected "BOOT TO DOWNLOAD MODE" from white background bootloader
This triggered a screen prompting whether to install update from SD card (photo).
I didn't need to actually install the update from the SD card; instead, the presence of a valid update on the SD card may have short-circuited whatever was causing the download mode to crash loop, and allowed the phone to enter download mode and accept fastboot flash commands. Since my problem was a bad boot image, I just did
Code:
fastboot flash boot boot.img
with the boot.img extracted from the official Nougat OTA zip's firmware.zip, and it worked! Phone was able to boot back into system / download / RUU / recovery. :victory:
I'd already given up hope and bought another HTC 10 off Swappa I've now learned my lesson and I'm going to S-OFF at once.
Click to expand...
Click to collapse
Similar thing happened to me .. I'm S-ON and had been flashing the proper firmwares from the get go by renaming them to 2PS6IMG with no problems.. then I upgraded to N firmware and it was smooth sailing.. then i decided to start fresh and formatted. That's when the problem of not being able to get into download mode started. I guess formatting did something to the partition I dunno.. anyway I did your steps of formatting a new sd in my phone as FAT32, dropped the 2PS6IMG zip on the card and it triggered download mode.. really strange.. thanks for posting your steps :good:
Glad to know it helped :victory: