[Sony Xperia M2] AleksJ:
Multiple custom Android recovery solution for Xperia M2.

Requirements:

Rooted Sony Xperia M2 D2302-6/D2403

Installed ADB Interface Driver *

Stock firmwares (Android 4.3 - 5.1.1).

Locked bootloader.

How to use:

Extract recovery installer zip into your computer hard drive.

Enable USB Debugging.

Connect computer with the device via USB.

Execute installation script and follow the instruction on the screen.

Enter into recovery:

Power ON phone.

When the cyan led glows push/press the appropriate button:

Volume Down - PhilZ

Volume UP - TWRP

Camera button - CWM

Download recovery:

v0.1

PhilZ Touch Installer

PhilZ Touch flashable

v0.2

PhilZ Touch Installer

PhilZ Touch flashable

v0.3

PhilZ Touch Installer

PhilZ Touch flashable

v0.4

TWRP Installer

TWRP flashable

v0.5

PhilZ TWRP CWM Installer

v0.6

PhilZ TWRP CWM Installer

v0.7

PhilZ TWRP CWM Installer

v0.8

PhilZ TWRP CWM Installer

v0.9

XperiaM2 MultiRecovery Installerhttp://xdaforums.com/attachment.php?attachmentid=3754953&stc=1&d=1463594740

Download pre-rooted flashable.zip:

D2303_1281-1548_18.3.1.C.1.13 pre-rooted

D2303_1281-1538_18.3.1.C.1.17 pre-rooted

Includes:

- SuperSU v2.46

- PhilZ Touch Recovery

- RICDefeat (modulecrcpatch and wp_mod.ko based on code by @cubeundcube)

Install pre-rooted flashable zip:

Enter into recovery and create a backup of current firmware:

. Backup and Restore -> Backup to storage/sdcard1/clockworkmod/backup/yy-mm-dd.fw.vesrion

. Copy pre-rooted flashable.zip to storage/sdcard1:

. Wipe and Format Options -> Wipe Dalvik/ART Cache or Clean to Install a New ROM

. Install Zip -> Choose zip from /storage/sdcard1 -> choose the path to the folder that contains the flashable.zip

. Confirm..

Questions & Answers:

Q: Do I need root access to install and use MultiRecovery?

Q: How to disable Sony RIC on Xperia M2?

A: Yes. The root is mandatory. EagleRootTool_20160531 * is my recommendation for a successful completion of these tasks (on Android 5.1.1).

Q: Do I need to 'install' any pre-rooted flashable.zip beforehand?

A: No. This is an optional feature and is there for if and when you’d ever like to try it.

Q: Is it possible to flash any custom ROM?

A: Yes. On unlocked bootloader you can flash a custom kernel with this tool, included.

Changelog:

v0.9

Date: 2016-05-18

Update and recompile Android 'init'.

Update CWM and PhilZ to latest builds.

Add selinux_mod and copymodulecrc to installation script.

The module loading stage is logged in mr.log file.

v0.8

Date: 2016-01-19

Added installation script with separate adb support for Linux OS.

Stripped version of byeselinux LKM to reduce size.

Relevant bug fixes, update LEDs (media and notifications one) in regular Xperia M2.

MOBILE [aka Emergency] version, which consists on a shell script that can be executed from an elevated Terminal Emulator.

Demo video preview *

v0.7

Date: 2015-11-09

Use of Chargemon instead of e2fsck as base script to trigger the Recovery.

Usage of ByeSELinux kernel module to change SE Linux Status from Enforcing to Permissive during boot. (Many thanks to NUT and zxz0O0).

(After the user interaction time span, the module is unloaded to continue to regular boot.)

The same 3 recoveries as KitKat are included, TWRP, PhilZ and CWM.

Compatibility with legacy e2fsck script inside the installer (Option number 2: "Install MultiRecovery (Android 4.4.x)")

New Linux/OSX installer script (WIP, only supports installation of Android 5.1.1 Recovery. Will be improved in the future).

Updated BusyBox.

More information can be found here *

v0.6

Date: 2015-08-22

Fixed USB connection, adb shell commands can be used while device is in recovery mode.

v0.5

Date: 2015-06-22

Added button management, vol-up for TWRP, camera button for CWM.

Added TWRP Recovery v2.8.1.0 to installer.

v0.4

Date: 2015-05-19

Temp fixes in a script to catch key events.

v0.3

Date: 2015-05-19

Changes in recovery.fstab to avoid messages about /misc partition.

Used a new compilation of busybox * to correct error: unzip zip flags 1 and 8 are not supported.

v0.2

Date: 2015-04-01

The zip files is packed with new binary interpreter.

The flashable zip can be used with PRFcreator *

v0.1

Date: 2015-03-06

Initial public release.

Credits and thanks:

Phil3759 for source.

Team Win Recovery Project.

DooMLoRD for ramdisk.

rachitrawat and [NUT] for recovery installer.

zxz0O0 for PRFCreator.

[MENTION=5006091]Andrej732[/MENTION] and [MENTION=4787101]linuxct[/MENTION] for improvements on installer script.

XDA:DevDB Information

XperiaM2 MultiRecovery for locked bootloader, Device Specific App for the Sony Xperia M2

Contributors

AleksJ, linuxct

Version Information

Status: Stable

Created 2015-03-06

Last Updated 2016-05-17

I'm not responsible for any problems caused by using anything from here, so do it at your own risk!