CyanogenMod Sony

How to Install CyanogenMod 13 Nightly on Sony Xperia M

CyanogenMod is actively supporting lots of Android devices which are long abandoned by manufacturers and one of those devices is Sony’s Xperia M. CyanogenMod has started releasing CyanogenMod 13 nightly builds for the Xperia M which are based on Android 6.0.1 i.e. Marshmallow. Here’s how they can be installed.

Steps to Install CyanogenMod 13 on Sony Xperia M


  • Before Installing CM13 make sure you have your bootloader unlocked. If you haven’t unlocked then follow the unlock tutorial.
  • Make sure that you are either on CM11/12.1 build or on Android 4.3 Stock build. If you are on Android 4.1 then do update your phone to either of the builds. The reason for having those build is that they have different radio base band. If you install CM13 over android 4.1 you might be facing the following issues.
    • IMEI Null
    • SIM not Detected
    • No Services
  • Your device has at least around 50% battery.


  1. Download the latest build from here and copy it to your device’s internal storage.
  2. As Sony doesn’t come with recovery installed in it so you need to use the boot.img to get the recovery installed.
  3. From the downloaded ROM extract boot.img and place it in the folder where ADB is installed. (If not installed then you can get ADB Drivers from here.)
  4. Connect your device to PC. Then open command prompt and run the following commands one by one to install the recovery.
    adb reboot bootloader
    fastboot devices
    fastboot flash boot boot.img
    fastboot rebooot

    Install Recovery- Sony Xperia M
    Install Recovery
  5. When the device is booting, at the screen when SONY logo is flashing start pressing Volume UP button once you seen PINK LED at the bottom to boot to recovery. When the LED changes it’s color  from PINK to BLUE means you are entering to Recovery.
  6. After you boot to recovery navigate to Factory reset and wipe data and cache.
  7. Now Select Apply Update and select the ROM and flash it.
  8. Once the flashing process is completed reboot your device.

Take a look at the video for better understanding.

That’s it. You have installed CyanogenMod 13 on Sony Xperia M. First boot will take some good time so don’t worry. Let us know if you faced any issue in installing it, we will be happy to help you. 🙂


Click here to post a comment

Email me when somebody replies to my comment.

  • What was your ROM version on this phone? I mean… was it a stock ROM 4.3 or was it some custom ROM you installed earlier? I am a little bit worried to flash TWRP using a method you showed in this tutorial because:”…Other boot images including stock kernels can be repacked to include this extraction utility to allow you to use TWRP from the FOTAKernel partition. This setup allows you to choose what recovery you want to have installed and allows you to update your recovery more easily. Unfortunately this setup requires that the boot image that you have installed include the ramdisk extraction utility…”

    So… in order to install the latest CM 14 I could go the same way you did? Flash TWRP using fastboot? I have stock Sony 4.3 ROM. Could you confirm that it won’t brick my phone?
    P.S. Have you used TWRP official app to do this?

  • I successfully installed CM-13 20160904, then 2 days later came a OTA update request and I OKed.
    And after re initializing the phone doesn’t turn on, just keep blinking the screen whit a blue led ligth at the bottom.
    I already retake the procedure step by step trying to do a fresh install but it didn’t take.
    What should I do?

    • Install again the build via recovery.
      Just wipe the Caches and Dalvik caches and flash back.
      If still it doesn’t work the wipe the complete DATA and do fresh install.

Subscribe for email updates!

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 4,973 other subscribers