1. First of all you need to
unlock your bootloader. [worked]
Go
developer_sony to proceed with unlocking (official SONY's website)
- In your device, open the dialler and enter *#*#7378423#*#* to access the service menu.
- Tap Service info > Configuration > Rooting Status. If Bootloader unlock allowed says Yes, then you can continue with the next step. If it says No, or if the status is missing, your device cannot be unlocked.
2. Then you need to root your XPeria P [worked]
The following root method worked for me:
DooMLoRD Easy Rooting Toolkit (v17)
3. To install CWM [worked]
CWM xda link
You need to have root access in order to use this method.
It worked fine for me.
CyanogenMod 11
did NOT install from CWM for me. It started fine and then couldn't read the phone model number properly.
4. To install TWRP [did not work as expected]
extract
boot.img from cm-11-20141012-SNAPSHOT-M11-nypon.zip and copy it to the main script directory.
flash the boot image in fastboot mode with:
sudo fastboot flash boot boot.img
4. Cyanogemod 11 link
http://forum.xda-developers.com/xperia-u/p-development/rom-cyanogenmod-11-0-t2626639
Workaround:
After 1,2,4 (After flashing boot.img )
enter CWM and try to flash CyanogenMod. The device will restart and enter bootloop. Try pressing power button to enter TWRP.
Then flash cyanogenmod normally.
HOW TO ENTER RECOVERY MODE in Xperia P
howto
CyanogenMod:
1.press power + volume up for 3 seconds until the phone vibrates
2. keep on pressing volume up
multiple times until clockworkmod recovery shows
TWRP
1.press power + volume up for 3 seconds until the phone vibrates
2. keep on pressing power until twrp shows