TeamWin has now added official support for TWRP recovery for the Sony Xperia M. The recovery version stands at 2.8.7.0, and should now be actively supported by the community. You can grab the recovery image from the download link below, but since there’s no dedicated recovery partition on Sony Xperia devices, installing TWRP will a bit of a setup first.

Sony Xperia devices have different arrangements for recovery than other OEMs. The recovery is booted through the boot image / kernel of a device and that creates problem when you flash a custom ROM with a different custom boot image. To avoid this issue, TeamWin worked with FreeXperia project maintainers to use ramdisk from FOTAKernel instead of the recovery that’s included in the boot image / kernel of a device. This setup requires that you a have custom kernel installed on your device which supports ramdisk extraction utility. Generally, all AOSP based custom ROMs on Xperia devices come with this utility, and for stock ROMs, you may find a custom kernel with the support for this utility.

So in order to flash TWRP recovery you must have kernel/boot image on your Xperia M with ramdisk extraction utility support, otherwise TWRP recovery won’t boot on your device.

Once you make sure you’ve a supported kernel for TWRP recovery installed on your device, go ahead and download/install TWRP recovery using the instructions below:

Download TWRP Recovery for Xperia M

How to Install TWRP Recovery .img file on Xperia M

ROOT REQUIRED

  1. Download the twrp-2.8.x.x-nicki.img file from the link above to your Xperia M.
  2. Download and install Flashify App from Play Store [link →].
  3. Open Flashify and grant it root access when it asks.
  4. Now select the “Recovery image” option under flashing options and select the twrp-2.8.x.x-nicki.img file that you downloaded on your device.
  5. Press Yup! to confirm flashing.
  6. Once flashing process finishes, the app will ask if you want to reboot, do it.

TWRP Recovery should now be installed on your Sony Xperia M. Cheers!