HTC One GSM (m7)

Unlocking the device

Note:

The One (GSM) can be unlocked officially via the HTC Dev unlock program. This unlock method may have certain restrictions, such as not being able to flash a kernel via recovery (no longer applicable to 2013+ released devices) or no USB access to sdcard in recovery. Some devices, however, have no other method to install custom firmware.

  1. Make sure your computer has working fastboot and adb.
  2. Enable USB debugging on the device.
  3. Connect the device to the computer through USB.
  4. From a terminal on a computer, type the following to boot the device into fastboot mode:
    adb reboot bootloader
  5. Once the device is in fastboot mode, verify your PC sees the device by typing fastboot devices
    • If you don't see your device serial number, and instead see "<waiting for device>", fastboot is not configured properly on your machine. See fastboot documentation for more info.
    • If you see "no permissions fastboot", try running fastboot as root.
  6. From the same terminal, type the following command to obtain your bootloader unlock token:
    fastboot oem get_identifier_token
  7. Visit the HTCDev Bootloader Unlock website and follow the instructions there to obtain your unlock key. If your device does not appear in the drop-down list, select All Other Supported Models.
  8. If the device doesn't automatically reboot, reboot it from the menu. It should now be unlocked.
  9. Since the device resets completely, you will need to re-enable USB debugging on the device to continue.

Installing recovery using fastboot

See All About Recovery Images for more information about custom recoveries and their capabilities.

  1. Make sure your computer has working fastboot and adb.
  2. Download recovery -- you can directly download a recovery image using the link below, or visit clockworkmod.com/rommanager to check for the latest version of ClockworkMod recovery for your device (if your device can be found there).
    Recovery: twrp-2.7.1.2-m7.img
    md5: eea185dc09fdd99bd65578355d1eea92
  3. Connect the One (GSM) to the computer via USB.
  4. Make sure the fastboot binary is in your PATH or that you place the recovery image in the same directory as fastboot.
  5. Open a terminal on your PC and reboot the device into fastboot mode by typing
    adb reboot bootloader
    or by using the hardware key combination for your device while it is powered off.
  6. Once the device is in fastboot mode, verify your PC sees the device by typing
    fastboot devices
    • If you don't see your device serial number, and instead see "<waiting for device>", fastboot is not configured properly on your machine. See fastboot documentation for more info.
    • If you see "no permissions fastboot", make sure your UDEV rules are setup correctly.
  7. Flash recovery onto your device by entering the following command:
    fastboot flash recovery your_recovery_image.img
    where the latter part is the filename of the recovery image.
  8. Once the flash completes successfully, reboot the device into recovery to verify the installation. Boot to recovery instructions: With the device powered down, hold the Volume Down and Power buttons until HBOOT appears, then release the buttons. Navigate using the volume keys and select RECOVERY using the Power key.
    • Note: Some ROMs overwrite recovery at boot time so if you do not plan to immediately boot into recovery to install Tesla OS, please be aware that this may overwrite your custom recovery with the stock one.

Installing Tesla OS from recovery

  1. Make sure your computer has working adb.
  2. Download the Tesla OS package for your device that you'd like to install to your computer.
    Optional: Download 3rd party applications packages, like Google Apps which are necessary to download apps from Google Play.
  3. Place the Tesla OS .zip package, as well as any optional .zip packages, on the root of /sdcard:
    • Using adb: adb push filename.zip /sdcard/
    Note: You can copy the .zip packages to your device using any method you are familiar with. The adb method is used here because it is universal across all devices and works in both Android and recovery mode. If you are in recovery mode, you may need to ensure /sdcard (sometimes called Internal Storage) is mounted by checking its status in the Mounts menu. If you have booted regularly, USB debugging must be enabled.
  4. If you are not already in recovery, boot to recovery mode now.
    • With the device powered down, hold the Volume Down and Power buttons until HBOOT appears, then release the buttons. Navigate using the volume keys and select RECOVERY using the Power key.
  5. In Team Win Recovery Project, select menu choices by tapping on the appropriately labelled button.
  6. Optional (Recommended): Select the Backup button.
  7. Select Wipe and then Factory Reset. If you're getting an error formatting /data, try format /data and /data/media from the Mounts and Storage Menu.
  8. Select Install.
  9. Navigate to /sdcard and select the Tesla OS .zip package.
  10. Follow the on-screen notices to install the package.
  11. Optional: Install any additional packages you wish using the same method (if you are installing multiple packages, install Tesla OS the first and then install any subsequent packages on top of it).
  12. Once installation has finished, return to the main menu and select Reboot, then System. The device will now boot into Tesla OS. Note that the first boot after installation may take 5 - 10 minutes.

Download

Since our project is open-source and free, help us to make it more better.