Xperia M2 cyanogenmod

From Tech
Jump to navigationJump to search

Unlocking

  • Get the unlock code from sony
  • As cyanogenmod describes for the Yuga, power down the xperia, the hold volumeUp while inserting USB cable, and on the computer type:
# fastboot getvar version
version: 0.5
finished. total time: 0.003s
  • Then unlock using:
# fastboot -i 0x0fce oem unlock 0x012345678ABCDEF
...
OKAY [  1.133s]
finished. total time: 1.133s

Note: unlocking will erase all data from the phone, and do a factory reset.

Sony flash toool

Using the flash tool, updated the boot thingy. (From "Boot: 1274-7024 S1_Boot_MSM8x26_LA1.0_36" to "Boot: 1274-7024 S1_Boot_MSM8x26_LA1.0_1027")

Note: updating the boot thingy with the flash tool will not erase all data, nor do a factory reset.

Install CM12

Using steps from Alpha 5.

# fastboot getvar version
version: 0.5
finished. total time: 0.003s
# fastboot flash boot boot.img
sending 'boot' (11764 KB)...
OKAY [  0.896s]
writing 'boot'...
OKAY [  1.348s]
finished. total time: 2.245s

reboot phone, start in recovery (press vol+ while booting), select whipe/factory reset (?)

In clockwork, navigate to "update ???", "sidelode (?)", and with adb:

adb push cm-12-20150322-UNOFFICIAL-eagle.zip /storage/sdcard0/

Now phone is bricked.... (?) Doesn't react to long (> 1min) press of power button, but does reboot when power + VolUp are pressed for 10s. Now Emma (sony flash tool) can connect to it (release power right after reboot, connect to computer while volDown is pressed)