How to Install CyanogenMod on the Motorola Droid RAZR M ("xt907")
This guide will walk you through the process of taking the Droid RAZR M from stock to having a custom recovery image and the ability to flash the latest version of CyanogenMod.
Note: DISCLAIMER
Modifying or replacing your device's software may void your device's warranty, lead to data loss, hair loss, financial loss, privacy loss, security breaches, or other damage, and therefore must be done entirely at your own risk. No one affiliated with the CyanogenMod project is responsible for your actions. Good luck.
Contents
Important Notes
Note:
Your device must be bootloader unlocked.
For CM 11.0, the device builds have been unified. Get the latest CM 11.0 build for KitKat bootloader updated devices here and for devices still on JellyBean bootloader here.
For CM 12.0 and newer, KitKat bootloader is required and builds were de-unified again. Get them under the usual xt907 builds.
Unlocking the bootloader on the Droid RAZR M
- This unlock requires your device to be rooted. Do not proceed without a working su.
- Download motopocalypse (credit to djrbliss).
- Extract all files in the zip.
- Windows only: install the latest Motorola USB drivers.
- Enable USB debugging on the device and connect device to PC.
- Windows: run the run.bat file.
- Linux/OSX:
./run.sh
- Your bootloader should now be unlocked, proceed to next section.
Installing a custom recovery using fastboot
See All About Recovery Images for more information about custom recoveries and their capabilities.
- Make sure your computer has working fastboot and adb.
- Download recovery -- you can directly download a recovery image using the link below, or visit twrp.me to obtain the latest version of Team Win Recovery Project for your device.
- Recovery: Download
- md5:
ec2177f9d1c3a3d4671e99522d9b6315
- Connect the Droid RAZR M to the computer via USB.
- Make sure the fastboot binary is in your PATH or that you place the recovery image in the same directory as fastboot.
- 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.
- Once the device is in fastboot mode, verify your PC sees the device by typing
-
fastboot devices
-
- 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.
- Once the flash completes successfully, reboot the device into recovery to verify the installation. Boot to recovery instructions: Hold Volume Down & Power simultaneously.
- Note: Some ROMs overwrite recovery at boot time so if you do not plan to immediately boot into recovery to install CyanogenMod, please be aware that this may overwrite your custom recovery with the stock one.
Installing CyanogenMod from recovery
- Make sure your computer has working adb.
- Download the CyanogenMod build 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.
- Place the CyanogenMod
.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. Theadb
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.
- Using adb:
- If you are not already in recovery, boot to recovery mode now.
- Hold Volume Down & Power simultaneously.
- In Team Win Recovery Project, select menu choices by tapping on the appropriately labelled button.
- Optional (Recommended): Select the Backup button to create a backup.
- Select Wipe and then Factory Reset.
- Select Install.
- Navigate to
/sdcard
and select the CyanogenMod.zip
package. - Follow the on-screen notices to install the package.
- Optional: Install any additional packages you wish using the same method (if you are installing multiple packages, install CyanogenMod first and then install any subsequent packages on top of it).
- Once installation has finished, return to the main menu and select Reboot, then System. The device will now boot into CyanogenMod.
Helpful Tip
Devices with System Version "182.46.15.XT907.Verizon.en.US" or "183.46.15.XT907.Verizon.en.US" (Check under Settings -> About Phone) as installed by an Over-The-Air update can not have their boot loader unlocked unless it was unlocked prior to the update. As of mid 2015, there are no known ways of unlocking the boot loader with those system versions, regardless of if you have root access or not.