Difference between revisions of "OS: Android - Build CyanogenMod"

From OnnoWiki
Jump to navigation Jump to search
Line 1: Line 1:
 +
==Persiapan==
 +
 +
Buang openjdk
 +
 
  sudo apt-get purge openjdk*
 
  sudo apt-get purge openjdk*
  
 +
Install oracle java6
  
 
  sudo add-apt-repository ppa:webupd8team/java
 
  sudo add-apt-repository ppa:webupd8team/java
Line 7: Line 12:
 
  y
 
  y
  
 +
Install ia32(?)
  
 
  sudo apt-get install ia32-libs
 
  sudo apt-get install ia32-libs
Line 27: Line 33:
 
  ./android sdk
 
  ./android sdk
  
 
+
Install adb & fastboot
  
 
  sudo apt-get install android-tools-adb
 
  sudo apt-get install android-tools-adb
 
  sudo apt-get install android-tools-fastboot
 
  sudo apt-get install android-tools-fastboot
  
 +
Instalasi aplikasi pendukung
  
 
  sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev \
 
  sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev \
Line 40: Line 47:
 
  y
 
  y
  
 +
Siapkan perintah repo
  
 
  mkdir -p ~/bin
 
  mkdir -p ~/bin
Line 47: Line 55:
 
  chmod a+x ~/bin/repo
 
  chmod a+x ~/bin/repo
  
 
+
Edit bashrc
 
 
  
 
  gedit ~/.bashrc
 
  gedit ~/.bashrc
Line 55: Line 62:
 
  export PATH=${PATH}:~/android/sdk/adt-bundle/sdk/platform-tools
 
  export PATH=${PATH}:~/android/sdk/adt-bundle/sdk/platform-tools
  
 
+
repo sync ke folder source
  
 
  cd ~/android-cyanogen/
 
  cd ~/android-cyanogen/

Revision as of 16:39, 2 September 2013

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
y

Install ia32(?)

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

Install adb & fastboot

sudo apt-get install android-tools-adb
sudo apt-get install android-tools-fastboot

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

Siapkan perintah repo

mkdir -p ~/bin
mkdir -p ~/android-cyanogen
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

repo sync ke folder source

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


Referensi

Pranala Menarik