Difference between revisions of "Android: Download Repo Source Code Android"

From OnnoWiki
Jump to navigation Jump to search
Line 15: Line 15:
 
Buat directory android-source
 
Buat directory android-source
  
 +
cd ~
 
  mkdir android-source
 
  mkdir android-source
 
  cd android-source
 
  cd android-source
Line 24: Line 25:
 
Lakukan manifest
 
Lakukan manifest
  
  cd android-source
+
  cd ~/android-source
 
  repo init -u https://android.googlesource.com/platform/manifest
 
  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

Revision as of 06:23, 24 July 2012

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