If you are using Sony Xperia M, then your device might be running Android 4.1(Jelly Bean) or Android 4.3(Jelly Bean).
As you may know that Sony haven’t rolled out Android 4.4(Kitkat) update for Xperia M. So we should not expect Android 5.x(Lollipop) update.
In this tutorial, I am going to show you how to install/flash CyanogenMod 12.1 which is based on Android 5.1.1 Lollipop on your Sony Xperia M.
Here is the XDA thread from the PecanCM who is contributor of the custom ROM which we will install in Sony Xperia M.
Disclaimer: (Must read before installing/flashing the custom ROM)
- This is for only Sony Xperia M which is running on Android 4.3(Jelly Bean). (As per XDA thread) [If your Xperia M running 4.1, first update it to 4.3]
- Take backup of everything in your phone. E.g. Contacts, Messages, Apps, etc.
- This is a nightly build. So you may come across some bugs.
- Make sure Your device battery is greater or equal 80%. Either your device may breakdown.
- Your device’s warranty is now void. You are choosing to install this ROM, So do the whole process at your own risk. We are not responsible for any kind of damages at all. I am not assuring you that you’ll 100% get your device working with Android 5.1.1 Lollipop(CM 12.1).
- Note here that You’re installing everything new so, Probably nothing will remain from 4.3, Thus Backup should be necessary.
Let’s do it
Make sure your Xperia M connected to your computer with USB Cable and USB Debugging is enabled(checked).
If you’ve not enabled USB Debugging(or don’t know what’s that), here are the steps to enable:
Go to Settings -> About phone -> Tab near 7 times on Build number.
After doing above process, you shall see confirmation by that toast message saying You are now a Developer!
Go back, Tap Developer options -> Enable that button on the top-right if it’s not -> Check USB debugging in Debugging section. Click on that OK button in alert which will showing details regarding what is USB debugging.
Make sure that your device is showing in your computer as an attached device. To do so go to this XDA-thread. Download that program. Double click the downloaded file. Say Y/N as per your choice and install it. (I would say Y to all)
Now open CMD (Command Prompt). Type adb devices. Press Enter. If your device is being shown in List of devices attached then you are good to go. If not shown, try to reinstall program/Check that USB debugging is successfully enabled on your device. Or just write down the error in comment section below this post.
- Download Flashtool from here. Install it on your computer.
- Download CWM recovery from here. Rename it to “boot.img”.
- Open this link. Click on the first link after “Direct Download:“ The link text would be like cm-12.1-YYYYMMDD-NIGHTLY-nicki.zip.
- Download Android 5.0 Google Apps from here. File name would be like gapps-lp-YYYYMMDD-signed.zip.
- Open Flashtool. Click on that “Flash device” button (previous to BLU button), Select Fastboot mode. Click Ok. A new window will open. (Make sure your device connected with USB Cable to your computer) Click on Reboot into fastboot mode (via ADB) button. (probably the 1st one)
- Now your device is on fastboot mode so we can install recovery now. (The blue light may be seen on your Device) Click on Select kernel to Flash in Flashtool. Select *.img in file types. Select that boot.img file which you’ve downloaded in Step 2. Click Open.
- After completion of above step, Disconnect your device and boot it. (You will see something like “Finished” message in Flashtool Main window.)
- After successful boot, Connect it again via USB cable to your computer, Open CMD, type adb reboot recovery. (Note: From below steps you will lost all your data so be aware before going ahead. If you’ve not taken Backup, I recommend you to reboot and do it first.)
- It’ll show you the CWM interface, Navigate to wipe data/factory reset via Volume buttons. Press the Power button to select. Navigate to Yes – delete all user data, select it via Power button. It’ll be done in near couple of minutes.
- After completion of above step, Now you will be again in CWM interface, navigate to wipe cache partition, press Power button to select. Navigate to Yes – Wipe Cache, select it via Power button.
- After completion of above step, You’ll be again in CWM interface, Now it’s time to flash the actual CM 12.1 ROM and gapps. Now connect your device to the computer via USB cable (if not). In your device, Navigate to install zip, select it, Navigate to install zip from sideload, select it.
- Navigate to the folder(on your computer) which containing CM 12.1(.zip) and gapps(.zip) files. (which you’ve downloaded in Step 3,4) Shift + Right click in the blank space in the folder window. Select Open command windows here.
- Type adb sideload cm-12.1-YYYYMMDD-NIGHTLY-nicki.zip, press Enter. This will sideload the file to the device and after 100% completion of this transfer, The installation of CM 12.1 will begin in your device. After installation completes, go ahead.
- Now you may see CWM interface or install zip interface. If you’re in CWM interface, Navigate to install zip and select it. If you’re in install zip interface, Navigate to install zip from sideload, select it. Type adb sideload gapps-lp-YYYYMMDD-signed.zip, press Enter. Again it’ll sideload the file to the device and after 100% completion of this transfer, The installation of Google Apps will begin in your device.
- So after the installation of gapps, If you’re in install zip then go back to CWM interface or if you’re in CWM interface then select reboot system now. It may ask you for the “root fix”… You should select Yes.
- Now your device will reboot, It may take up to 15 minutes (first time reboot), So I suggest you to take a cup of coffee/tea with you while the device boots up.
- After finishing the start up guide, Congratulations, Your device is running Android 5.1.1 (CM 12.1).
|Xperia M running CM 12.1 (Android 5.1.1)|
Any questions/problems/queries will be answered in comment section below, so feel free to drop it. And if your device successfully get working with Android 5.1.1 Lollipop, Then I feel glad to here in the comment that “Hey Dude, My device successfully flashed to Lollipop.”