Flash TWRP & Viper10 Android 7.0 Nougat ROM on HTC 10

The HTC 10 was released on May, 2016 and it’s a beast of a device with the Snapdragon 820 and 4GB RAM. It also boasts a screen resolution of 1440×2560 with a Super LCD display. Although it was released with Android Marshmallow 6.0.1, HTC has promised to update it to Nougat 7.0. Some of us do not feel satisfied with the Stock ROMs and hence teamVenom has come with the Viper10 ROM for the HTC 10 based on Nougat.

Prerequisites

Known Issues

  • The ROM boots on old firmware, but you will have a broken Fingerprint Scanner and Home button. You could remap your buttons to have a home button, or enable the navbar.
  • Downgrading firmware should be safe on that base, it has been done by one of our devs several times. On earlier bases it caused a brick. Do it at your own risk, downgrading is always dangerous
  • Going back to M would mean you need to format data in TWRP, or you’ll run in decryption issues when trying to boot Android M.
  • If the rom does not boot, try removing your external sdcard. There have been reports that the issue is even present on the stock N OTA for the dev edition. Removing the external sdcard fixed it for them and the rom booted.

Unlocking the Bootloader

Note: This will wipe all data on your device. Make sure you backup important files as necessary before proceeding.

  1. Enable Developer Options on the HTC 10. This can be done by going to Settings, About Phone and tap the Build number about 5 times. This should enable the Developer Options on the Settings menu
  2. In Developer Options, turn on Enable OEM Unlock and USB Debugging
  3. Go to HTCDev site and choose HTC 10 on the drop down menu. Also make sure you have logged in/created an account on the site and click “Begin Unlock Bootloader”. This will popup a series of Legal Terms which you’ll have to accept to continue.
  4. Now switch the device off to boot to bootloader. You can boot to the bootloader by pressing down Volume Down + Power. Then, use the Volume buttons to navigate up or down and select BOOTLOADER by pressing the Power button.
  5. Open up Minimal ADB & Fastboot on your PC and connect the device. To confirm whether the device has been connected, type in “fastboot devices”. You should see your device listed. It is advised to disconnect all other Android devices, if any.
  6. Now on the ADB, enter “fastboot oem get_identifier_token” (no quotes). This should generate a long string of text which should be copied to the text box My Device Identifier Token on the HTCDev site. Once this token is submitted, you should receive a mail from HTC on your registered email address with a file named Unlock_code.bin.
  7. Download this file and move it to the Minimal ADB folder. For most people, it is usually C:\Program Files (x86)\Minimal ADB and Fastboot. Now, enter “fastboot flash unlocktoken Unlock_code.bin” on the adb and you should get a prompt on the HTC 10. Read the on-screen instructions and press the Volume Up to accept and Power to confirm
  8. You device should now be unlocked.

Flashing TWRP

If you’re not in fastboot mode, follow the above steps and enter fastboot mode. Download the TWRP file here, rename it to “twrp.img” (no quotes) and place on the folder where the Minimal ADB is installed. For most people, it is usually C:\Program Files (x86)\Minimal ADB and Fastboot.

Once the file is in the folder, we can go back to Minimal ADB and type in the command:

fastboot flash recovery twrp.img

This will replace the stock recovery with TWRP. Once completed, choose RECOVERY from the Fastboot menu and enter Recovery Mode. Navigate up and down using the volume keys.

Flashing Viper10 ROM

Firstly, download the Viper10 ROM here and copy it to the Internal Storage of your device. In the TWRP menu, select Wipe, then Factory Reset. Then, select Install and choose the Viper10 zip package. This will prompt you to “Swipe to Flash”. Once the installation has finished you can Reboot to System. Note that the first boot might take a while.

Optional: You can also choose to flash GApps to obtain Google Services after flashing Viper10 from OpenGapps.

We have now installed Viper10 on our HTC 10!