Samsung Galaxy Note II

From Omni
Jump to: navigation, search

This guide will help you compile OmniROM for any note 2.

Setup Environment

First follow this guide - http://docs.omnirom.org/Setting_Up_A_Compile_Environment

Add Device Repos to Local Manifest

Now we need to add the required device repo to manifest. (Learn about local manifests - http://forum.xda-developers.com/showthread.php?t=2329228) You can skip this step as brunch command can do it for you but I recommend doing it yourself. Copy paste the line into local manifest according to requirement.

N7100

  <project path="device/samsung/n7100" name="android_device_samsung_n7100" remote="omnirom" revision="android-4.4"/>
  <project path="device/samsung/smdk4412-common" name="android_device_samsung_smdk4412-common" remote="omnirom" revision="android-4.4"/>
  <project path="hardware/samsung" name="android_hardware_samsung" remote="omnirom" revision="android-4.4"/>
  <project path="kernel/samsung/smdk4412" name="android_kernel_samsung_smdk4412" remote="omnirom" revision="android-4.4"/>

N7105 / I317 / T889

  <project path="device/samsung/t0lte" name="android_device_samsung_t0lte" remote="omnirom" revision="android-4.4"/>
  <project path="device/samsung/smdk4412-common" name="android_device_samsung_smdk4412-common" remote="omnirom" revision="android-4.4"/>
  <project path="device/samsung/smdk4412-qcom-common" name="android_device_samsung_smdk4412-qcom-common" remote="omnirom" revision="android-4.4"/>
  <project path="hardware/samsung" name="android_hardware_samsung" remote="omnirom" revision="android-4.4"/>
  <project path="kernel/samsung/smdk4412" name="android_kernel_samsung_smdk4412" remote="omnirom" revision="android-4.4"/>

L900

  <project path="device/samsung/l900" name="android_device_samsung_t0lte" remote="omnirom" revision="android-4.4"/>
  <project path="device/samsung/smdk4412-common" name="android_device_samsung_smdk4412-common" remote="omnirom" revision="android-4.4"/>
  <project path="device/samsung/smdk4412-qcom-common" name="android_device_samsung_smdk4412-qcom-common" remote="omnirom" revision="android-4.4"/>
  <project path="hardware/samsung" name="android_hardware_samsung" remote="omnirom" revision="android-4.4"/>
  <project path="kernel/samsung/smdk4412" name="android_kernel_samsung_smdk4412" remote="omnirom" revision="android-4.4"/>

I605

  <project path="device/samsung/i605" name="android_device_samsung_t0lte" remote="omnirom" revision="android-4.4"/>
  <project path="device/samsung/smdk4412-common" name="android_device_samsung_smdk4412-common" remote="omnirom" revision="android-4.4"/>
  <project path="device/samsung/smdk4412-qcom-common" name="android_device_samsung_smdk4412-qcom-common" remote="omnirom" revision="android-4.4"/>
  <project path="hardware/samsung" name="android_hardware_samsung" remote="omnirom" revision="android-4.4"/>
  <project path="kernel/samsung/smdk4412" name="android_kernel_samsung_smdk4412" remote="omnirom" revision="android-4.4"/>

After you have added these repos to the manifest, you will need to repo sync again.

Getting proprietary vendor blobs

Now in terminal, cd into device repo, for eg. ~/device/samsung/n7100

Then connect your phone and make sure usb debugging is enabled.

Type in terminal - ./extract-files.sh

Building The ROM

After you have synced, open a fresh terminal. Then type in

  . build/envsetup.sh

After that type in

  brunch <device>

For eg. 'brunch n7100' or 'brunch t0lte'

If you get any error like product spec not found, then go back to step 2

Then it should start building.

Build didn't finish due to an error

Make sure you didn't make any typos earlier. If you are sure that you didn't, then search the terminal window for lines saying "error". Look for solutions in XDA forums for Omni and if you can't find anything, then either make a new thread or ask for help in the #omnirom IRC chat. You can also send me a PM on XDA and I'll try my best to help you.

Build finished successfully!

Congratulations! You have now built Omnirom for your Note II. The zip file will be ~/android/omni/out/target/product/<note2variant>/omni-4.4_<date>-<note2variant>-HOMEMADE.zip. You can flash this like any other ROM.