[How to] Flash the Firmware.zip without problems - HTC One X

It was a need to "oem lock" and "oem unlock" my device more than once. I always have had the problem with flash the Stock because sometimes it was working, sometimes not.
Now I found a damn easy solution for this:
1. Download this file (http://www.multiupload.nl/91MRI6QY1J)
2. Extract this
3. Copy your valid firmware.zip file inside
4. Rename it your firmware.zip to rom.zip
5. Jump to the bootloader
6. Select "fastboot" with USB connected
4. Start the ARUWizard.exe
5. Enjoy - the flash will go on
My file at http://www.multiupload.nl/91MRI6QY1J (HoxFlash.zip) is the complete RUU.exe extracted but without the rom.zip inside. The only different is that I have hidden all files except the ARUWizard.exe.
Might be not the Master Trick for flashing the device but if you run in troubles it's a damn good solution. I have a fu****g T-Mobile device and after flashing and relock and unlock it seems my partition table becomes corrupt.
Keep in mind that you can't flash a lower hboot version but it's possible to flash the current and same hboot version.
You need to have your device "OEM LOCKED" bevore you run the ARUWizard.exe. If not it will fail with the Message that you don't have the right ARUWizard.
Hope you enjoy this!

Many thanks! It worked for me on AT&T HTC One X when I was not able to flash full firmware (it returned 159 error), so I have flashed firmware.zip using your manual and flashed .zip frimware with recovery after this. Thanks

Related

Manual 1.29 upgrade [HTC One X International]

So my HTC One X was at 1.15 and wasn't prompting me to upgrade, and I found a way to manually update to 1.29. This only works for the international Tegra3 version.
1.First, you need to have the fastboot files extracted and have a rooted HTC One X with Clockworkmod Recovery installed. Also, I would advise a nandroid backup via Clockworkmod.
2. Download the .zip attached and put it in the fastboot folder.
3. Extract the Boot.img file and put it in the same folder.
4. With the phone on, plug in the USB and copy the .zip to the root of the phone memory.
5. Now turn off the phone and boot into the bootloader (with usb disconnected) and then plug in the usb. Open a command window in the fastboot folder by shift-right-clicking it in explorer.
6. type "fastboot flash boot boot.img"
It should say OK.
7. Then boot into clockworkmod recovery after disconnecting the usb cable and choose install zip from sd card. Choose the zip you copied and click yes. Reboot the phone using the menu option and you should see a dialog that says Android is Upgrading Optimizing application 1 of 300.
Done! Your phone should now be at software version 1.29 and you should see a three-dot menu instead of the rectangles.
The zip can be found here: loadbalancing.modaco.com/download.php?file=Ir1-1.29.401.11-DUO-endeavor.zip
I found the guide after a lot of googling on this blog: androidtobe.blogspot.co.uk/2012/05/htc-one-x-detailed-instructions-to.html
I'm assuming you were on 1.15 401.x? You could have just run the 1.29.401.12 RUU when connected in fastboot - a LOT easier and doesn't involve unlocking the bootloader and losing your warranty
Also, Paul O'Brien doesn't allow people to direct link to his ROMs on MoDaCo so I'd remove the link

Fixing HBOOT .95 stuck in bootloop/not charging

I am posting this in the hopes it might help someone that has a similar problem. I personally went down a lot of wrong roads before stumbling across the answer. Maybe that is me but like many issues all the answers were here in XDA they were just a little hard to find. If you are facing this problem here they are in one place/
Initially I was faced with a non-charging, boot looped HOX International
Many thanks to [email protected]|-|oR, teemo, Thant who got me through this.
HOX International Endeavoru
S-On
HBOOT 0.95
Version-main 1.29.401.11
oem readcid H_Y13-2.17.401.2
Stuck in boot loop. Device would not charge, would only run when on usb and then only go to bootloader screen. After a few minutes connection and phone would die. This is the worst possible situation if you have anything more than this it will work as well
The phone was unlocked.
Should work on either Windows, Mac, Linux as long as you have adb and fastboot installed (I use Linux)
This can all be done without ever having a working phone until process is completed.
Step One - Install a recovery CWM 5.8.4.0
On your pc download 5.8.4.0 from http://forum.xda-developers.com/show...5#post24738635
Personally I renamed it to somethingeasy.
Open a terminal (in Linux as long as fastboot is in your path it doesn't matter, in Windows you will need to be in the directory that has fastboot) Now flash the recovery.
Code:
fastboot flash recovery somethingeasy.img
Make sure it completes with no errors. This is an old recovery and should not be a problem for the device.
This recovery will (among other things) give you the ability to mount the phone on your box easily so you can copy files over.
Step 2 - Give the phone a chance to charge
Reboot the phone into recovery (or the bootloader and select recovery) which will allow the battery to charge.
Step 3 - Find a file to update your HBOOT
The major issue here is HBOOT 0.95 since it won't allow you to do a native update in the phone OS from an OTA. For me it refused to accept anything I downloaded on the phone after I restored from a nandroid backup so I just skipped that step.
By going to http://forum.xda-developers.com/showthread.php?t=1957376
Then find a file that matches your realcid. In my case that was a H_Y13 with 401 file. As in x.xx.401.2
Download that file and put it in your fastboot directory.
Step 4 - Relock the phone
Boot the phone into the bootloader select fastboot usb. Open a terminal and type
Code:
fastboot oem lock
Step 5 - Follow the steps on http://forum.xda-developers.com/showthread.php?t=1957376
Follow the steps from thread above:
Rename the downloaded file to firmware.zip and open a terminal
Code:
fastboot oem rebootRUU
and wait for device to reboot. It will come up with an HTC screen, be patient
Code:
fastboot flash zip firmware.zip
and wait for process to complete, again be patient it will work as noted on the link above sometimes flashing for the first time doesn't work, so flash firmware.zip again just to make sure (and in my case it did not and I had to flash twice)
Code:
fastboot flash zip firmware.zip
and wait for process to complete
Code:
fastboot reboot
Then find your original unlock code from HTC dev or just do the whole unlock http://www.htcdev.com/bootloader/ again from the HTC site
Step 6 Reflash the recovery from above
Next reflash the HOX recovery from above we called somethingeasy.img
Code:
fastboot flash recovery somethingeasy.img
Boot into recovery
Wiped system, data, cache
now follow the steps from http://forum.xda-developers.com/showthread.php?t=2630225 or whatever ROM you want. In my case my HBOOT was upgraded to 1.72, just in time to get ready for Lollipop. Hope this is of help to someone.

[Q] Help! Can not update due to corrupted Recovery.

Hello, I have root access on my HTC one Phone and that's it, I kept it as stock as possible
everytime I get an OTA I flash the stock recovery instead of TWRP to get the update then I reflash TWRP
for the 1st time I couldn't update to the latest one, kept on getting a red triangle with an exclamation mark
when I tried many things I found out that the recovery is corrupt (each time I try to enter stock recovery I get the red triangle with !)
Any suggestions on what I should do? I can't even flash RUU because of the recovery.
ab.riyami said:
Hello, I have root access on my HTC one Phone and that's it, I kept it as stock as possible
everytime I get an OTA I flash the stock recovery instead of TWRP to get the update then I reflash TWRP
for the 1st time I couldn't update to the latest one, kept on getting a red triangle with an exclamation mark
when I tried many things I found out that the recovery is corrupt (each time I try to enter stock recovery I get the red triangle with !)
Any suggestions on what I should do? I can't even flash RUU because of the recovery.
Click to expand...
Click to collapse
Transfer the OTA file from your downloads folder to your PC and open it with 7zip. Then open the firmware zip that is in it and find the recovery.img
Flash that to your phone. Then run the OTA again.
xunholyx said:
Transfer the OTA file from your downloads folder to your PC and open it with 7zip. Then open the firmware zip that is in it and find the recovery.img
Flash that to your phone. Then run the OTA again.
Click to expand...
Click to collapse
Interesting solution, will try it out.
Just to clarify, the OTA you've mentioned should contain the recovery of the new firmware I.e. for the Lollipop update.
Because I am still in kitkat and the OTA I want to flash is the Lollipop one, is it okay to flash a lollipop recovery on my kitkat ?
xunholyx said:
Transfer the OTA file from your downloads folder to your PC and open it with 7zip. Then open the firmware zip that is in it and find the recovery.img
Flash that to your phone. Then run the OTA again.
Click to expand...
Click to collapse
I did what you've mentioned and I couldnt update, I do not get a red triangle with an exclamation mark, and I can also load into the stock recovery.
but when I try to OTA update i get a message says there is an Error in the file (the OTA file) and also some kind of verification error.
I also tried to flash RUU but it gave me the following Error:
sending 'zip' (546333 KB)...
OKAY [ 21.860s]
writing 'zip'...
(bootloader) signature checking...
FAILED (remote: 12 signature verify fail)
finished. total time: 42.661s
Any idea whats happening? I relocked the bootloader to flash RUU.
Post result of fastboot getvar all (delete serial no. & imei no.)
"verification error" suggest that you may have wrong ROM on wrong device version.
ckpv5 said:
Post result of fastboot getvar all (delete serial no. & imei no.)
"verification error" suggest that you may have wrong ROM on wrong device version.
Click to expand...
Click to collapse
Sure I will soon,
but I did not flash a ROM since I got the phone, only root access and TWRP recovery, iv been getting OTA updates with no issues before this one.
Even RUU doesn't work (although I never tried it before)
ckpv5 said:
Post result of fastboot getvar all (delete serial no. & imei no.)
"verification error" suggest that you may have wrong ROM on wrong device version.
Click to expand...
Click to collapse
I tried RUU again, this time with a different file (I downloaded the earlier one from HTC dev page, but I still got the same error <(bootloader) signature checking...
FAILED (remote: 12 signature verify fail)
finished. total time: 115.740s>
Attached is my Phone Details and the error I get when I try updating by OTA.
In Summary, this is my situation:
Phone was rooted, but never flashed a ROM
Flashed recovery extracted from OTA file
UnRoot the phone from SuperSU settings (although my root checker still says i have root)
Relocked Bootloader to flash RUU
Can't Flash RUU I get the mentined error.
Cant update by OTA, i get the attached error
Im trying to resist flashing a ARHD rom, but kept it as a last resort
Any Ideas???
RUU from HTCDev page ? I guess that's not RUU but kernel source zip.
Your problem is not corrupted recovery but you have system files modified/removed as shown in your screenshot.
You have two choices here :
A. Restore system part only from a Nandroid
1. Unlock bootloader
2. Install TWRP 2.8.5.0 - http://techerrata.com/browse/twrp2/m8
command fastboot flash recovery openrecovery-twrp-2.8.5.0-m8.img
3. Download TWRP backup 3.28.401.9 - https://mega.co.nz/#!VQgnECRS!asb9fd5ZHF3lf0e0iqmw0QIEc3sYS7JDTjjzi-hXvuo
4. Download stock 3.28.401.9 recovery - http://sourceforge.net/projects/htconem8/files/Recovery/3.28.401.9_recovery.img/download
5. Extract the downloaded 3.28.401.9_ckpv5.zip on PC
6. Boot to TWRP recovery and make a backup of boot only, this is to see where the backup goes on your device.
7. Connect device to PC, select Mount, enable MTP then open Internal Storage, TWRP/BACKUPS/SerialNo./
8. Transfer the extracted 3.28.401.9 folder (not 3.28.401.9_ckpv5 folder) and its content to the backup path on your device
TWRP/BACKUPS/SerialNo./3.28.401.9
9. Restore the transferred backup - tick only boot & system - swipe to restore (this way you can keep your data)
10. In reboot select bootloader
11. fastboot flash stock recovery that you downloaded - command fastboot flash recovery 3.28.401.9_recovery.img
12. reboot - check for OTA, download, install (you should have one OTA to 4.16.401.10)
13. done
OR
B. Use a correct RUU to restore everything and even wipe your internal storage
Check @EddyOS thread for all files needed : http://forum.xda-developers.com/showthread.php?t=2735235
You can skip step 1 & 2 - but relock bootloader as your device is S-On.
ckpv5 said:
RUU from HTCDev page ? I guess that's not RUU but kernel source zip.
Your problem is not corrupted recovery but you have system files modified/removed as shown in your screenshot.
You have two choices here :
A. Restore system part only from a Nandroid
1. Unlock bootloader
2. Install TWRP 2.8.5.0 - http://techerrata.com/browse/twrp2/m8
command fastboot flash recovery openrecovery-twrp-2.8.5.0-m8.img
3. Download TWRP backup 3.28.401.9 - https://mega.co.nz/#!VQgnECRS!asb9fd5ZHF3lf0e0iqmw0QIEc3sYS7JDTjjzi-hXvuo
4. Download stock 3.28.401.9 recovery - http://sourceforge.net/projects/htconem8/files/Recovery/3.28.401.9_recovery.img/download
5. Extract the downloaded 3.28.401.9_ckpv5.zip on PC
6. Boot to TWRP recovery and make a backup of boot only, this is to see where the backup goes on your device.
7. Connect device to PC, select Mount, enable MTP then open Internal Storage, TWRP/BACKUPS/SerialNo./
8. Transfer the extracted 3.28.401.9 folder (not 3.28.401.9_ckpv5 folder) and its content to the backup path on your device
TWRP/BACKUPS/SerialNo./3.28.401.9
9. Restore the transferred backup - tick only boot & system - swipe to restore (this way you can keep your data)
10. In reboot select bootloader
11. fastboot flash stock recovery that you downloaded - command fastboot flash recovery 3.28.401.9_recovery.img
12. reboot - check for OTA, download, install (you should have one OTA to 4.16.401.10)
13. done
OR
B. Use a correct RUU to restore everything and even wipe your internal storage
Check @EddyOS thread for all files needed : http://forum.xda-developers.com/showthread.php?t=2735235
You can skip step 1 & 2 - but relock bootloader as your device is S-On.
Click to expand...
Click to collapse
I would rather use option B sounds much easier, plus i backed up my internal SD already. but I just want to confirm what you mean by correct RUU? I used the HTC Dev one first (like u said its not an RUU) but then I used one I downloaded from this XDA thread http://forum.xda-developers.com/showthread.php?t=2701376
the RUU file name is: 0P6BIMG_M8_UL_L50_SENSE60_MR_HTC_Europe_4.16.401.10_Radio_1.25.214500021.06G_20.68.4196t.01_F_release_417809_signed.zip
it gave me the same error I mentioned above (where it says verification error), should I try downloading another RUU file?
Check the thread that I linked. You need one more file htc_fastboot.exe and how to run it,
there are two different commands, 1- to put device in RUU mode, 2- flash the zip
You also can use RUU.exe instead of RUU.zip : https://drive.google.com/file/d/0B17smFr95pleeTQ5U1NzNkZzM0U/view
Just boot to bootloader, relocked bootloader and run the RUU.exe (select run as administrator in Windows Explorer context menu)
ckpv5 said:
Check the thread that I linked. You need one more file htc_fastboot.exe and how to run it,
there are two different commands, 1- to put device in RUU mode, 2- flash the zip
You also can use RUU.exe instead of RUU.zip : https://drive.google.com/file/d/0B17smFr95pleeTQ5U1NzNkZzM0U/view
Just boot to bootloader, relocked bootloader and run the RUU.exe (select run as administrator in Windows Explorer context menu)
Click to expand...
Click to collapse
I have Fastboot installed, and I know the commands to flash RUU (thats what I used to flash it the time it failed)
Anyways, not I tried using the exe file you provided and it gave me the following:
ERROR [155]: UNKNOWN ERROR
the ROM Update Utility cannot update your Android Phone.
Please get the correct ROM Update Utility and try again.
This is very weird, thanks for your help, any other ideas?
Note: My bootloader is relocked using Fastboot oem lock command, I did it before running RUU but still get an issue!
ERROR 155 - bootloader is not relocked
Did you relock bootloader before you run RUU ? Is the RUU run in as Administrator ?
If you did relocked, then I'm run out of idea.
Left you with the nandroid way only
You can ask in that thread about RUU problem ... I'm more on nandroid type.
ckpv5 said:
ERROR 155 - bootloader is not relocked
Did you relock bootloader before you run RUU ?
View attachment 3170296
Click to expand...
Click to collapse
Yes I did, I relocked before trying both zip RUU and exe one.
When I go into bootloader it says **Relocked** on top.
That's why I'm confused why RUU isn't working.
Your problem is only one "reboot" file that you need the original one. I don't keep that version file on my PC, if not I can give you a flashble zip to flash only that one particular file.
ab.riyami said:
Yes I did, I relocked before trying both zip RUU and exe one.
When I go into bootloader it says **Relocked** on top.
That's why I'm confused why RUU isn't working.
Click to expand...
Click to collapse
To flash the RUU.zip you HAVE to use htc_fastboot.exe - NOT the one that you get from Google as it doesn't support the larger ZIP file size. If you try and use the Google one you'll get an error 12
EddyOS said:
To flash the RUU.zip you HAVE to use htc_fastboot.exe - NOT the one that you get from Google as it doesn't support the larger ZIP file size. If you try and use the Google one you'll get an error 12
Click to expand...
Click to collapse
I did tell him that he needs to have that htc_fastboot.exe from your thread ... he needs to confirm he did use that particular htc_fastboot.exe or not
ckpv5 said:
I did tell him that he needs to have that htc_fastboot.exe ... he needs to confirm he did use that particular htc_fastboot.exe or not
Click to expand...
Click to collapse
I know, I was just going on the fact he says he knows what he's doing with fastboot, but perhaps not knowing about the HTC one
ckpv5 said:
Your problem is only one "reboot" file that you need the original one. I don't keep that version file on my PC, if not I can give you a flashble zip to flash only that one particular file.
Click to expand...
Click to collapse
I see, It will be great if I can get a flashable zip file.
but If you cant, do you reckon if I try these steps it might work?
1. Unlock my bootloader.
2. Flash TWRP
3. Flash Revolution ROM version 34.1 (lollipop).
4. Flash stock recovery (the version which is extracted from HTC's latest OTA).
5. Flash RUU using fastboot zip flash method.
What do you think?
Or should I follow the method you mentioned earlier?
ab.riyami said:
I see, It will be great if I can get a flashable zip file.
but If you cant, do you reckon if I try these steps it might work?
1. Unlock my bootloader.
2. Flash TWRP
3. Flash Revolution ROM version 34.1 (lollipop).
4. Flash stock recovery (the version which is extracted from HTC's latest OTA).
5. Flash RUU using fastboot zip flash method.
What do you think?
Or should I follow the method you mentioned earlier?
Click to expand...
Click to collapse
No point ...
If you're going to do step 5, then no need step 1-4, what you need is use that htc_fastboot.exe not google fastboot.exe
Or
If you do have lollipop ROM, just extract out "reboot" file from system/bin and later replace this on your stock ROM. Use TWRP File manager to replace it and put permission chmod 755 (but I guess this is harder for you)
Cool, I'll try flashing with HTC_fastboot, didn't know there is a difference, hopefully it will work ?

Trouble installing RUU?

I'm trying to install the latest RUU for my developer edition. The RUU loads till the point where I accept the agreement and then nothing. I'm on Windows 8.1. Here is where I got the RUU from http://www.htc.com/us/support/htc-one-m8/news/
Any idea why is this happening or how to fix it? I'm having all sort of problems with the phone at the moment. I'm giving a RUU a try to see if it fixes it.
Thanks in advance!
Same thing happens to me, no idea why. Works fine in Windows 7. some people say it's to do with needing a C++ Update but that didn't work for me either
What you can do, though, is once at the T&Cs screen, open a run box and type in %temp% and it'll take you to the Temporary Files folder on your PC and if you look at the newest folders there should be 2. One will contain a compressed file called 'rom'. Copy this to your Desktop, then to a microSD card and flash that via HBOOT or flash it via RUU mode using htc_fastboot.exe (which you can find here)
EddyOS said:
Same thing happens to me, no idea why. Works fine in Windows 7. some people say it's to do with needing a C++ Update but that didn't work for me either
What you can do, though, is once at the T&Cs screen, open a run box and type in %temp% and it'll take you to the Temporary Files folder on your PC and if you look at the newest folders there should be 2. One will contain a compressed file called 'rom'. Copy this to your Desktop, then to a microSD card and flash that via HBOOT or flash it via RUU mode using htc_fastboot.exe (which you can find here)
Click to expand...
Click to collapse
Could you refer to this C++ update if you happen to remember which one?
How do I flash the rom file through HBOOT or the RUU mode using htc_fastboot.exe (87.7 KB)?
To flash the ZIP in RUU mode
fastboot oem rebootRUU
htc_fastboot flash zip rom.zip
And unfortunately no, I don't know which update it was as didn't work
EddyOS said:
To flash the ZIP in RUU mode
fastboot oem rebootRUU
htc_fastboot flash zip rom.zip
And unfortunately no, I don't know which update it was as didn't work
Click to expand...
Click to collapse
I've never done this through RUU mode before, so I'll double check with you.
I'll open normal fastboot. Copy the rom.zip to the root of theSD Card or to the same folder where fastboot is? Also where to place HTC_fastboot.exe, same as fastboot or in the root of SD Card? Then I'll enter the command fastboot oem rebootRUU then htc_fastboot flash zip rom.zip? I'm sorry for the basic questions, thanks a lot!
If you're flashing it manually you don't copy it to your phone, just put it in your fastboot folder along with the htc_fastboot file and then do it all with the phone in fastboot mode
This is the same like applying the RUU exe? This will wipe everything and install everything from zero, right? On HBOOT I have a modified software status , is this going to be fixed as well?
Yep, completely resets the phone to factory defaults
EddyOS said:
Yep, completely resets the phone to factory defaults
Click to expand...
Click to collapse
@EddyOS
Sorry for asking more questions, but last time I applied a RUU was with my M7 when I first bought it. If I'm going to apply the RUU exe, does i have to be on fastboot or while the phone is on? Flashing the rom.zip, do I have to flash or format anything through fastboot or should reboot fastboot or simply reboot the phone? Applying RUU, does it reinstall HBOOT? Sorry and thanks again!
My previous post answers your last bit - it puts EVERYTHING back to factory and the latest versions
RUU.exe you can run when in Android or in fastboot mode, RUU.zip HAS to be flashed in RUU mode.
I've said everything you need to know so if you still don't get it, don't bother trying it
EddyOS said:
My previous post answers your last bit - it puts EVERYTHING back to factory and the latest versions
RUU.exe you can run when in Android or in fastboot mode, RUU.zip HAS to be flashed in RUU mode.
I've said everything you need to know so if you still don't get it, don't bother trying it
Click to expand...
Click to collapse
I'm just making sure. I don't have another phone at the moment and limited 3G internet connection, so I don't want to get stuck with the phone not working or downloading things twice. Sorry for repeating the same questions though
hello...sorry for the noob question....is there a way for me to install the RUU in linux....in window 7....it is always askin for me to install drivers...etc...n error msg...device not found...etc....i dont have those errors in linux....
never mind...I found it...

HTC 10 - OEM Unlocked - TWRP Recovery - SuperSU Rooted - Sunshine S-OFF

I had the hardest time figuring out the whole unlock, root and install ROM on my HTC 10. The biggest issue was that I encrypted my phone, and most guides did not take that into consideration. After consolidating all my notes from multiple sources on the interweb, here's what I have.
GOAL: To have an HTC 10 that is OEM unlocked, custom recovery on board, rooted and has S-OFF setting. This will allow for most flexible customization of software and ROM choices. This may affect your warranty, so proceed with caution.
ASSUMPTIONS: This guide is for an American stock T-Mobile HTC 10 phone with a separate microSD card. It may work with other carriers or countries, but I honestly don't know for sure. This is also written for a Windows PC with access to microSD. You have time and $25 to spare. Money is for a certain unlocking app; not for me. You understand the meaning of bootloader unlocked, custom recovery, rooted, S-OFF and custom ROM. Please look elsewhere for what these mean. They are not synonymous.
GENERAL STEPS:
Prepare stock phone for unlocking and rooting
OEM unlock the phone
Install custom recovery software
Backup stock phone image
Install root access software
Install S-OFF software
Install custom ROM
Download required software
Create folder C:\android
Download and install HTC Hotsync Manager to recognize the device by USB.
Download Google's Android Platform Tools. Unzip and place files in C:\android. Unless you want to waste 4GB of time and storage, you can also download the full Android Studio.
HTC's custom fastboot.exe will be downloaded later on.
Download latest TWRP for HTC 10. Copy file into C:\android
Download latest SuperSU. Copy file into C:\android then copy it to the microSD card.
Download latest Sunshine. Copy file into C:\android then copy it to the microSD card.
Download ROM zip file
Pick a ROM to download. Can get custom ones as listed in xda forums page. Copy ROM zip file into C:\android. If you pick a custom ROM, disregard the rest of this section.
Or pick a stock HTC ROM from website. Can pick most recent ROM for specific carrier or the Unlocked/Developer ROM.
To extract ROM zip file from *.exe, do the following.
Download Microsoft Process Monitor. Unzip folder and run program.
Press CTRL-L to set proper filters: "Process name", "is", [name of ROM with .exe] > click Add; "Path", "contains", "rom.zip" > click Add > Click OK
Run the ROM exe. Do not "install" it. Just run the program to start the "process". Go back to Process Monitor and look for the temp folder that the installer extracted the files to.
Go to the temp folder above that contains the rom.zip. Copy this to C:\android
Close the ROM exe install program.
Get CID for the HTC ROM. Open multi-volume zip archive via Winrar. The usual Windows zip cannot open multi-volume archives. DO NOT extract the file. But find the text file within the ROM zip archive that contains CID, and write it down for later (just keep opening text files; some will be errors; some will open; it'll be obvious). The phone's CID and the ROM's CID must match (more on this later).
Prepare stock phone for unlocking and rooting
Save/backup everything to the cloud or microSD. All data will be deleted with this process!!
Turn on Developer options: Settings > About > Software information > More > tap "Build number" many times until you see "You are now a developer".
Settings > Developer options > check "OEM unlocking", check "USB debugging"
Reboot to Download Mode via Volume-Down+Power. Do not let go of the buttons until you see the gray HTC on a black screen (otherwise won't boot to Download Mode).
HTC OEM Unlock The Phone
Go to HTCdev website. They have screwy SSL certificate and port forwarding. You will have to create a login; and so I recommend making sure it is https -- unless you don't care. Click on Unlock Bootloader and select HTC 10. Go through all the usual prompts.
No need to download all the files on the right side panel. They were already downloaded up above.
Be sure to download the HTC Windows fastboot.exe in Step 4. In C:\android rename Google's version to fastboot-google.com and then unzip and place HTC's version into this folder.
Plug in phone (make sure it is in Download Mode) to PC.
Open command prompt. Press WINDOWS+R and type cmd. In command prompt type cd \android
In C:\android> type fastboot oem get_identifier_token
As the HTCdev website shows, copy all the text between (and including) <<<< Identifier Token Start >>>> and <<<<< Identifier Token End >>>>> into the appropriate part of the website. Make sure the extra text/characters are not included (see example from HTCdev site).
Go to email and download Unlock_code.bin sent by HTCdev. Save this file to C:\android>
In C:\android> type fastboot flash unlocktoken Unlock_code.bin
Press Volume-up or -down on phone and select YES for OEM unlock.
Allow phone to reboot and do a factory reset.
After factory reset, reboot to Download Mode via Volume-Down+Power
Flash TWRP Custom Recovery Software to Phone and Prepare for SuperSU
In C:\android> type fastboot flash recovery [twrp-file-downloaded-above]
After flashing TWRP, you MUST do a hardware reboot by pressing Volume-Down+Power. If you allow reboot by any other method, phone will erase TWRP. For example, do not use adb or fastboot to reboot at this point.
Use Volume-up and -down buttons to highlight reboot to bootloader and press Power button to select it; then do the same for boot to recovery mode.
TWRP now loads
If you happen to have encrypted your phone, you MUST enter your password here. To get phone rooted, a file needs to be created in /data/ folder. This folder can only be accessed by TWRP after putting in encryption password.
If your phone is not encrypted, TWRP should not ask for a password.
Swipe right to access TWRP (cannot use TWRP in read-only mode, if you want it to do anything to the phone ... duh).
Go to Advanced > Terminal
In # type echo KEEPFORCEENCRYPT=true >> /data/.supersu
Backup Working Phone System Image
Unless you've done this before, you will likely miss a step or two. Doing so may end up with a bootloop or other error where you can't get to a user interface. Backing up your system now is a MUST.
While in TWRP, go to Backup. Select all the folders. Rename the file to something meaningful to you. Be sure it saves to microSD card.
Now do the back up.
Install SuperSU Root Access and Prepare for Sunshine
While in TWRP, go to Install.
Select the microSD and then the most recent SuperSU file you copied there earlier.
After install, select Reboot. If phone is encrypted, you will be asked to enter password, and it will likely reboot another time or two.
After phone boots up, load the SuperSU app and go through all the prompts.
Go to Settings > Security > check "Unknown sources"
Install Sunshine S-OFF App
Go to Settings > Storage > sd card (e.g., "New Storage") > select sunshine-latest.apk
Run Sunshine app
Select Grant when SuperSU pops up. If you see this pop up, your phone was successfully rooted.
Pay Sunshine $25. If you want S-OFF, I don't know of any alternatives.
Go through all prompts. Phone will likely reboot. This is part of the process. If Sunshine does not load after reboot, then load it up again and go through all the prompts. You'll have success, once the phone automatically turns off.
Turn on to Download Mode via buttton combo. This will confirm if phone is UNLOCKED and S-OFF
If you will be changing your CID later on, note all settings here (including CID) and save in case you want to revert to this state.
Alternatively, you can get the CID and MID by fastboot.
Connect phone (make sure in Download Mode) and connect to PC. In C:\android type fastboot oem readcid and then fastboot getvar mid
Install Custom ROM to HTC 10 Phone
If you used a custom ROM from the usual sources via XDA, then follow their instructions. Disregard the rest.
DO NOT perform the steps below unless the ROM is from the official HTC ROM website above for HTC 10.
For using HTC Unlocked/Developer ROM, you must change your phone's CID. If the CID on your phone does not match the ROM CID, then you will see an error before ROM installation begins.
Plug in phone (while in Download Mode) to PC
Note CID in HTC ROM text file above. It should have been BS_US001
The following step requires S-OFF. The $25 step above.
In C:\android type fastboot oem writecid [cid-code-eg-BS_US001]
Rename HTC ROM in C:\android to 2PS6IMG.zip. Copy file to microSD.
Reboot to Download Mode.
Press Volume-Up to install HTC ROM
After HTC ROM installation, TWRP recovery and SuperSU will be overwritten.
Reinstall TWRP as above.
Reinstall SuperSU as above.
Consider back up of system via TWRP onto microSD after completing all custom ROM installation, recovery flashing and rooting.
And you're done. Congrats!!
These days you'll have a better time using Magisk than SuperSU for systemless root and it'll allow you to use Android Pay as well.
Does this process remove the carrier SIM lock as well?
Sent from my HTC 10 using XDA-Developers Legacy app
Simpody said:
Does this process remove the carrier SIM lock as well?
Click to expand...
Click to collapse
No, Sunshine (nor any other app that I'm aware of) has any function affecting SIM lock. Sometimes there are other ways to hack that ability but I've never had to do it so I don't know where to suggest.

Categories

Resources