Remove All Ads from XDA

[BL] Unlock without HTCDEV

1,526 posts
Thanks Meter: 1,883
By 18th.abn, Senior Member on 26th June 2012, 11:23 AM
Post Reply Email Thread
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

Please read over all instructions before attempting this process.If you are not 100% sure you can follow these instruction then.


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

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


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


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


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.


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
The Following 36 Users Say Thank You to 18th.abn For This Useful Post: [ View ] Gift 18th.abn Ad-Free
26th June 2012, 11:49 AM |#2  
Skizzy034's Avatar
Senior Member
Flag Amsterdam, NY
Thanks Meter: 1,125
Will the bootloader still say relocked after we do this and relock?

Sent from my HTC One X using XDA
26th June 2012, 11:53 AM |#3  
18th.abn's Avatar
OP Senior Member
Thanks Meter: 1,883
Yes, it will will still be the same. Its just an option for anybody who would prefer to keep their imei off the HTC database. Some people who outright buy it with no contract or are out of their first 30 days, their warranty falls under htc.

Sent from my HTC One X using xda premium
The Following User Says Thank You to 18th.abn For This Useful Post: [ View ] Gift 18th.abn Ad-Free
26th June 2012, 01:40 PM |#4  
mattyg151's Avatar
Senior Member
Pittsburgh, PA
Thanks Meter: 115
Donate to Me
damn, wish I would have waited another day. I just unlocked mine the HTC way yesterday. this is awesome.
26th June 2012, 01:56 PM |#5  
Senior Member
Thanks Meter: 51
Too bad it's not good for rogers too, but that's awesome anyway thanks

26th June 2012, 02:06 PM |#6  
gunnyman's Avatar
Senior Member
Flag Greenville SC
Thanks Meter: 2,698
Donate to Me

See this right here? This is some talent.

Nice job!
The Following User Says Thank You to gunnyman For This Useful Post: [ View ] Gift gunnyman Ad-Free
26th June 2012, 02:24 PM |#7  
sbryan12144's Avatar
Inactive Recognized Developer
Flag Columbus
Thanks Meter: 4,303
Donate to Me
Good job man. I contacted the portal writers. IMO, this is a big deal.

Sent from my HTC One X using xda premium
The Following User Says Thank You to sbryan12144 For This Useful Post: [ View ] Gift sbryan12144 Ad-Free
26th June 2012, 04:24 PM |#8  
Thanks Meter: 0
Nice job

Sent from my Nocturnalized Beast
26th June 2012, 04:31 PM |#9  
WTFunk's Avatar
Senior Member
Flag New York
Thanks Meter: 96
How in the name of god and the holy spirit did you figure this out?!

Very nice!
26th June 2012, 05:08 PM |#10  
Senior Recognized Developer
Flag Dublin, OH
Thanks Meter: 7,106
Donate to Me
I don't mean to rain on your hard work but....

isn't everyone who flashes this going to wind up with your serial number, your imei, and your MAC addresses? I think this could cause some real problems (blacklisting, etc.) for you and anyone else who flashes these files.

I would recommend taking this offline until you do some testing with another user or two......
26th June 2012, 05:31 PM |#11  
18th.abn's Avatar
OP Senior Member
Thanks Meter: 1,883
Its a temporary SPOOF imei, and when its finished the user has their exact same imei, s/n, mb, and Mac address. It simply modifies them to accept the unlock token, then returns the phone to its EXACT factory state. As long as the simcard is removed as stated, there is nothing wrong.

Sent from my HTC One X using xda premium
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes