Install CWM Recovery on Xperia M2 LTE
In this article
Installing ClockworkMod (CWM) Recovery on your Sony Xperia M2 LTE (D2303, D2305, D2306) lets you create full system backups, flash custom ROMs, and wipe data for troubleshooting. This guide uses the official unlock method and a PC. You need a Windows PC, a USB cable, and your phone's bootloader must be unlocked first. Unlocking the bootloader wipes all data, so back up everything before starting.
What You'll Need
- Xperia M2 LTE with USB debugging enabled (Settings > Developer options > USB debugging). If Developer options are hidden, go to Settings > About phone and tap "Build number" 7 times.
- A Windows PC with internet access.
- USB cable for your phone.
- Official Sony USB drivers installed (download from Sony's support site).
- ADB and Fastboot tools installed on your PC (from the official Android SDK platform-tools).
- CWM recovery image file for the Xperia M2 LTE (e.g.,
cwm_recovery.img). Download only from reputable XDA-developers forums or known developer sites. - Your phone's bootloader unlock code from Sony's official unlock site (you'll need your IMEI).
Step-by-Step
- Unlock the bootloader (required once). On your phone, dial
*#*#7378423#*#*to open the service menu. Go to Service info > Configuration and check if "Bootloader unlock allowed" says "Yes". If it does, go to Sony's official unlock website, enter your email and IMEI (find it by dialing*#06#), and receive the unlock code. - Back up your data. Unlocking wipes everything. Copy photos, contacts, and files to your PC or cloud.
- Enable OEM unlock (if present). On Android 5.0+, go to Settings > Developer options and enable "OEM unlocking" if the option exists. If not, skip.
- Turn off the phone. Power it down completely.
- Boot into fastboot mode. While the phone is off, hold the Volume Up button and plug the USB cable into the phone (connected to PC). The LED may turn blue. Alternatively, with the phone off, hold Volume Up + Power for a few seconds, then release Power but keep Volume Up until the blue LED appears.
- Verify fastboot connection. On your PC, open a command prompt in the folder where you have ADB/fastboot tools. Type
fastboot devicesand press Enter. You should see your device listed (e.g., "S1" or a serial number). If not, install drivers or try a different USB port. - Unlock the bootloader. Type
fastboot oem unlock YOUR_UNLOCK_CODE(replace with the code from Sony) and press Enter. Confirm on the phone if prompted. The phone will reboot and wipe data. After reboot, set up the phone minimally (skip Wi-Fi) and re-enable USB debugging. - Download and verify the CWM recovery image. Place the
.imgfile in the same folder as your fastboot tools. Rename it torecovery.imgfor simplicity. - Boot into fastboot again. Turn off the phone, then hold Volume Up and connect USB to enter fastboot mode again.
- Flash the recovery. In the command prompt, type
fastboot flash recovery recovery.imgand press Enter. Wait for "OKAY" message. - Reboot into recovery. Type
fastboot rebootand immediately hold Volume Down (or Volume Up, depending on your device) to boot into recovery. The CWM menu should appear. - Create a backup (optional but recommended). In CWM, use the volume keys to navigate and power button to select. Go to "backup and restore" > "backup to /sdcard" to create a full system backup.
Common Mistakes
- Forgetting to unlock the bootloader first – flashing recovery will fail with "remote: command not allowed" or similar.
- Using the wrong recovery image for your exact model (D2303 vs D2305) – always match the model number.
- Not installing proper USB drivers – fastboot won't recognize the device.
- Skipping the data backup – unlocking wipes everything.
- Holding the wrong volume button to enter fastboot – on Xperia M2, Volume Up is for fastboot, Volume Down is for recovery (after CWM is installed).
Tips
- Use a short, high-quality USB cable and a direct USB port on your PC (avoid hubs).
- Keep the phone charged above 50% to avoid shutdown during flashing.
- After flashing, you can boot into recovery anytime by turning off the phone and holding Volume Down + Power for a few seconds.
- If you ever want to revert to stock recovery, download the stock firmware and use Sony's Flashtool to restore it.
Troubleshooting
If fastboot doesn't detect the device: Reinstall the Sony USB drivers, try a different USB port, or check Device Manager for unrecognized devices. Also ensure you're in fastboot mode (blue LED).
If the flash command fails with "remote: command not allowed": The bootloader is still locked. Repeat the unlock step carefully.
If the phone boots normally instead of recovery: You may have missed the volume key timing. Try again: after flashing, type fastboot reboot and immediately hold Volume Down until the recovery appears.
If CWM is stuck on a black screen: Wait a few minutes; first boot can be slow. If still stuck, re-flash the recovery image and try again.
If the phone gets into a boot loop after flashing: Boot into recovery (Volume Down + Power), wipe cache partition (in CWM: "wipe cache partition"), and reboot. If that fails, restore your backup from CWM.
Frequently Asked Questions
Is unlocking the bootloader safe?
It voids your warranty and wipes data, but it's reversible by relocking with Sony's official tool. It does not brick the phone if done correctly.
Will CWM recovery work on all Xperia M2 LTE models?
Only if the recovery image is built for your exact model (D2303, D2305, D2306). Using a mismatched image can cause boot loops.
Can I install CWM without a PC?
No, the standard method requires a PC with fastboot. Some apps claim to flash recovery from the phone, but they are unreliable and often require root.
Will I lose my data after installing CWM?
Only if you unlock the bootloader (which wipes data). Installing the recovery itself does not wipe data, but it's safe to back up anyway.
Can I uninstall CWM later?
Yes, you can flash the stock recovery using Sony's Flashtool with the official firmware, or re-lock the bootloader.
What if I get an error like "cannot load recovery.img"?
Make sure the file is in the same folder as your fastboot.exe and the filename is exactly correct (case-sensitive on Linux, but Windows is case-insensitive). Check the file path.