1. Download our Official Android App: Forums for Android!

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

Discussion in 'Android Development' started by Bigcountry907, Aug 1, 2016.

  1. Bigcountry907

    Bigcountry907 Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    88
    Posts:
    212
    Joined:
    Oct 15, 2015

    Oct 15, 2015
    212
    211
    88
    Male
    CNC Programmer
    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.





     

    Advertisement

  2. Bigcountry907

    Bigcountry907 Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    88
    Posts:
    212
    Joined:
    Oct 15, 2015

    Oct 15, 2015
    212
    211
    88
    Male
    CNC Programmer
    Erie PA
    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 [​IMG] > 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 [​IMG] > 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.
     
  3. Antel1904

    Antel1904 Lurker
    Rank:
    None
    Points:
    5
    Posts:
    5
    Joined:
    Aug 16, 2016

    Aug 16, 2016
    5
    0
    5
    Male
    When is the rest coming? :eek:
    I need it :( when do you think it is going to be available?
     
  4. Bigcountry907

    Bigcountry907 Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    88
    Posts:
    212
    Joined:
    Oct 15, 2015

    Oct 15, 2015
    212
    211
    88
    Male
    CNC Programmer
    Erie PA
    @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.
     
    stiza13 likes this.
  5. Bigcountry907

    Bigcountry907 Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    88
    Posts:
    212
    Joined:
    Oct 15, 2015

    Oct 15, 2015
    212
    211
    88
    Male
    CNC Programmer
    Erie PA
    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.
     
    danielinirving likes this.
  6. Antel1904

    Antel1904 Lurker
    Rank:
    None
    Points:
    5
    Posts:
    5
    Joined:
    Aug 16, 2016

    Aug 16, 2016
    5
    0
    5
    Male
    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?
     
    #6 Antel1904, Aug 17, 2016
    Last edited: Aug 17, 2016
  7. Bigcountry907

    Bigcountry907 Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    88
    Posts:
    212
    Joined:
    Oct 15, 2015

    Oct 15, 2015
    212
    211
    88
    Male
    CNC Programmer
    Erie PA
    danielinirving likes this.
  8. Antel1904

    Antel1904 Lurker
    Rank:
    None
    Points:
    5
    Posts:
    5
    Joined:
    Aug 16, 2016

    Aug 16, 2016
    5
    0
    5
    Male
    Í 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 :)
     
  9. TheOldNite

    TheOldNite Lurker
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    Aug 18, 2016

    Aug 18, 2016
    3
    0
    5
    Male
    OK so I have Android 6.0 HTC desire 626s metropcs carrier , will the root work with Android 6.0 because last time I flashed twrp and a super su file it made my phone go on bootloop so I had to restore it with RUU. Or is this root only for the 5.1 lollipop version ?
     
  10. Antel1904

    Antel1904 Lurker
    Rank:
    None
    Points:
    5
    Posts:
    5
    Joined:
    Aug 16, 2016

    Aug 16, 2016
    5
    0
    5
    Male
    Don't worry bro, just make sure that you use the latest twrp and super su.zip, I made the mistake of using supersu 2.46 and went in to bootloop, but then I flashed 2.76 (without ruu) and everything went fine :)
     
  11. TheOldNite

    TheOldNite Lurker
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    Aug 18, 2016

    Aug 18, 2016
    3
    0
    5
    Male
    OK so then I can just go ahead and flash these currently running 6.0 Android? To get root
     
  12. Antel1904

    Antel1904 Lurker
    Rank:
    None
    Points:
    5
    Posts:
    5
    Joined:
    Aug 16, 2016

    Aug 16, 2016
    5
    0
    5
    Male
    Of course! Just make sure to use the latest files and you'll be ready to go :)
     
  13. Bigcountry907

    Bigcountry907 Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    88
    Posts:
    212
    Joined:
    Oct 15, 2015

    Oct 15, 2015
    212
    211
    88
    Male
    CNC Programmer
    Erie PA
  14. TheOldNite

    TheOldNite Lurker
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    Aug 18, 2016

    Aug 18, 2016
    3
    0
    5
    Male
    Thanks very much working like a charm now cheers :)
     
  15. danielinirving

    Rank:
    None
    Points:
    25
    Posts:
    3
    Joined:
    Nov 24, 2010

    Nov 24, 2010
    3
    0
    25
    would love to see ahat become a reality
     
  16. Bigcountry907

    Bigcountry907 Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    88
    Posts:
    212
    Joined:
    Oct 15, 2015

    Oct 15, 2015
    212
    211
    88
    Male
    CNC Programmer
    Erie PA
    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
     
  17. Kiubule

    Kiubule Lurker
    Rank:
    None
    Points:
    15
    Posts:
    1
    Joined:
    Sep 7, 2017

    Sep 7, 2017
    1
    0
    15
    Does anybody have a flashable .zip for 5.1 1.23.1550.3 stock metropcs??. I dont want to go marshmallow, i just need the flashable stock Rom . I cant download the RUU because my pc broke down so it would help me a lot if someone uploads the .zip file lollipop for MetroPCS htc 626s.
    Please help me .
     

Share This Page

Loading...