What I want to accomplish is configure a build server (like TeamCity) to build an Android application from source and convert it to a chrome extension that can be published on Chrome WebStore as an application.
First of all you can read this source which explains how to run android apps in chrome.
1. Download ARChon runtime and install it as an extenion in Chrome.
2. You can convert your apk manually with this chrome extension - Twerk
3. To enable Chrome App Launcher on Ubuntu (speeds up app launching) - follow this link.
4. Install chromeos-apk
In a terminal, run the following command: sudo apt-get install npm
(Ubuntu only): Run the following command: sudo apt-get install lib32stdc++6
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.
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.