Easily change HTC One M9 RELOCKED status to LOCKED with Adb shell

HTC One M9 comes with excellent hardware specification, like Quad-core Snapdragon 810 CPU with Adreno 430 GPU and 3GB of RAM. Besides being the flagship phone and get a lot of support from the developers, the specs could be the reason why many Android geeks prefer to mods this device. The first thing to do is gaining root access which requires us to unlock the bootloader.

 

After following the unlocking procedure, you will find a red text warning on HTC splash screen while booting, not just that, it also changes the bootloader status from LOCKED to UNLOCKED which you can see when you boot into hboot/bootloader mode, and the Software Status will be changed from Official to Modified. Actually, it’s not a big deal, but it could be a problem since you can’t restore it to its original status. In other words you can not go back to a LOCKED status even though you have done a locking procedure, instead it will be changed to RELOCKED.

Fortunately, there is still a way to change the RELOCKED status on HTC One M9 into LOCKED, and you can even change the status back to UNLOCKED with single adb shell commands. However, this can only be done if you have an S-OFF’ed device, so it could not work when your device is S-ON. Thanks to scotty1223 from xda to show us the magic commands.

htc one m9 relocked to locked

Image: @scotty1223 from xda.

Prerequisites
  • Rooted HTC One M9 with SuperSU installed.
  • A desktop or notebook computer, Windows is preferred.
  • The latest HTC Drivers for the M9.
  • ADB and fastboot files on a computer.

Change HTC One M9 RELOCKED status to LOCKED

Thanks to scotty1223 from xda to show us the following magic adb shell commands.

  1. Go to adb folder, and open a command window there.
  2. Connect the M9 to the PC via USB.
  3. Check the device connection with the following command:
    adb devices
  4. Then proceed to main adb shell command:
    adb shell
    su
    echo -ne '\x00\x00\x00\x00' | dd of=/dev/block/mmcblk0p2 bs=1 seek=33796
    exit

    Note: Make sure there are no errors when typing echo command, if you are in doubt, you can copy-paste the commands from the source thread on xda.

  5. Verify it by reboot into bootloader mode:
    adb reboot bootloader

 

 

Filled Under:Unroot and Relock
Related Tags:
Related Mods

No Responses

Leave a Reply