• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

ROMs HTC Desire 626s "Rooted" How to OTA Marshmallow Update + RE-Root

Bigcountry907

Well-Known Member
Oct 15, 2015
212
214
Erie PA
I'm guessing that I am one of the few brave souls that decided to upgrade from Lollipop to Marshmallow.
It was kinda a PITA so I will share with you how to pull it off.

This is for devices that have been rooted or have a modified Rom.

Note: 1 ----> ---> --> Once you go Marshmallow there is no going back !!!

This means don't load any of the LOLLIPOP roms.
I'm working on downgrading but just know....after you upgrade to Marshmallow the current RUU on the HTC website will not take you back to Lollipop.

Section #1 Boot Loader --- Boot Loader --- Boot Loader

Your Boot loader should be unlocked.
First things first.
This is for the HTC Desire 626s after it has been rooted.
I'm going to assume that your boot loader is in "Unlocked" or "Re-Locked" state.
I would also guess that you have installed a custom recovery like TWRP.

Now is the time to use that recovery and make a Backup.


After you have made the backup " To a SD Card" (remember we will be erasing everything on the phone except the SD Card)" we need to check that the boot loader is unlocked.

After powering down, press Volume Down and while pressing Volume Down, press Power holding both buttons to start the device into Bootloader mode (now Download mode for One M9 and newer devices). If you have difficulty, power up normally, go to Settings->Battery and deselect Fast boot. Power down and try again.


It will show the status of the boot loader.
***LOCKED***
***UNLOCKED***
***RELOCKED***

We need the boot loader unlocked !!

If your boot loader is locked or relocked follow the instructions in the next link.

http://www.htcdev.com/bootloader/

Do not use firefox browser it will not work with the HTC site correctly !!!!!

Select Desire as the phone model in the list. Yes you have to register on HTC First.


Sorry I didn't get super detailed this thread may become too long if I do.

Section #2 Unlocking Re-locked Boot loader
The Unlock_code.bin file you got from HTC Dev site needs to be copied to the same directory where fastboot.exe is located.

!!! You should have fastboot.exe and Unlock_code.bin From the HTC Dev site....If not http://www.htcdev.com/bootloader/

Next on the phone go to developer options and make sure that OEM Unlocking is checked.
Also make sure USB Debugging is checked.
Be sure to authorize the phone to allow the computer connection when the RSA Key dialog pops up on the phone.

Boot into boot loader mode again.
After powering down, press Volume Down and while pressing Volume Down, press Power holding both buttons to start the device into Bootloader mode (now Download mode for One M9 and newer devices). If you have difficulty, power up normally, go to Settings->Battery and deselect Fast boot. Power down and try again.
Connect phone to COMPUTER !! o_O
Then select from the menu. reboot to download mode

Lol, I can be so sarcastic at times.... Sorry

You need to use the fastboot command prompt. Open a dos command window in Windows and CD to the directory where fastboot.exe is located.

TYPE: fastboot flash unlocktoken Unlock_code.bin

hit enter and you should have a screen pop up on the phone asking you to confirm unlock of the bootloader.

YAAAYYYY ;)

Your boot loader is unlocked.

Proceed to the next post for Flashing Back the Stock Recovery.





 
How to Flash the stock recovery back to the device before the OTA Update.

1) Your Boot loader should be unlocked at this point ---->>> or read previous post.

2) Yup......we need the stock recovery....... what?? you didn't save it before you flashed TWRP recovery?? Lol.
no worries......we will get it straight from the OTA Update itself.

Check your phone to see if the update is available.
Checking for updates manually
  1. From the Home screen, tap
    GUID-9F591F79-2ABF-4F8E-ABB0-6B117D68C8EA-web.png
    > Settings > About.
  2. Tap Software updates.
  3. HTC Desire 626s checks if updates are available

3) Download the updates.
My phone initially downloaded 2 updates.
One for an APP and one for Bug Fix to Allow Updates


4) Allow the updates to install and restart the phone.

5) Get the OTA
  • From the Home screen, tap
    GUID-9F591F79-2ABF-4F8E-ABB0-6B117D68C8EA-web.png
    > Settings > About.
  • Tap Software updates.
  • HTC Desire 626s downloads the OTA.
  • It should be around 800 MB so it takes a wile

6) Copy the OTA from the phone to your computer.
Use root browser go to /data/data/com.htc.updater/files
copy the file to your SD Card.

Copy the ota from the sd card to the computer.
Unzip the OTA file
Unzip firmware.zip
There it is " Recovery.img"
copy Recovery.img to the same location as the fastboot.exe on your computer.

7) Boot into boot loader mode again.
After powering down, press Volume Down and while pressing Volume Down, press Power holding both buttons to start the device into Bootloader mode (now Download mode for One M9 and newer devices). If you have difficulty, power up normally, go to Settings->Battery and deselect Fast boot. Power down and try again.
Connect phone to COMPUTER !! o_O
Then select from the menu. reboot to download mode

open the command window
You need to use the fastboot command prompt. Open a dos command window in Windows and CD to the directory where fastboot.exe is located.

8) TYPE: fastboot flash recovery recovery.img

If everything was successful you have flashed the original recovery back to the device.

I will post more tommorow.
 
Upvote 0
@Antel1904

When I started this thread the only way to update to marshmallow was with the OTA.
The RUU on the HTC site was for lollipop 5.1.

In order for the OTA to flash the phone needs to be STOCK / UN-Rooted.
So you had to flash the Lollipop 5.1 RUU to get back to Stock and UN-Rooted.

Now the Marshmallow RUU will download from the HTC site.

