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.
Related
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
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
Hi All,
I have spent this afternoon rooting stock 4.3 yakju and thought that I'd share the latest on how to go about doing this manually for the maguro GT-I9250. This is a complete guide which brings all the information you will need under the one thread which doesn't seem to have been done before except as separate guides and scattered information all over the internet.
NOTE: Unlocking and Rooting your device will void your warranty and can in some instances if not performed properly brick the phone. This process will also wipe your phone back to factory defaults so any personal files and applications will be lost. You should backup the device using the backup options in the recovery environment or by saving any personal files off the device via the USB cable, prior to unlocking your device. You follow this procedure at your own risk!!
With that disclaimer out the way there, We can begin.
NB: I ran all linux commands in this tutorial as root, I am not able to say if running as a standard user may cause issues, although one forum suggested to run as root or sudo up if you have a bootloop issue so I did this to avoid problems. This tutorial assumes that you have some experience with using basic Linux commands including but not limited to copying and moving files, changing directories, listing files, running scripts and executables using './' and using the console
So Firstly I am running Fedora 19 x64 with the latest kernel. It's a lot easier than trying to muck around with Windows 7 drivers and there are tutorials for installing these. To update on that tutorial you can use the official samsung drivers to install the adb and mtp drivers (may already be noted in the thread, but I might as well state it here also.) and the best place to get the official samsung drivers is by installing the Samsung Kies application.
You need to enable 'USB debugging' in order for ADB to work, you do this from 'settings --> developer options' if you can't see 'developer options' you may need to enable them, to do this, select 'settings --> about phone' and tap 'build number' until it says 'you are now a developer' which takes around 7 taps. In 'developer options', you may need to turn them on by clicking the 'on' button at the top. Once you have turned them on, select 'usb debugging' and this will then tell you that 'this may make your device less secure', agree/accept this, and continue. You can always turn it off later if you need to. Once you enable this, within linux you may get prompted when running adb to authorize (e.g. you are not authorized, check the device screen). You need to authorise from the phone, so allow the connection and select 'remember this computer' to save having to do it again.
Now for the bootloader driver it's a bit trickier to install. You need to reboot into the bootloader, by powering off the device and then powering back on again while holding the volume + and volume - keys at the same time. You will then probably get a failed driver install for 'Android 1.0'. At this point, you will need the universal Naked driver from this thread. Download and extract it to your 'Downloads' folder. Now go to device manager, right click on the 'Android 1.0' device and select 'update driver...' and then select 'browse my computer for driver software' and then select 'let me pick from a list of drivers'. Click 'have disk' and you will be able to install from the folder you extracted the 'Universal Naked Driver' into. You will now be able to use the fastboot command in Windows.
Ok. Now we have the windows users covered. In Linux, All I needed to do was download the android sdk adt tools. I'm using the 64 bit version, so I downloaded the 64 bit version from the adt bundle section here. Once I had downloaded and extracted these into a folder in my Downloads folder under my user profile, I copied the adb and fastboot files to a separate folder as these are the only things I needed in the bundle. you do this by typing
Code:
cp /home/<your_username>/Downloads/Androidadt/adb /home/<your_username>/Downloads/Nexusroot/
cp /home/<your_username>/Downloads/Androidadt/fastboot /home/<your_username>/Downloads/Nexusroot/
From here on you will want to be working from the 'Nexusroot' folder, so type
Code:
cd /home/<your_username>/Downloads/Nexusroot
.
From here, you need to obtain the recovery you wish you use, I chose to use the CWM v6.0.4.3 touch recovery which can be obtained from here. Once it's saved to your downloads folder you should copy it to your previously created 'Nexusroot' folder where we saved adb and fastboot.
The next item on the list is something I did because I was running the yakjuxw firmware and is the reason I did everything in Linux for this tutorial, as the firmware files are tarballed and opening the tar in 7zip shows 'unix filesystem' as the base folder. I installed the stock 4.3 firmware from google. I used the extracted files for the firmware as my 'Nexusroot' folder and copied fastboot and adb into this folder as well as the recovery image. I then ran ./flash-all.sh with the device in fastboot mode (you will need to have unlocked the bootloader prior to doing this, instructions are below in the next paragraph. The script basically just flashes the firmware with the fastboot command, if you want to flash the CWM recovery at the same time, you will need to rename the recovery file to the same name as the recovery image in the tarball and replace or rename the one that came with the tar file from google), If you have setup your environment in Windows 7 as described above, there is also a batch file that will do the same thing ensure the device is in fastboot before running the batch file/script or it will sit there and say 'waiting for device' and make sure the fastboot application is in the same folder as the script. Once the flash is complete your device will be running the stock 4.3 firmware. (edit: I have since extracted the entire image out of the tar with 7zip from Windows 7, you will be able to flash the base once you extract it all to a folder but you need to open the secondary container file in 7zip separately)
The next step is to flash the recovery. To do this, put the device into fastboot mode and unlock the bootloader using the command
Code:
fastboot oem unlock
select 'Yes' at the prompt, your device will now reboot twice and perform a factory reset which will wipe all data, at this point you may need to re-enable 'usb debugging' from your settings (see above for instructions), re-enter fastboot mode by typing
Code:
adb reboot bootloader
next type in
Code:
fastboot flash recovery recovery-clockwork-touch-6.0.4.3-maguro.img
Your device will now install the touch recovery we downloaded earlier. Once done, type the command
Code:
fastboot reboot-bootloader
.
Now to root the device, download the SuperSU zip file from the link and copy it to your 'Nexusroot' folder. Now boot into your recovery environment by using your 'Volume -' key to select 'boot recovery' and allow the device to boot into the recovery environment. This will allow you to use the adb command. Change directory into your 'Nexusroot' folder if not already in it, and type
Code:
adb push UPDATE-SuperSU-v1.43.zip /sdcard/0
This will copy the zip file to the internal memory card. From the recovery environment on the phone, select 'install file from sdcard' and then 'choose zip from sd card'. Select '0' and then select the 'UPDATE-SuperSU-v1.43.zip' file and select 'yes - install...' and the zip file will install the SuperSU application and binaries. Your device is now rooted, however you will need to run the SuperSU app to update the binary again. We will discuss this further after the next step.
Now we should lock the bootloader again to prevent tampering with our recovery and other firmware images however if you wish to flash other ROMS you will want to leave this unlocked, or you will need to unlock it again next time you want to flash a rom. To lock the bootloader, with the phone in fastboot mode, you simply type
Code:
fastboot oem lock
and this will re-lock the bootloader. Note you will not be able to flash any radios, kernels, or other .img files while this is locked. Now reboot your phone back into Android.
Now that you know how to unlock your phone, it's rooted, and has a recovery environment installed, you need to activate your SuperUser install. To do this, open the SuperSU app, and when prompted to update, click 'continue'. You will at this point be asked how you want to install it, select 'CWM/TWRP Recovery' and your phone will reboot, you will see an update occur on the screen and SuperSU will now be correctly installed.
You can now begin experiencing the freedom to use whatever ROM you want, customise your device how you want, and even change which applications you want installed regardless of whether they are system apps or otherwise.
I hope this guide is helpful.
References:
http://forum.xda-developers.com/showthread.php?t=1379875
http://forum.xda-developers.com/showthread.php?t=1830108
http://forum.xda-developers.com/showthread.php?t=2117822
http://forum.xda-developers.com/showthread.php?t=2065470
http://www.ibtimes.com/how-root-galaxy-nexus-i9250-nexus-4-android-43-jelly-bean-official-firmware-tutorial-1362063
http://www.clockworkmod.com/rommanager
https://developer.android.com/sdk/index.html
http://www.ubuntu.com/phone/install
https://developers.google.com/android/nexus/images
Thanks:
@1wayjonny
@TECK
@samersh72
Without your guides I wouldn't have been able to do this.
Hi guys, I hate to make a new post but I feel like I've exhausted all options. I'm getting a bootloop when flashing Viper 3.5.0 and ARHD 12.0. I have a T-Mobile GSM M9 with S-OFF . My bootloader currently locked. Here are my steps:
1. I've got Super CID
2. Flashed TWRP 2.8.7.0
3. Rooted
Then I wanted to put on a new rom:
4. Flashed different firmware from here: http://forum.xda-developers.com/one-m9/development/firmware-t3068243
I've tried 2.10.401.1 (International) / 2.7.531.6 (T-Mobile US) / 1.32.531.33 (T-Mobile US)
5. Flashed Viper 3.5.0 and AHD 12.0 with the wipe option after each firmware upgrade/downgrade. Each time I boot the phone up (no matter what firmware is used), Android will optimize all the apps, and it will sit at the Android setup screen for a second or two, and then just reboot. Android will optimize all apps again, I'll see the setup screen, and then the loop again.
Anybody have any suggestions? I'm sure I'm missing something simple. I don't need the bootloader unlocked since I have S-OFF, correct? Thanks in advance for any and all help!
Are you able to enter into twrp custom recovery? You can install the ROM zip from there. Other option would be the sideload method.
- Put in the rom you want to install into the same directory where the adb tool is. In your case custom rom isnt it? Rename it to something simple like rom.zip
- Shift+right click in the emtpy area where the ADB tool and your is and open the command prompt.
- Navigate through custom recovery > Advanced > ADB Sideload. Your phone should now be waiting for the rom you are about to send.
-Go back to your command prompt and type the following; adb sideload rom.zip
Note that the rom you are sending needs to be complete and have all the files needed in it.
Hi Nikolay82, thanks for the reply. I'm not having an issue flashing the ROM. The issue i'm experiencing is that my phone goes into an endless bootloop after the ROM is flashed.
sstrunks84 said:
Hi Nikolay82, thanks for the reply. I'm not having an issue flashing the ROM. The issue i'm experiencing is that my phone goes into an endless bootloop after the ROM is flashed.
Click to expand...
Click to collapse
Unlock your bootloader and try again. As far as I know the M9 prevents the system from booting correctly if the bootloader is locked and TWRP is installed.
The rom should flash the boot and fix the problem. As for unlocking your bootloader please check the following;
1. Register here; https://www.htcdev.com/
2. Once registered login and select the "Unlock Bootloader" > Get Started > Select your device.
3. If you do not see HTC One M9 listed, select Last option which is "All other supported Devices"
4. Click on "begin unlock bootloader"
5. Follow the instructions and open the command prompt where your ADB is and prepare phone for fastboot mode / download mode.
6. type in; fastboot oem get_identifier_token
7. You will now get a block of text, mark and copy only the area starting from <<< Identifier token start[block of code here] Identifier token end >>>> (mark also those <<<< and >>>>) c
8. Go back to the htc.dev where you logged in and paste in the code under "My device Identifier token" field and submit the query. Navigate to your e-email where they sent you the token and download file; Unlock_code.bin
9. In that mail you will also have a link to continue unlocking the bootloader process, click it,
10. Place the Unlock_code.bin file into the folder where your ADB tools are.
11. Open up the command prompt again and type in; fastboot flash unlocktoken Unlock_code.bin
12. New dialogue should appear asking you if you want to unlock. Please note that if you proceed everything on your phone will be wiped out, so make sure you backed up things you need.
13. Go back to bootloader mode and it should say "UNLOCKED". Same with download mode.
Thanks @Flippy498! Unlocking the bootloader did the trick!
Everytime I have to unlock,flash recovery and root I can't remember how to do it....
So I'm writing this very easy guide.
First off get the One X drivers from here:
https://forum.xda-developers.com/showthread.php?t=2217384
These are old drivers as HTC have stopped including them in HTC Sync.
Download Android SDK Slim from here:
https://mega.nz/#!8tETTbga!iVOYHGwT7SYV9s9AKqT6hukX-odb7PNuQCrX6zJxpwQ
Unzip it anywhere you like, desktop's easy but it can be anywhere...
Go to https://www.htcdev.com log in click on Get Started then Unlock Bootloader and choose All Other Supported Models from the dropdown.
Click Yes and Tick the two boxes for all the legal stuff.
Now go into your One X Phone Developer Settings and switch on USB debugging.
Next go to Power settings and switch off Fastboot.
Then connect the phone to your PC via USB cable.
Allow your PC to recognise it and download any stuff it wants to.....
Go make a cup of Tea while this is happening.
Next go to your SDK folder, wherever you ended up putting it, click through to the Platform Tools folder where you will see ADB and Fastboot.
Hold down Shift and Right Click anywhere in the folder, choose Open Command Window Here.
In Command Window Type: adb reboot bootloader
Your Phone will boot into Bootloader
Keep the Command Window open...from now until the very end!!
That has just skipped all the 4 Steps on the HTC Dev site!!!
Proceed to Step 5
Now in the Command Windows Type: fastboot oem get_identifier_token
You will see a long block of text. Copy and paste this text into the the token field on the HTC Dev site. Right Click choose Mark and highlight the square bit of code then press Enter to copy.
Paste that into the My Device Identifier Token
HTC will email you a little Unlock_code.bin file within seconds (Check your Junk folder)
Then copy or move the token to the Platform Tools folder.
Back to your Command Window which should still be open!!
Type: fastboot flash unlocktoken Unlock_code.bin
Now follow the instructions on the Phone....
The phone will Unlock the bootloader....
And Reboot your phone....
You need to go back to settings and switch on USB Debugging and switch off Fastboot (See start of tutorial)
Make sure you are still plugged into your PC
In Command Window Type: adb reboot bootloader and your phone will go back into the Bootloader screen.
Next go here: https://twrp.me/Devices/HTC/
Choose your One X and download an early version of TWRP as the newer ones need the old ones to be installed!!
The One X comes in different flavours so make sure you get the right one for your model....
For sake of argument say I downloaded this file: twrp-2.4.4.0-endeavoru.img
Place that file in the Platform Tools folder
Then in Command Window type: fastboot flash recovery twrp-2.4.4.0-endeavoru.img
This will install your TWRP Recovery!!!
Excellent...now you can unplug from your PC and boot into Recovery.
In TWRP select Reboot and it will ask you if you want to install SuperSU.
You do, swipe the screen and your phone will Reboot into the Operating System.
From there open the Super SU app and update your Super User Binaries...
And that's how to Unlock the Bootloader, Install TWRP Recovery and Root....
EASILY!!!!
:silly::silly::silly:
Hit Thanks if its Helped You!!