Fixing your bricked/bootlooping htc one v (primoc/primou) - HTC One V

Before you start, you will need to set up your computer to properly recognize the phone. You probably did this when rooting originally, but just in case... Install SDK tools for Android, Java runtime, and HTC Sync.
About HTC Sync: The only reason you need HTC Sync installed is for the USB drivers that come with it. But the program itself has been known to cause conflicts. Make sure that HTC Sync is not running in the background by opening Task Manager in Windows and killing it if you find it lurking in there.
Here we go:
1. Download the correct RUU (ROM Update Utility) for your device from androidfiles.org. Make sure you download a Primo_C RUU for a CDMA device (no sim card) or a Primo_U RUU for a GSM device (uses a sim card)!! Also make sure you get the correct RUU for your carrier.
2. Charge the battery above 50% or for at least one hour. If the battery dies during the flashing process, you could hard brick the phone!
3. Run the RUU until the wizard comes up. While the RUU wizard is open, find the temporary folder it created. (Open Explorer in Windows and type %temp% in the navigation bar.) There will be two folders with long encrypted names. In one of them you will find ROM.zip. Open it with 7zip and extract recovery.img or recovery_signed.img. Put it in the location were you've installed Android SDK tools. This is the stock HTC Recovery and it is needed to run the RUU.
4. Boot the phone into bootloader (power off, hold down volume and press power) and highlight FASTBOOT using the volume rocker and pressing power. Then connect the USB cable. You should see FASTBOOT USB.
5. Open a command prompt in Windows and navigate to the folder where you installed Android SDK tools. Flash the stock recovery extracted in step 3 above using the following command:
Code:
fastboot flash recovery recovery.img
or
Code:
fastboot flash recovery recovery_signed.img
6. Relock the bootloader using the following command:
Code:
fastboot oem lock
7. Re-run the RUU. It will restore the device to it's original condition, locked (though *** RELOCKED ***) and unrooted.
Once the install is done you'll have unlock the bootloader again using the token you already have from the first time, reflash CWM Recovery and re-root. All this will be 10x easier than the first time.

Related

FAILED S-OFF with AlphaRev

Hello evrybody,
Let me explain you the problem
Current configuration: HTC Desire (Bravo) PVT1 (ship s-on)
Baseband/Radio 32.54.00.32U_5.14.05.17
Rooted with unrEVOked v3
ROM LeeDroid v2.4.1
HBOOT v0.80.0000
I tryed to s-off my phone with AlphaRev v1.8 using VirtualBox v4.0.6 (with usb 2.0 support add-on installed) under Windows 7 Pro x86 with SP1.
For some (unknown to me) reasons it didn't worked for me....
Current situation:
- Impossible to boot the OS - blank htc screen
- In Bootloader menu ("Power"+"Volume down") when trying to enter Clockwork Recovery Mod sometimes phone rebooting 4 times and sometimes it make 7 fast vibrations but anyways dropes me to blank htc screen...
- While I'm in Bootloader and connected through USB to PC, I can see that in Device Manager - Android Phone - Bootloader Interface detected (drivers OK)
Please help me.....
Did you ask on the alpha rev irc channel?
Since your phone is still able to start the bootloader, you should be able to get it back up running using fastboot.
Step1: Download some stuff.
- An image of your favorite recovery tool. I'm using clockworkmod recovery.
http://forum.xda-developers.com/showthread.php?t=1039954&highlight=clockworkmod
You want the .img file.
- The Android SDK. Use Google =)
Step2:
Start the SDK Manager and download the SDK Tools and SDK Platform Tools. You now should have a "fastboot.exe" in the "tools"-folder.
Step3:
Connect your phone via usb, boot up the bootloader, and enter fastboot mode.
Step4:
Open a command line window using shift+right click in the folder where fastboot is. Launch "fastboot.exe devices". This should list your device. If not, Download the USB Driver Package using the SDK Manager and install the fastboot drivers. Windows might start whining about not being able to find the driver, but its definitely there. If fastboot.exe fails to start, you might need to copy it to the platform-tools folder and/or run cmd.exe using administrator privileges.
Step5:
Copy your recovery image to where fastboot.exe is and execute "fastboot.exe flash recovery <yourrecoveryimage>"
Further Steps:
You should now be able to boot into recovery and install roms.
You can also try to flash hboot using fastboot. If this fails, you got a handy $400 mirror to put in your pocket. You've been warned
Download a suitable image from alpharev (i think you want to go with the stock s-off hboot - that one with 250MB system) and flash it using "fastboot.exe flash hboot <hbootimage>" like described above.
Hope that helps.
godutch said:
Did you ask on the alpha rev irc channel?
Click to expand...
Click to collapse
Thank you for you advice!
Yes, they provided me a huge support and despite my desperate case I will probably solve my problem very soon ----> GOLDCARD
I tryed to get back to original stock rom with a zip file but failed because didn't found my rom zip on google (ver.1.22.73.1)
when tryin to s-off use cyanogenmod 7 rom to s-off thats wat i was told and worked a charm
rearwheeldriver said:
Since your phone is still able to start the bootloader, you should be able to get it back up running using fastboot.
Step1: Download some stuff.
- An image of your favorite recovery tool. I'm using clockworkmod recovery.
http://forum.xda-developers.com/showthread.php?t=1039954&highlight=clockworkmod
You want the .img file.
- The Android SDK. Use Google =)
Step2:
Start the SDK Manager and download the SDK Tools and SDK Platform Tools. You now should have a "fastboot.exe" in the "tools"-folder.
Step3:
Connect your phone via usb, boot up the bootloader, and enter fastboot mode.
Step4:
Open a command line window using shift+right click in the folder where fastboot is. Launch "fastboot.exe devices". This should list your device. If not, Download the USB Driver Package using the SDK Manager and install the fastboot drivers. Windows might start whining about not being able to find the driver, but its definitely there. If fastboot.exe fails to start, you might need to copy it to the platform-tools folder and/or run cmd.exe using administrator privileges.
Step5:
Copy your recovery image to where fastboot.exe is and execute "fastboot.exe flash recovery <yourrecoveryimage>"
Further Steps:
You should now be able to boot into recovery and install roms.
You can also try to flash hboot using fastboot. If this fails, you got a handy $400 mirror to put in your pocket. You've been warned
Download a suitable image from alpharev (i think you want to go with the stock s-off hboot - that one with 250MB system) and flash it using "fastboot.exe flash hboot <hbootimage>" like described above.
Hope that helps.
Click to expand...
Click to collapse
Thank you for this solution it could resolve my problem but I can't push .img files to my phone through fastboot because my device still S-ON...
daddyspud said:
when tryin to s-off use cyanogenmod 7 rom to s-off thats wat i was told and worked a charm
Click to expand...
Click to collapse
Ok. So I will try install cyanogen after rooting my phone. And then try s-off.
Thank you
Use Cd method, it's the better method
Sent from my HTC Desire using XDA Premium App
SOLVED!
---> http://forum.xda-developers.com/showthread.php?t=1087164

[TUT] Re-flash stock ROM (RUU) after bricking a rooted device (for noobs)

Before you start, you will need to set up your computer to properly recognize the phone. You probably did this when rooting originally, but just in case... Install SDK tools for Android, Java runtime, and HTC Sync.
About HTC Sync: The only reason you need HTC Sync installed is for the USB drivers that come with it. But the program itself has been known to cause conflicts. Make sure that HTC Sync is not running in the background by opening Task Manager in Windows and killing it if you find it lurking in there.
Here we go:
1. Download the correct RUU (ROM Update Utility) for your device from androidfiles.org. Make sure you download a Primo_C RUU for a CDMA device (no sim card) or a Primo_U RUU for a GSM device (uses a sim card)!! Also make sure you get the correct RUU for your carrier.
2. Charge the battery above 50% or for at least one hour. If the battery dies during the flashing process, you could hard brick the phone!
3. Run the RUU until the wizard comes up. While the RUU wizard is open, find the temporary folder it created. (Open Explorer in Windows and type %temp% in the navigation bar.) There will be two folders with long encrypted names. In one of them you will find ROM.zip. Open it with 7zip and extract recovery.img or recovery_signed.img. Put it in the location were you've installed Android SDK tools. This is the stock HTC Recovery and it is needed to run the RUU.
4. Boot the phone into bootloader (power off, hold down volume and press power) and highlight FASTBOOT using the volume rocker and pressing power. Then connect the USB cable. You should see FASTBOOT USB.
5. Open a command prompt in Windows and navigate to the folder where you installed Android SDK tools. Flash the stock recovery extracted in step 3 above using the following command:
Code:
fastboot flash recovery recovery.img
or
Code:
fastboot flash recovery recovery_signed.img
6. Relock the bootloader using the following command:
Code:
fastboot oem lock
7. Re-run the RUU. It will restore the device to it's original condition, locked (though *** RELOCKED ***) and unrooted.
Once the install is done you'll have unlock the bootloader again using the token you already have from the first time, reflash CWM Recovery and re-root. All this will be 10x easier than the first time.
If you do re-root your phone, be 100% you backup the stock ROM in ClockworkMod Recovery before making changes!
Hi
Thanks for that perfect decsription exactly when I needed it
I just had a weired effect with my new windows 7 laptop that I want to share.
I installed the USB drivers and "fastboot devices" showed my HTC fine
but even flashing the stock recovery image was not working.
So it was stucking in the "Sending" part and never continued.
I then moved to my old laptop with Vista did exactly the same things
and there it worked without problems.
I disabled virus scanner, checked for htsync and used the original USB cable
without success.
But now I know why I normally never touch Windows and only
work on linux
Regards
max
---------- Post added at 11:19 PM ---------- Previous post was at 10:33 PM ----------
Hi
CafeKampuchia said:
If you do re-root your phone, be 100% you backup the stock ROM in ClockworkMod Recovery before making changes!
Click to expand...
Click to collapse
I have done that now - compared to my first "try"
Regards
max
hi. thanks for the tips.
however when i do this, i get an error "FAILED <remote: signature verify fail>
Any suggestions?
ur RUU and CID is diff...
ryanlow134 said:
ur RUU and CID is diff...
Click to expand...
Click to collapse
and... how do i make them the same?
lcavada said:
and... how do i make them the same?
Click to expand...
Click to collapse
Use the correct RUU package for your device
regards
max
Another way of saying it is that you downloaded the wrong RUU for your device.
not working
it keeps on saying waiting for device n does not proceed further
i tried installing the drivers again but that doesnt help either
pls help me out
I use fastboot flasher for this.. this tool is good .
sush93 said:
it keeps on saying waiting for device n does not proceed further
i tried installing the drivers again but that doesnt help either
pls help me out
Click to expand...
Click to collapse
"Waiting for Device" at fastboot usually related to bootloader driver. You need Android USB Driver
See : http://developer.android.com/sdk/win-usb.html
Hi folks,
I've bought my One V in late may and I had 2.08 ROM.
Now I've tested some roms and I wanted to revert back to stock rom.
I've downloaded RUU_PRIMO_U_ICS_40A_HTC_Europe_2.08.401.2_Radio_20.72.30.0833U_3831.17.00.18_M_release_263376_signed, and got recovery_signed and boot_signed images. Then I've went to fastboot, did flash recovery and boot partitions, and oem locked bootloader. Afterwards I booted my phone and entered PIN. Then I fired up RUU*.exe file, and I have 155 error. What the heck? Something I missed?
greetings!
run the ruu in hboot..
Sent from my HTC One V
thevilish said:
Hi folks,
I've bought my One V in late may and I had 2.08 ROM.
Now I've tested some roms and I wanted to revert back to stock rom.
I've downloaded RUU_PRIMO_U_ICS_40A_HTC_Europe_2.08.401.2_Radio_20.72.30.0833U_3831.17.00.18_M_release_263376_signed, and got recovery_signed and boot_signed images. Then I've went to fastboot, did flash recovery and boot partitions, and oem locked bootloader. Afterwards I booted my phone and entered PIN. Then I fired up RUU*.exe file, and I have 155 error. What the heck? Something I missed?
greetings!
Click to expand...
Click to collapse
Flashing RUU to revert to stock
- you must have the correct RUU for your device.
- if you are not sure, download CID Getter from Play Store and run it, it will show your CID.
- with your CID, you may be able to find a correct RUU for your device
then (even though some people may not agree with this, but this will bring no harm and it is noob-proof) do this:
1- flash a stock recovery.img
fastboot flash recovery recovery_signed.img
fastboot reboot-bootloader
fastboot erase cache
2- flash a stock boot.img
fastboot flash boot boot_signed.img
fastboot reboot-bootloader
fastboot erase cache
3- re-lock bootloader
fastboot oem lock
fastboot reboot-bootloader
fastboot erase cache
4- flash RUU
NOTE: There is no boot/reboot and enter pin in between.
paarthdesai said:
run the ruu in hboot..
Sent from my HTC One V
Click to expand...
Click to collapse
I've done this before and didn't succeeded, but now it works! Magic
Thanks a lot!
help
CafeKampuchia said:
Before you start, you will need to set up your computer to properly recognize the phone. You probably did this when rooting originally, but just in case... Install SDK tools for Android, Java runtime, and HTC Sync.
About HTC Sync: The only reason you need HTC Sync installed is for the USB drivers that come with it. But the program itself has been known to cause conflicts. Make sure that HTC Sync is not running in the background by opening Task Manager in Windows and killing it if you find it lurking in there.
Here we go:
1. Download the correct RUU for your device from Football's Primo Shipped ROM Collection.
2. Charge the battery above 50% or for at least one hour. If the battery dies during the flashing process, you could hard brick the phone!
3. Run the RUU until the wizard comes up. While the RUU wizard is open, find the temporary folder it created. (Open Explorer in Windows and type %temp% in the navigation bar.) There will be two folders with long encrypted names. In one of them you will find ROM.zip. Open it with 7zip and extract recovery.img or recovery_signed.img. Put it in the location were you've installed Android SDK tools. This is the stock HTC Recovery and it is needed to run the RUU.
4. Boot the phone into bootloader (power off, hold down volume and press power) and highlight FASTBOOT/B] using the volume rocker and pressing power. Then connect the USB cable. You should see FASTBOOT USB.
5. Open a command prompt in Windows and navigate to the folder where you installed Android SDK tools. Flash the stock recovery extracted in step 3 above using the following command:
Code:
fastboot flash recovery recovery.img
or
Code:
fastboot flash recovery recovery_signed.img
6. Relock the bootloader using the following command:
Code:
fastboot oem lock
7. Re-run the RUU. It will restore the device to it's original condition, locked (though *** RELOCKED ***) and unrooted.
Once the install is done you'll have unlock the bootloader again using the token you already have from the first time, reflash CWM Recovery and re-root. All this will be 10x easier than the first time.
If you do re-root your phone, be 100% you backup the stock ROM in ClockworkMod Recovery before making changes!
Click to expand...
Click to collapse
PLEASE HELP!
The 5th point does not work for me. I can not run the code.
What can i do?
what do you mean by navigate to the folder where you installed sdk?
brandoncoronado said:
what do you mean by navigate to the folder where you installed sdk?
Click to expand...
Click to collapse
It means that if you installed SDK in c:/android, then u must type.in the command prompt: cd c:/android and hit enter
Cheers
Sent from my HTC One V using xda app-developers app
brandoncoronado said:
what do you mean by navigate to the folder where you installed sdk?
Click to expand...
Click to collapse
where the fastboot.exe is located and stock recovery must be in the same folder for the command to work
[ask] Error 155
hey guys, ive been reading all tutorial for reverting to stock RUU.
the first time i tried, it works prefectly.
then after a few weeks, i tried to revert to stock RUU, it failed .
it show error 155.
i already flash the boot , recovery that i found inside the stock RUU, also I've relock the phone.
but when i relock the phone, it show "info Lock successfully , status read failed no such file / directory"
when i enter bootloader, it show that my device already "relocked"
does the relocked proses is successfully ?
iam running PrimoU 2.09.707.1 with stock bootloader, CWM recovery, and rooted ..
I did exactly as it is mentioned but at the end where there is vertical progress bar it gives me an error of customer Id... Failed to update. What shud i do. How do I check what my customer Id is I can't Download it from play store coz can't boot into normal screen... How do I make ruu and cid same.
Sent from my Galaxy Nexus using xda app-developers app

