Android: Download Repo Source Code Android

From OnnoWiki
Revision as of 06:23, 24 July 2012 by Onnowpurbo (talk | contribs)
Jump to navigation Jump to search

Install aplikasi pendukung

sudo apt-get install curl

Buat path

mkdir ~/bin
PATH=~/bin:$PATH

Download Repo script dan pastikan executable:

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

Buat directory android-source

cd ~
mkdir android-source
cd android-source

Kalau perlu mount external USB harddisk tempat source-nya

mount /dev/sdX1 android-source

Lakukan manifest

cd ~/android-source
repo init -u https://android.googlesource.com/platform/manifest

To check out a branch other than "master", specify it with -b:

cd ~/android-source
repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1