Two major challenges face AOSP developers of Xperia devices:
So how do we install OTA based scripts such as Gapps?
Easy hack: put the recovery in the boot partition!
With this script the device's LED will shine purple on boot. During this time the user can press and hold Volume+ to enter recovery.
You need to define these in your device repo:
You will also need these two commits in your /build folder: