OS: Android - Build CyanogenMod

From OnnoWiki
Jump to navigation Jump to search

Persiapan

Buang openjdk

sudo apt-get purge openjdk*

Install oracle java6

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java6-installer
sudo apt-get install oracle-java7-installer
y

Install ia32(?) Tampaknya ini tidak di perlukan & hanya dibutuhkan di Ubuntu Mint

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install ia32-libs
sudo apt-get install ia32-libs
y


Download & Extract

mkdir -p ~/android
wget http://dl.google.com/android/adt/adt-bundle-linux-x86_64-20130729.zip

Extrak di

cp adt-bundle-linux-x86_64-20130729.zip ~
cd ~
rm -Rf ~/android/*
unzip adt-bundle-linux-x86_64-20130729.zip 
mv adt-bundle-linux-x86_64-20130729/* ~/android
cd ~/android/sdk/tools/
./android sdk

Instalasi aplikasi pendukung

sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev \
libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential zip curl \
libncurses5-dev zlib1g-dev pngcrush schedtool libxml2 libxml2-utils \
xsltproc g++-multilib lib32z1-dev lib32ncurses5-dev \
lib32readline-gplv2-dev gcc-multilib
y
sudo apt-get install android-tools-adb
sudo apt-get install android-tools-fastboot

Siapkan perintah repo

mkdir -p ~/bin
mkdir -p ~/android-cyanogenmod
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo

Edit bashrc

gedit ~/.bashrc
export PATH=${PATH}:~/bin
export PATH=${PATH}:~/android/sdk/adt-bundle/sdk/tools
export PATH=${PATH}:~/android/sdk/adt-bundle/sdk/platform-tools

Set identitas kita

git config --global user.email "username@mail.com"
git config --global user.name "Nama Anda"

Siapkan Folder Source

repo sync ke folder source

cd ~/android-cyanogenmod/
repo init -u git://github.com/CyanogenMod/android.git -b cm-10.2
repo sync

atau

repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1

atau

repo init -u git://github.com/CyanogenMod/android.git -b cm-11.0

Build

gedit ~/android-cyanogenod/.repo/local_manifests/roomservice.xml
<manifest>
<project name="TheMuppets/proprietary_vendor_lge.git" path="vendor/lge" remote="github"  revision="cm-10.2"/>
</manifest>


cd ~/android-cyanogenmod
repo sync
~/android-cyanogenmod/vendor/cm/get-prebuilts
. build/envsetup.sh
brunch mako


LG Optimus G Pro

cd ~/android-cyanogenmod
repo sync
~/android-cyanogenmod/vendor/cm/get-prebuilts
. build/envsetup.sh
brunch e980

LG Optimus L7

PERCOBAAN
cd ~/android-cyanogenmod
repo sync
~/android-cyanogenmod/vendor/cm/get-prebuilts
. build/envsetup.sh
brunch p700

LG Optimus L7 II

PERCOBAAN

cd ~/android-cyanogenmod
repo sync
~/android-cyanogenmod/vendor/cm/get-prebuilts
. build/envsetup.sh
brunch p713
breakfast p713

Referensi

Pranala Menarik