http://www.htc.com/us/support/rom-downloads.html

Make sure you get the RUU for your SPECIFIC DEVICE and CARRIER.

It will be a .exe file.

Run the file in windows. Go through a couple of the steps like accepting the license but don't run it all the way through.

In the windows explorer address bar type %temp%.

Search for rom.zip in the %temp% folder. Use the file explorer search function.

Copy the rom.zip to the desktop.

Rename the Rom.zip to 0PM9IMG.zip

Copy the 0PM9IMG.zip to a sd card and put it in the phone.

Reboot the phone to download mode.

After powering down, press Volume Down and while pressing Volume Down, press Power holding both buttons to start the device into Bootloader mode (now Download mode for One M9 and newer devices). If you have difficulty, power up normally, go to Settings->Battery and deselect Fast boot. Power down and try again.
Connect phone to COMPUTER !! o_O
Then select from the menu. reboot to download mode

Now the phone should ask you if you want to install the .zip.

Press the volume up button to begin.
The phone will reboot and and say the same thing again.
Press the volume up button again to start the update.

Now don't touch anything until the phone says complete.
It will reboot a few times and do a bunch of stuff.

The first reboot after the install takes a long time. It will sit on the HTC logo for quite a wile. Don't get nervous just let it do it's work.

You are now running Marshmallow.

If you run into any trouble let me know.
I am happy to help out.

PS
You may ask why not just use the HTC Windows RUU program to load the update?
The program does not work well. I find it a bit frustrating. So getting the rom.zip from the temp folder and renaming / copying to the SD card is easier.

It is much more reliable and you don't have to worry about losing the USB connection or a windows glitch killing your phone. Much safer flashing from the SD.
 
  • Like
Reactions: stiza13
Upvote 0
On a side note I have been working on building a new developer tool for this phone.
I have a method to change the factory key and sign rom files that will pass the stock recovery. "AUTO-KEY" The phone is pretty locked down and some partitions you cannot flash with TWRP. So we needed a way to flash through factory recovery.

Ultimately I hope to create a solution for S-Off that is free.

I also have successfully downgraded to Lollipop using the Lollipop RUU that is no longer available on the HTC site. Save any old RUU you have if you have any.

To downgrade you have to edit the mainver in the MISC partition.
Which is a topic best left for a separate thread.

If you need to or want to downgrade let me know and I will help you out.

In the meantime keep an eye out for the release of
Auto-Key-HTC.

Soon to be your all in one HTC Flashing / Developer tool.
 
  • Like
Reactions: danielinirving
Upvote 0
@Antel1904

When I started this thread the only way to update to marshmallow was with the OTA....

Hey bro, thanks for answering :)
This is a big help, I'm out of country right now but I'll try it when I get home (tonight) I just have a few questions:
Would I get wiped?
Can I root again after the update?
Can I install the same TWRP recovery for lollipop in the marshmallow?
And one more thing, thanks for the speed, the notification woke me up this morning xD worked better than my alarm lol

Quick edit, I can't find the marshmallow ruu file for metropcs, just the lollipop u.u
- I just got another phone (same model) and already updated to 6.0, can I root it with the twrp recovery for lollipop? Or I can't do that?
 
Last edited:
Upvote 0
  • Like
Reactions: danielinirving
Upvote 0
Hey bro, thanks for answering :)
This is a big help, I'm out of country right now but I'll try it when I get home (tonight) I just have a few questions:
Would I get wiped?
Can I root again after the update?
Can I install the same TWRP recovery for lollipop in the marshmallow?
And one more thing, thanks for the speed, the notification woke me up this morning xD worked better than my alarm lol
The ruu list as lollipop but its not its marshmallow. So just download it.
Yes your phone will be wiped. Factory out of the box condition.

Yes you can root.
Just install the newest twrp.
https://twrp.me/devices/htcdesire626s.html
And then flash
https://download.chainfire.eu/969/SuperSU/
Back to rooted again.

New phone.
Unlock bootloader and flash twrp install supresu.

Good 2 go.
Í thought so xD
Í already did the update, í went out to pick my Sister up at school, the Phone was left on "starting services.. "
I'll root it when I get back,but I used the ruu exe, I couldn't use the zip :(
But hey! I'm done :) thank you :)
 
Upvote 0
On a side note I have been working on building a new developer tool for this phone.
I have a method to change the factory key and sign rom files that will pass the stock recovery. "AUTO-KEY" The phone is pretty locked down and some partitions you cannot flash with TWRP. So we needed a way to flash through factory recovery.

Ultimately I hope to create a solution for S-Off that is free.

I also have successfully downgraded to Lollipop using the Lollipop RUU that is no longer available on the HTC site. Save any old RUU you have if you have any.

To downgrade you have to edit the mainver in the MISC partition.
Which is a topic best left for a separate thread.

If you need to or want to downgrade let me know and I will help you out.

In the meantime keep an eye out for the release of
Auto-Key-HTC.

Soon to be your all in one HTC Flashing / Developer tool.
would love to see ahat become a reality
 
Upvote 0
would love to see ahat become a reality

Good News.
I developed a SD card that boots when put into the phone.
Currently it is for the desire 526 Verizon model that is not supposed to be unlocked.

I am very close to having FREE S-Off.

The problem i'm running into is the creators of Sunshine that charge $25.00 for S-off are doing there best to discredit my work.

The community as a whole needs to verify my work and support getting S-Off for free.

See Here
https://forum.xda-developers.com/desire-526/general/verizon-htc-desire-526-boot-loader-root-t3587118
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones