Update HTC One M8 to Android 5.0.2 Lollipop via CyanogenMod 12 Nightly ROM [Official]

HTC One M8 is the latest HTC’s flagship device, released in 2014. We’ve already covered HTC One M8 with many guides like installing SkyDragon, Google Play Edition and its Secret Codes etc. So if you have M8 then like other smartphones, this device is also receiving the newest Android 5.0.2 Lollipop update. The CyanogenMod 12 nightly build based on Android Open Project (AOSP) 5.0.2 Lollipop has been released for HTC One M8 by the CyanogenMod team officially that brings many essential features such as Calls, Wi-Fi, Bluetooth, GPS, Camera. However the “nightly version” is still unstable and might still have some bugs but these issues will be fixed soon.

Update HTC One M8 to Android 5.0.2 Lollipop

CyanogenMod 12 Nightly Build Features:

  • Material Design guidelines
  • Multiple pages support of apps in multi-tasking pane
  • Tap & Go features
  • Heads-up style notifications
  • Lock-screen notifications
  • Much improved security/encryption options
  • MirrorLink support and more others.

So if you wish to get CM12 nightly build on your device then we’ve a detailed guide on how to update HTC One M8 to Android 5.0.2 using the CyanogenMod 12 Nightly.


This guide is only working with HTC One M8 to install the official CyanogenMod 12 nightly. Do not try to flash it on any other variant, or the device might get bricked.


AndroidBlog.gs will not be held responsible for any mishap happened to your HTC One M8 during or after the installation process of this Nightly ROM.


  • Take a backup of your phone data and settings via custom recovery like CWM or TWRP. In case anything geos wrong then you’ll be able to restore.
  • Verify that you’ve properly installed USB Drivers for your HTC One M8 on the PC.
  • Enable USB Debugging Mode on your device.
  • Set up ADB and Fastboot with Android SDK. How To?
  • The bootloader of the phone should be unlocked.
  • HTC One M8 should be rooted.
  • Your device has a custom Recovery installed.
  • The battery level of your HTC One M8 must be at least 80% charged before proceeding to the installation guide.

Required Files

Steps to Install Android 5.0.2 Lollipop on HTC One M8 via CM12 Nightly Build:

1:- First, download Android 5.0.2 CM12 Nightly and Google Apps Package .zip files on the desktop of your PC.

2:- Extract the boot.img from the zip CM12 zip file separately.

3:- Now, connect your HTC One M8 to the PC via USB data cable.

4:- Copy the downloaded .zip files to the root folder of the SD card on the phone.

5:- Transfer the boot.img file to android-sdk-windowsplatform-tools directory

6:- Disconnect the phone from the PC.

7:- Turn off the phone.

8:- Now enter into Bootloader/Fastboot Mode. To do so, turn on the HTC One M8 while pressing and holding Volume Down + Power keys altogether.

9:- In fastboot mode, go to android-sdk-windowsplatform-tools directory on the PC.

10:- Open a command prompt and type the following command and press Enter:

fastboot flash boot boot.img

10:- Now type the following command and press Enter

fastboot reboot

12:- Choose Bootloader and then go to Recovery by following the on-screen instructions.

13:- In CWM recovery, perform wipe data/ factory reset, wipe cache partition and wipe dalvik cache by navigating to advanced > wipe dalvik cache to avoid boot loops and other errors while firmware installation.

14:- Choose Install zip from SD card > Choose zip from SD card.

15:- Find and select the CyanogenMod 12 nightly which you have already copied to the SD card and confirm installation to begin.

16:- Install Google Apps (Gapps) by repeating the above two steps on the HTC One M8.

17:- Navigate to the recovery menu and reboot your phone by selecting reboot system now, once the installation is completed.

The HTC One M8 will take about 4 to 5 minutes to boots up after installing the firmware and Gapps.

Done! Your have updated HTC One M8 to Android 5.0.2 with CyanogenMod 12 Nightly build.

Let us know in the comments section below if you have any query or problem regarding the above guide to install CM12 Nightly build based on Android 5.0.2 on HTC One M8.

You might also like
  1. Ben says

    Won’t recognize att settings. No cellular service at all. Won’t allow me to add Apn. WiFi works great though.

    1. Ryan says

      Same issue here, still.

  2. Sheryl Mann says

    After 12th & 13th Jan builds, camera doesn’t work. App starts and the drops back to home screen.

  3. Ben says

    Super noob question here: I’ve never rooted a device or installed a custom ROM. How easy/fool-proof is getting your contacts back into the phone. That’s really the only thing I’m worried about.


Leave A Reply

Your email address will not be published.

android 1, android, android studio, android device manager, android pie, android games, android one, android emulator, android versions, android emulator for pc, android apps, android app development, android authority, android apk, android arsenal, android apps on pc, android auto, android activity lifecycle, android app download, android architecture, android codes, android color codes, android central, android cdc driver, android car stereo, android course, android camera, android omponents, android box, android beta, android best games, android beam, android backup, android backup to pc, android basics, android games, android games apk, android games free download, android go, android gamer, android games 2018, android games on pc, android glide, android game development, android emulator online, android emulator download, android emulator for mac, android emulator for windows 10, android file transfer, android file host, android framework, android flash tool, android firmware, android hacking tools, android hd wallpapers, android hard reset, android heavy games, android data recovery, android keyboard, android kitkat, android keyboard apk, android keylogger, android imei check, android multi tools, android manager, android material design, android mobile games, android modded games, android latest version, android lollipop, android nougat, android oreo, android pie, android play store, android pc suite, android pie update, android police, android programming, android questions, android ringtones, android root, android root apk, android root apps, android tv box, android themes, android tools, android wallpapers, android wallpapers hd, android usb driver, android ui design, android update 8.0, android update 9.0, android studio, android sdk manager, android secret codes, android vidmate, android youtube downloader, android youtube downloader apk, android youtube background play, android zapya