Build for tsubasa

From Omni
Jump to: navigation, search

Directions for building Omni for the Sony Xperia V (tsubasa)

Most of the commands shown in this guide assume you are using Linux (e.g. Ubuntu)

Setting up the build environment

If you need to set up your environment follow these steps general Android build environment.

Getting the Omni source code

This section assumes that when you used repo sync to download the Omni source code you did this in ~/android/omni. However, you can use any directory you wish, just be sure to use the correct directory name when following the examples below.

Make sure you are in the correct directory

cd ~/android/omni

Create a local_manifests directory

mkdir ~/android/omni/.repo/local_manifests

Using your favorite editor create a file, which you will save as


Paste this into that new local_manifest.xml file and save the file

<?xml version="1.0" encoding="UTF-8"?>

 <remote name="omnirom"
 fetch="" />

 <remote name="DonkeyCoyote"
 review="" />

 <project path="vendor/sony" name="proprietary_vendor_sony" remote="DonkeyCoyote" revision="android-4.4" />

 <project path="device/sony/tsubasa" name="android_device_sony_tsubasa" remote="omnirom" revision="android-4.4" />
 <project path="kernel/sony/msm8960" name="android_kernel_sony_msm8960" remote="omnirom" revision="android-4.4" />

  <project name="android_device_sony_common" path="device/sony/common" remote="omnirom" revision="android-4.4" />
  <project name="android_device_sony_qcom-common" path="device/sony/qcom-common" remote="omnirom" revision="android-4.4" />
  <project name="android_device_sony_blue-common" path="device/sony/blue-common" remote="omnirom" revision="android-4.4" />
  <project name="android_hardware_sony_DASH" path="hardware/sony/DASH" remote="omnirom" revision="android-4.4" />


Make sure you do not have a roomservice.xml file by using the following command. If you get an error that the file does not exist ignore that error because the result is what we want... no roomservice.xml file

rm ~/android/omni/.repo/local_manifests/roomservice.xml

Now do another repo sync to make sure you have the latest version of Omni's sources. You can speed this up by using multiple threads depending on how many processors your system has. If you don't know how many you can find out with the following command

grep processor /proc/cpuinfo | wc -l

If the above command returns 6 then you can do this (if you get a different number use that)

repo sync -j6

It's not neccessary to use the maximum number or processors, you can use any number between 1 and your maximum. In fact if you experience timeout errors when running repo sync try again using -j1.


source build/
lunch tsubasa

Now you can start the build:

brunch tsubasa

Your new ROM

If the build completes successfully you can find the ROM at