• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

DroidViews

  • Apps
  • Downloads
    • Android Apps
    • Themes
  • Guides
    • Root
  • ROMs
  • Reviews
  • Wallpapers

How to Lock or Unlock HTC One M9 without using HTCDev

DJ | 13 May 2015 | Guides/ HTC

Have you just got your hands on the latest HTC beast? Yes, I am talking about the HTC One M9, the one brilliant masterpiece which was released just a month back during 2015. Now that you have it, you must be thinking of exploring it beyond its limit, but to do that you must unlock the device. The process of unlocking has been made easy by the OEM itself through HTCDev, But it does have its own limitations and inconvenience, which makes the process a bit lengthy to carry out.

But, our friend scotty1223 at XDA has bought up a method to lock/unlock HTC One M9 without HTCDev using simple adb commands. The process makes it very easy for you to lock or unlock your M9, but it does require your device to be Rooted and S-Off. Both of which you can perform easily by following the links below.

S-OFF HTC One M9 Using SunShine App

How to Root HTC One M9 and Install TWRP Recovery

Now once you’re done with this, you can go forward and follow the instructions. The commands not only lets you lock and unlock, but it also helps you to change the HBOOT watermark from relocked or locked, back to stock. Some other advantages are no more use of tokens or personal information, no HBOOT downgrades and no unlock codes, and that saves you a lot of time and work.

Warning!

S-Off, locking, unlocking or Rooting could be a risky process if done wrong. You can restore to stock by using the device RUU. DroidViews or any of its members shall not be held responsible for any damage to your device.

Prepare Everything

  • Download and Install HTC drivers.
  • Setup Android SDK.
  • Charge your device to a sufficient battery level, so that the device doesn’t get stuck during the process.
  • Backup everything on your device.
  • Enable USB debugging. If you still haven’t, follow our short guide.

Steps To Lock/Unlock HTC One M9

  1. Connect your device to the PC via USB cable.
  2. Open a CMD window and start by entering the following commands:
    adb devices
  3. The above command will return a device ID, confirming that the device has been connected successfully and available for ADB access. If you don’t get an ID, make sure to reinstall the drivers properly.
  4. Start the locking process now:
    adb shell
    su
  5. After entering the above command, you will be prompted to allow root access, allow it.
  6. To lock your device:
    echo -ne '\x00\x00\x00\x00' | dd of=/dev/block/mmcblk0p2 bs=1 seek=33796
  7. To unlock your device:
    echo -ne "HTCU" | dd of=/dev/block/mmcblk0p2 bs=1 seek=33796
  8. Time to exit the shell.
    exit
  9. Reboot your bootloader
    adb reboot bootloader

Now, in the bootloader mode, you can verify that the device has now changed its status to locked or unlocked, as per your procedure. The process was easy and did save your time, let us know if you’re stuck anywhere between the process, we will definitely provide an helping hand.

Visit the original XDA thread for more information on the process and its working.

Tags: HTC One M9 HTC One M9 Tips and Tricks Tips and Tricks

Related Posts

HTC One M9 and Xperia X Performance Gets Android Nougat Update

htc one m9 nougat update

Install Android 7.0 Nougat OTA and RUU on HTC One M9

Fingerprint Quick Action

Get Google Pixel-Like Fingerprint Quick Action Feature on Android

Reader Interactions

Discussion

  1. Aug 13, 2016 at 4:30 AM
    Daniel Morin says:
    Reply

    So, here it says the prerequisite to unlocking the bootloader without HTCDev, you have to have root/S-off. But in the links provided to root, you have to unlock the bootloader?
    What kind of nonsense is that?

    • Aug 13, 2016 at 8:51 AM
      Rakesh says:
      Reply

      Both are separate guides. Someone found a way to unlock the bootloader without HTC Dev and we just shared it here.

Join The Discussion: Cancel reply

We never share our visitor/user details. For more info, Please read our privacy policy before submitting your comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Ezoic

Ezoic

Footer

  • Apps
  • Downloads
    • Android Apps
    • Themes
  • Guides
    • Root
  • ROMs
  • Reviews
  • Wallpapers

© 2023 · DroidViews