major differences between Z1 and Nexus devices
I have a good understanding of Nexus devices and I always used Cyanogenmod.
I'm keen in the differences between Nexus and Xperia devices.
To install CM on a nexus device is extremely straight forward
- unlock the bootloader (fastboot oem unlock) - will wipe userdata
- install TWRP (or CWM): fastboot flash recovery openrecovery-bla
- upload a CM update zip
- optionally encrypt the device / relock the bootloader
Although many say otherwise, a custom kernel will always boot fine with a locked bootloader on a nexus device. With a locked bootloader you're unable to flash a different recovery but if you lock the bootloader *after* having a custom kernel and custom recovery, everything is fine.
If you need to flash another recovery you need an unlocked bootloader.
- The last step - bringing everything back to factory defaults:
- unlock bootloader (fastboot oem unlock)
- flash a google factory image (fastboot also)
- lock bootloader (fastboot oem lock)
The device is now in the "brand new - factory state".
I've read about Xperia devices and my current understanding of the process is:
- use an exploit to gain root (due to the camera bug in unlocking the bootloader). The first question about this: I've seen in many places the fear of backdoors/malware in "rooting" software. Is there an open source - safe method for this?
- backup the TA partition (where can I get more info about the TA partition, what is it, its purpose?)
- unlock the bootloader
- flash TWRP/CWM
- flash cyanogenmod
- restore TA partition. This will relock the bootloader and bring the camera back.
The tricky part. I've seen in many places that a custom kernel won't boot with a locked bootloader. This is false in nexus devices, is there any documentation regarding xperia?
The last question, if I need to bring it back to factory defaults, will I be able to bring it to a 'factory brand new' state? Is there a factory image like the ones for nexus devices?