Wildfire S black screen recovery 1.26.401.3 hboot 1.09.0099

Hi
I bought my wfs in poland (sorry for my english and mistakes). I have problem because I updated my phone to 2.26.401.3 in phone jumped message about new soft and I update. Now I unlocked bootloader with htcdev and when I go into recovery (cwm installed by rom manager) I have black screen and under screen leds are light. I tried this but this isn't working now i downgraded phone to 2.13.401.3 and recovery (cwm) still not working. I tried another recovery but no one working. I want install new rom. What do? Can I install custom rom without recovery? or any solutions of this problem?
I had very similar problems, and could not find any solution, so I created custom recovery.img with appropriate kernel. Download attached recovery.img and using fastboot burn it:
$ fastboot flash recovery recovery,img
Phone needs to be in "fastboot usb" mode. Let me know if you have problems with it. Works for me.
lanaczko said:
I had very similar problems, and could not find any solution, so I created custom recovery.img with appropriate kernel. Download attached recovery.img and using fastboot burn it:
$ fastboot flash recovery recovery,img
Phone needs to be in "fastboot usb" mode. Let me know if you have problems with it. Works for me.
Click to expand...
Click to collapse
Dint work for me dude. Recovery is still a blank screen.
rajanand made a thread about this last time look for it and it works
ngoralph said:
rajanand made a thread about this last time look for it and it works
Click to expand...
Click to collapse
Thankyou! Found his post. I shall give it a shot now. Cheers
it dint work for me .. do you know any other way to get rid of this black screen on recovery.. or atleast findout the reason behind such a thing.
[TUTORIAL] How to Install ClockworkMod Recovery on wildfire s
I Hope you have SDK tools for Android, Java runtime, and HTC Sync installed on your Windows PC. After unlocking the bootloader and rooted your device follow this:
(Note: You only need to install HTC Sync for the drivers that come with it. But the program sometimes causes conflicts, so during this procedure, make sure it is not running. Open Task Manager in Windows and kill it. If you don’t use HTC Sync, you may also open Control Panel and uninstall it without uninstalling the drivers.)
[OPTIONAL] Update Android software version to 2.3.5
If you have a Marvel/A510e, It is recommended updating to 2.3.5 before proceeding (if possible), though you can root a 2.3.3 device. If you decide to root 2.3.3 now and install 2.3.5 later, you’ll loose your root, cwm and have to do it again.
Make sure the phone is connected in Charge only mode. Enable USB debugging by going to Settings > Applications > Development > USB. Also Disable "Fast boot" by go to Settings>Power>uncheck "Fast boot".
1. Download the official 5.0.2.8 image at ClockworkMod’s index of recoveries here: http://www.clockworkmod.com/rommanager/
Make sure you choose the right one for your device whether Marvel or MarvelC. If you downloaded the zip version, extract the img file from the zip you just downloaded.
2. Boot the phone into HBOOT. After it scans for PG7610.zip, select 'FASTBOOT' and press the <Power> button then connect the USB cable. The word 'FASTBOOT' will change into 'FASTBOOT USB'. If not, then either your USB drivers for the Wildfire S or Android SDK Tools is not installed properly.
3. Open command prompt in Windows and navigate to the folder where you extracted the recovery image in step 1.
4. Type the following command: fastboot flash recovery [image name.img]. For example:
c:\android\>fastboot flash recovery recovery-clockwork-5.0.2.8-marvel.img
Try the above method, if it fails then go down:
It's a full version, so just download the .zip put it in sdcard then replace battery, press <power> with Vol Down.
http://forum.xda-developers.com/showthread.php?t=1213229
____________________________________________
Hope this may be useful. (If really, Just press 'Thanks').
http://forum.xda-developers.com/showthread.php?t=1781105 this will work i bet ya dont say thanks just click it
cant work for me dear senior
Senthamil said:
I Hope you have SDK tools for Android, Java runtime, and HTC Sync installed on your Windows PC. After unlocking the bootloader and rooted your device follow this:
(Note: You only need to install HTC Sync for the drivers that come with it. But the program sometimes causes conflicts, so during this procedure, make sure it is not running. Open Task Manager in Windows and kill it. If you don’t use HTC Sync, you may also open Control Panel and uninstall it without uninstalling the drivers.)
[OPTIONAL] Update Android software version to 2.3.5
If you have a Marvel/A510e, It is recommended updating to 2.3.5 before proceeding (if possible), though you can root a 2.3.3 device. If you decide to root 2.3.3 now and install 2.3.5 later, you’ll loose your root, cwm and have to do it again.
Make sure the phone is connected in Charge only mode. Enable USB debugging by going to Settings > Applications > Development > USB. Also Disable "Fast boot" by go to Settings>Power>uncheck "Fast boot".
1. Download the official 5.0.2.8 image at ClockworkMod’s index of recoveries here: http://www.clockworkmod.com/rommanager/
Make sure you choose the right one for your device whether Marvel or MarvelC. If you downloaded the zip version, extract the img file from the zip you just downloaded.
2. Boot the phone into HBOOT. After it scans for PG7610.zip, select 'FASTBOOT' and press the <Power> button then connect the USB cable. The word 'FASTBOOT' will change into 'FASTBOOT USB'. If not, then either your USB drivers for the Wildfire S or Android SDK Tools is not installed properly.
3. Open command prompt in Windows and navigate to the folder where you extracted the recovery image in step 1.
4. Type the following command: fastboot flash recovery [image name.img]. For example:
c:\android\>fastboot flash recovery recovery-clockwork-5.0.2.8-marvel.img
Try the above method, if it fails then go down:
It's a full version, so just download the .zip put it in sdcard then replace battery, press <power> with Vol Down.
http://forum.xda-developers.com/showthread.php?t=1213229
____________________________________________
Hope this may be useful. (If really, Just press 'Thanks').
Click to expand...
Click to collapse
cant work for me dear

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

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