[BL] Unlock without HTCDEV
This process will allow you to unlock your bootloader without having to register your imei with the htcdev website.
Thanks to niceppl for making a one click out of this, and adding ROGERS SUPPORT, and also windows, mac & linux ready. Please see his thread here
http://forum.xda-developers.com/show...php?p=27917723
VERY IMPORTANT:
Please read over all instructions before attempting this process.If you are not 100% sure you can follow these instruction then.
DO NO ATTEMPT.
DO NOT SHORTCUT ANY STEPS. FAILURE TO COMPLETE THE PROCESS WILL LEAVE YOUR DEVICE UNUSABLE UNTIL ALL STEPS ARE COMPLETED.
Pre-requisites:
1. Must have AT&T Evita HTC One x rooted with superCID (sorry, no rogers)
2. Windows only, and have htc drivers installed, with adb and fastboot working
3. USB debugging enabled, and fastboot disabled in settings>power menu
4. SIMCARD REMOVED....(DO IT NOW)
^^^^^^^^^^^^^^^^
CANNOT REINSERT UNTIL PROCESS IS COMPLETED.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The Steps
Download the zip file from below and save it to your desktop. Go ahead and extract it to your desktop also.
Power on and Plug in device to USB and make sure you have CHARGE ONLY selected
Open a command prompt and cd to your adb fastboot folder.
enter these commands prompts one at a time, or copy paste (until i get script written, sorry)
adb shell
su
your command prompt should now look like this "root@android:/ #"
Now enter or copy/paste one command at a time
dd if=/dev/block/mmcblk0p4 of=/sdcard/mmcblk0p4
dd if=/dev/block/mmcblk0p5 of=/sdcard/mmcblk0p5
dd if=/dev/block/mmcblk0p6 of=/sdcard/mmcblk0p6
dd if=/dev/block/mmcblk0p13 of=/sdcard/mmcblk0p13
dd if=/dev/block/mmcblk0p26 of=/sdcard/mmcblk0p26
after each command you should see something like 234+0 in 234+0 out, 234 being a random number.
You now have these original partitions from your device backed up on your sdcard
Now close out of the command prompt and mount usb mass storage to open up your sdcard on the desktop
once open, create a new folder and name it "mypartitions"
you will see the 6 partitions you dd from your device, called mmcblk0p4,5,6,13,26. Move them to the folder you just created.
Go to the zip you extracted earler on your desktop, open it and you will see a folder named "spoofpartitions". copy or drag it to the root of your sdcard.
Go back to your folder with the extracted contents on the desktop, you will see a file named "unlock_code.bin". copy it the the same folder you have your fastboot and adb files in on your pc.
Now unmount your usb mass storage and select CHARGE ONLY again on your device
open up a new command prompt and cd to your adb fastboot folder again
type the commands one at a time or copy paste (again, will get a script as soon as i get time)
adb shell
su
command prompt again should now look like "root@android:/ #"
now enter the following again one at a time
dd if=/sdcard/spoofpartitions/mmcblk0p4MOD of=/dev/block/mmcblk0p4
dd if=/sdcard/spoofpartitions/mmcblk0p5MOD of=/dev/block/mmcblk0p5
dd if=/sdcard/spoofpartitions/mmcblk0p6MOD of=/dev/block/mmcblk0p6
dd if=/sdcard/spoofpartitions/mmcblk0p13MOD of=/dev/block/mmcblk0p13
dd if=/sdcard/spoofpartitions/mmcblk0p26MOD of=/dev/block/mmcblk0p26
once all those successfully pushed to your device, we're going to disconnect from the pc, close command prompt and power down device.
We need to now boot to bootloader so, press and hold your power button and volume down (-) buttons, wait a couple seconds and release
the power button while continuing to hold volume down. Once it powers on you'll be in your boot loader. plug in your usb, and using your vol. up vol. down highlight
"fastboot" and press power button to select. right above, wait until you see "fastboot USB"
Now, go ahead and open up another command prompt and cd to your fastboot adb folder.
type "fastboot devices" you should see a serial number under the list of attached devices.
now enter "fastboot flash unlocktoken unlock_code.bin"
you should get a readout that says successful or something and a screen from HTC will appear on your device. If not, just redo the fastboot flash command again. Once the screen is up, you'll see the warning about yada yada blah blah. press your volume up to highlight the yes i wanna unlock button and press power to confirm. THIS WILL WIPE YOUR DEVICE FYI.
once the device boots back up go thru all your setup stuff until you get back to your home screen, go back into your settings and disable fastboot from the power menu and enable usb debugging again in developer options.
plug back in usb CHARGE ONLY mode, open up a command prompt and cd to adb fastboot folder. enter the commands ONE LAST TIME
adb shell
su
dd if=/sdcard/mypartitions/mmcblk0p4 of=/dev/block/mmcblk0p4
dd if=/sdcard/mypartitions/mmcblk0p5 of=/dev/block/mmcblk0p5
dd if=/sdcard/mypartitions/mmcblk0p6 of=/dev/block/mmcblk0p6
dd if=/sdcard/mypartitions/mmcblk0p13 of=/dev/block/mmcblk0p13
dd if=/sdcard/mypartitions/mmcblk0p26 of=/dev/block/mmcblk0p26
once you have them all pushed successfully reboot device, reinsert simcard and enjoy your htcdev free unlocked bootloader.
NOTE: If ever you need to relock your bootloader to ruu you will need to do these steps again to re unlock it. As soon as I get time i will make this much simpler for everybody.
Please, if anyone wants to step in i'm really busy with school and family. Feel free to tidy this up with a script.
DOWNLOAD:
http://db.tt/Bd0UUKHH
ADDED: The unlock token included is for evita devices. Rogers and Telstra use files from 1click linked at the top. Or, after pushing the spoof partitions, generate a new token in fastboot and submit to htcdev. Unlock and then send UNMODIFIED partitions back to your device per the instructions.
Sent from my HTC One X using xda premium