How to Install CyanogenMod 12 (CM12) on Android Devices
In this article
Installing CyanogenMod 12 (CM12) replaces your device's stock operating system with a custom version of Android 5.0 Lollipop. This process unlocks deeper customization options, removes carrier bloatware, and can extend the usable life of older hardware. The installation requires unlocking the bootloader, installing a custom recovery, and flashing the CM12 ROM files. Proceed carefully, as this process wipes all data on the device.
What You'll Need
- A compatible Android device: CyanogenMod builds are device-specific. You must download the build specifically designed for your exact model number.
- A Windows, Mac, or Linux computer: Required for installing the necessary USB drivers and using ADB (Android Debug Bridge) tools.
- A USB data cable: Use the original cable that came with the device or a high-quality alternative to ensure a stable connection during file transfer.
- The CM12 ROM file: Download the correct
.zipfile for your device from a trusted archive or the official CyanogenMod legacy mirrors. - Google Apps (GApps) package: CM12 does not include Google Play Services or the Play Store by default. You must download a compatible Lollipop GApps package separately.
- A custom recovery image: Usually TWRP (Team Win Recovery Project) or ClockworkMod (CWM), specific to your device model.
Step-by-Step
- Back up all your data. This process performs a factory reset. Connect your device to a computer and copy photos, videos, and documents. Use a backup app to save app data if needed. This step cannot be skipped; everything on the internal storage will be erased.
- Enable Developer Options and USB Debugging. Go to Settings > About Phone and tap Build Number seven times until you see a confirmation message. Return to the main Settings menu, select Developer Options, and toggle USB Debugging to On. (Menu labels may differ slightly depending on your current Android version.)
- Unlock the Bootloader. This step varies significantly by manufacturer. For many devices, you must boot into Fastboot mode (usually by holding Volume Down and Power while the device is off), connect to a computer with ADB tools installed, and run a command such as
fastboot oem unlockorfastboot flashing unlock. Follow the specific instructions for your device model exactly, as incorrect commands can brick the device. - Install a Custom Recovery. Once the bootloader is unlocked, flash the custom recovery image. Connect the device to your computer via USB. Open the command prompt or terminal window where your ADB and Fastboot tools are located. Boot the device into Fastboot/Bootloader mode. Enter the command specific to your recovery file, for example:
fastboot flash recovery twrp-[version]-[device].img. Once the process finishes, reboot the device. - Transfer the ROM and GApps files. Power on the device normally. Connect it to your computer via USB. Copy the CM12 ROM
.zipfile and the GApps.zipfile to the root of your internal storage (do not put them inside a folder). Disconnect the USB cable once the transfer is complete. - Boot into Recovery Mode. Power off the device completely. Press and hold the specific key combination for your device (usually Volume Up, Home, and Power, or Volume Down and Power) until the custom recovery screen appears.
- Perform a Factory Reset. In the recovery menu (TWRP or CWM), select the option to wipe data. In TWRP, tap Wipe, then slide the slider to perform a Factory Reset. This clears the old operating system data to prevent conflicts.
- Install the CyanogenMod 12 ROM. Select Install (or Install Zip in CWM). Navigate to the CM12 ROM
.zipfile you transferred earlier. Select it and swipe to confirm the flash. Wait for the process to complete. Do not reboot yet. - Install the GApps Package. While still in the recovery menu, select Install again. Navigate to the GApps
.zipfile. Select it and swipe to confirm the flash. This installs the Google Play Store and essential services. - Reboot the System. Once both files have successfully flashed, select Reboot and then System. The first boot after installing a custom ROM takes significantly longer than usual—often several minutes. This is normal.
Common Mistakes
One frequent error is downloading the wrong ROM for a specific device variant. A build designed for an international model may not work on a carrier-specific variant, leading to a bootloop. Always verify your exact model number in Settings > About Phone before downloading files. Another common mistake is forgetting to install the GApps package; without it, you will have no way to download apps from the Play Store. Users also often forget to perform the factory reset before flashing the ROM, which causes the new system to crash or fail to boot due to conflicting data from the old system.
Tips
Before starting, ensure your device battery is charged to at least 50%. If the battery dies during the flashing process, the device may become unusable. It is also wise to keep a copy of the stock firmware for your device on your computer. If CyanogenMod does not work or you wish to return to the original software, having the stock image allows you to restore the device to its factory state. When using ADB and Fastboot, always ensure you have the latest USB drivers for your specific device manufacturer installed on your computer.
Troubleshooting
If the device is stuck on the boot logo (a "bootloop") for more than 15 minutes, force a restart by holding the Power button until the screen goes black. Then, boot back into Recovery Mode. Perform the Factory Reset/Wipe Data step again, and try flashing the ROM file a second time. If the device does not boot into Recovery Mode at all, double-check that the bootloader was successfully unlocked. If the computer does not recognize the device when connected via USB, try a different USB port or reinstall the manufacturer's USB drivers. If Wi-Fi or cellular data does not work after installation, you may have flashed a ROM intended for a different regional variant of your device.
Frequently Asked Questions
Is CyanogenMod 12 still officially supported?
No. CyanogenMod discontinued operations years ago. CM12 is legacy software based on Android 5.0 Lollipop. It receives no security updates or patches. Use it at your own risk on older hardware that cannot run modern operating systems.
Will this void my warranty?
Yes. Unlocking the bootloader and installing custom software almost always voids the manufacturer's warranty. Some manufacturers allow you to re-lock the bootloader, but the system may still show a "modified" status.
Do I need to root my device to install CM12?
No. CyanogenMod generally included root access options built directly into the operating system settings. You do not need to perform a separate rooting step after installing the ROM.
Why do I need to install GApps separately?
CyanogenMod was built from open-source code. Due to licensing restrictions, Google's proprietary applications (like the Play Store, Gmail, and Maps) could not be bundled with the ROM. You must flash them as a separate add-on package.
What if I want to go back to the stock Android version?
You must download the official stock firmware image for your device from the manufacturer's website or a trusted archive. You will then use a tool like Odin (Samsung), Fastboot (Nexus/Pixel), or a manufacturer-specific tool to flash the stock image, which typically re-locks the bootloader and restores the original system.