Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,728,429 Members 54,287 Now Online
XDA Developers Android and Mobile Development Forum

[GUIDE][S-OFF] Unlock Bootloader without htcdev | Revert to LOCKED status.

Tip us?
 
-Duir-
Old
(Last edited by -Duir-; 12th July 2014 at 10:25 AM.)
#1  
-Duir-'s Avatar
Senior Member - OP
Thanks Meter 229
Posts: 442
Join Date: Feb 2012
Location: California
Default [GUIDE][S-OFF] Unlock Bootloader without htcdev | Revert to LOCKED status.

This requires S-OFF to use, follow at your own risk!

This will let you unlock your bootloader without htcdev and also let you change your hboot watermark from RELOCKED back to stock LOCKED.

Advantages:
  • No having your data partition wiped
  • The ability to get back to 100% stock without any visual trace of having unlocked your bootloader
  • Does not modify the hboot so works independently and can be used with any hboot version
  • Works whether you've updated to KitKat or not as the specific block is not remapped by the OTA.
Credits:
scotty1223: I've linked to his M7 thread a few times in our old Desire 601 thread, now that we have our own section I figured I'd post the information here so people could better find and take advantage of it.
Requirements:
  • ADB installed on your computer
  • Drivers for your phone installed on your computer (HTC Sync Manager will do that for you).
  • Device must be S-OFF
  • Device must be rooted
First Things First:
Before you do anything it is highly recommended that you backup the section of your phone this guide will be modifying.
  • Open a command prompt in your adb folder
  • Type adb shell and press enter.
  • Type su and press enter if needed to a get a root shell.
  • Type/paste dd if="/dev/block/mmcblk0p3" of="/storage/ext_sd/mmcblk0p3.img" and press enter
  • Now it will be backed up to your external SDCARD and we can continue.
Unlock your Bootloader:
Open a command prompt in your adb folder and do the following:
  • Type adb shell and press enter
  • Type su and press enter if needed to get a root shell
  • Rather than type it is recommended you paste the following:
    • echo -ne "HTCU" | dd of=/dev/block/mmcblk0p3 bs=1 seek=33796 and press enter
  • Type exit and press enter
  • Type exit and press enter if needed to return to a normal command prompt
  • Type adb reboot bootloader and press enter
  • Verify you are now UNLOCKED
Regain your LOCKED status:
Open a command prompt in your adb folder and do the following:
  • Type adb shell and press enter
  • Type su and press enter if needed to get a root shell
  • Rather than type it is recommended you paste the following:
    • echo -ne '\x00\x00\x00\x00' | dd of=/dev/block/mmcblk0p3 bs=1 seek=33796 and press enter
  • Type adb reboot bootloader and press enter
  • Verify you are now LOCKED
Notes:
  • I have personally tested this on my ZARA_CL both before and after updating to KitKat.
  • Confirmed by other users to work for ZARA_UL as well.

Phone: hTC One (M8) S-OFF
Recovery: TWRP 2.7.1.0
ROM: Android Revolution HD 8.1




Misc
My ZARA_CL Google Drive
The Following 4 Users Say Thank You to -Duir- For This Useful Post: [ Click to Expand ]
 
rajat836
Old
#2  
rajat836's Avatar
Member
Thanks Meter 6
Posts: 79
Join Date: Jan 2013
the unlock process is worked on my zara_ul....i dont know about the regain locked status
The Following User Says Thank You to rajat836 For This Useful Post: [ Click to Expand ]
 
iCreck
Old
#3  
Junior Member
Thanks Meter 3
Posts: 8
Join Date: Jul 2014
Location: Votkinsk
Lock\unlock worked on my Zara_UL (Europe). Thanks for guide.
The Following User Says Thank You to iCreck For This Useful Post: [ Click to Expand ]
 
Hedied4me
Old
#4  
Senior Member
Thanks Meter 110
Posts: 497
Join Date: Sep 2012
Location: Lost Angeles
Good looking out Duir, I know this will come in handy for me someday. Especially since it doesn't wipe ur data like HTC dev unlock process usually does.

Sent from my Virgin Mobile CDMA HTC Desire 601 zara_cl
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes