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.1

(did this after CM12)

# fastboot getvar version
version: 0.5
finished. total time: 0.003s
# fastboot flash boot recovery.img 
sending 'boot' (10950 KB)...
OKAY [  0.723s]
writing 'boot'...
OKAY [  1.260s]
finished. total time: 1.983s

#fastboot reboot

Now hold VolDown button while booting In recovery, navigate to "Apply update", "Apply from ADB", and with adb (make sure it's recent, ubuntu's 2015-04 adb won't work):

sudo ~/Android/Sdk/platform-tools/adb sideload cm-12.1-20150503-UNOFFICIAL-eagle.zip

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 recovery, navigate to "Apply update", "Apply from ADB", 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)

However, uploading the boot thingy from the sony flash tool doens't recover the phone.

While the "SONY" logo is displaying, press Power+VolUp for 10s, and right when it reboots, release Power+VolUp, and press VolDown. Now the phone stays off. Then, insert USB cable to computer, and press Power+VolUp. Now adb can see the phone again.

# fastboot getvar version
version: 0.5
finished. total time: 0.003s
root@dino:~/rommel/xperia# fastboot flash boot boot.img
sending 'boot' (11764 KB)...
OKAY [  0.700s]
writing 'boot'...
OKAY [  1.350s]
finished. total time: 2.050s

Using a (very) recent (ubuntu 2015-04's adb gives protocol errors) adb:

adb sideload cm-12-20150322-UNOFFICIAL-eagle.zip 

This does start.

omni rom 4.4.4

[1] has link to omni-4.4.4-20150406-eagle_lte-EXPERIMENTAL