[How to] Install CM 12.1 (Android 5.1.1) on Sony Xperia M

Sony¬†Xperia M is a low end smartphone. Released in August 2013, it features a 1GHz dual-core Qualcomm processor, 1GB RAM and 4GB of internal storage. A MicroSD slot allows for an extra 32GB to be added. The 4″ display has a resolution of 480×854. The Xperia M has a 5MP camera, which can record video at 720p.

Although Xperia M falls in low end category, it can still be upgraded to Android 5.1.1 Lollipop via CM 12.1 custom ROM. This ROM will improve the performance of the phone and also removed the unneeded bloat. Follow the guide below.