Difference between revisions of "OS: Android - Download"

From OnnoWiki
Jump to navigation Jump to search
 
(54 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Persiapan==
+
==Download==
 +
 
 +
Sumber: http://source.android.com/source/downloading.html
 +
 
 +
===Inisialisasi Source Code===
 +
 
 +
Sebagai user biasa lakukan
 +
 
 +
mkdir ~/bin
 +
PATH=~/bin:$PATH
 +
 +
sudo apt-get install curl
 +
 +
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
 +
chmod a+x ~/bin/repo
 +
 
 +
===Untuk Mirror Repository===
 +
 
 +
Ada baiknya kita melakukan [[OS: Android - Membuat Mirror Source | Mirrot Source Code Android]] supaya bisa di copy ke beberapa komputer tanpa perlu men-download lagi.
 +
 
 +
Folder mirror yang di sarankan
 +
 
 +
/usr/local/aosp/mirror
 +
/usr/local/aokp/mirror
 +
/usr/local/cyanogenmod/mirror
  
Before you download and build the Android source, ensure your system meets the following requirements:
+
===Mengambil dari Mirror===
  
    A Linux or Mac system. It is also possible to build Android in a virtual machine on unsupported systems such as Windows. If you are running Linux in a virtual machine, you need at least 16GB of RAM/swap and 30GB or more of disk space in order to build the Android tree.
+
Di sisi client, dapat melakukan sebagai userbiasa
    A 64-bit environment is required for Gingerbread (2.3.x) and newer versions, including the master branch. You can compile older versions on 32-bit systems.
 
    30GB of free disk space to complete a single build and up to 100GB or more for a full set of builds. The source download is approximately 8.5GB in size.
 
  
    Python 2.6 -- 2.7, which you can download from python.org.
+
mkdir -p ~/android-source
 +
cd ~/android-source
 +
 +
git config --global user.email "you@example.com"
 +
git config --global user.name "Your Name"
 +
 +
repo init -u /usr/local/aosp/mirror/platform/manifest.git
 +
repo sync
  
    GNU Make 3.81 -- 3.82, which you can download from gnu.org,
 
  
    JDK 6 if you wish to build Gingerbread or newer; JDK 5 for Froyo or older. You can download both from java.sun.com.
+
atau
  
    Git 1.7 or newer. You can find it at git-scm.com.
+
repo init -u /usr/local/aokp/mirror/platform/manifest.git
 +
repo sync
  
Instalasi Aplikasi Pendukung
+
atau
  
 +
repo init -u /usr/local/cynogenmod/mirror/platform/manifest.git
 +
repo sync
  
==Download==
 
  
Sumber: http://source.android.com/source/downloading.html
+
Untuk melakukan sync.
 +
Sebagai user biasa, lakukan secara berurut, dari sisi mirror dan dari sisi master.
 +
 
 +
cd ~/android-source
 +
repo sync
  
$ mkdir ~/bin
 
$ PATH=~/bin:$PATH
 
  
  $ sudo apt-get install curl
+
  cd /usr/local/aosp/mirror
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
+
  repo sync
  $ chmod a+x ~/bin/repo
 
  
  $ mkdir android-source
+
  cd /usr/local/aokp/mirror
  $ cd android-source
+
  repo sync
  
  $ repo init -u https://android.googlesource.com/platform/manifest
+
  cd /usr/local/cyanogenmod/mirror
 +
repo sync
  
 +
===Tanpa Mirror===
  
 +
Alternatif lain, kalau hanya untuk sendiri tidak perlu melakukan mirror
  
 +
mkdir -p ~/android-source
 +
cd ~/android-source
 +
 +
git config --global user.email "you@example.com"
 +
git config --global user.name "Your Name"
 +
 +
repo init -u https://android.googlesource.com/platform/manifest
  
 +
===Download Source Code===
  
 +
cd ~/android-source
 +
repo sync
  
 
==Referensi==
 
==Referensi==
  
 +
* http://source.android.com/source/initializing.html
 
* http://source.android.com/source/downloading.html
 
* http://source.android.com/source/downloading.html
 +
* http://projects.kde.org/projects/playground/mobile/necessitas/ministro/repository/revisions/master/raw/Necessitas_SDK/setup_ubuntu_for_necessitas_build.sh
 +
  
 
==Pranala Menarik==
 
==Pranala Menarik==
Line 70: Line 117:
 
* [[OS: Mengerti System Call]]
 
* [[OS: Mengerti System Call]]
 
* [[OS: Membuat Kernel Modul]]
 
* [[OS: Membuat Kernel Modul]]
 +
* [[Android]]
 +
* [[Pemrogramman Android]]
 +
* [[OS: Android - Mempersiapkan Development Environment]]
 +
* [[OS: Android - Memeriksa Spesifikasi Handphone yang digunakan]]
 +
* [[OS: Android - Membuat Mirror Source]]
 
* [[OS: Android - Download]]
 
* [[OS: Android - Download]]
 +
* [[OS: Android - Membuat Folder untuk Bekerja]]
 +
* [[OS: Android - Mirror Source]]
 +
* [[OS: Android - Mirror Source AOKP]]
 +
* [[OS: Android - Mirror Source CyanogenMod]]
 +
* [[OS: Android - Build]]
 +
* [[OS: Android - Build CyanogenMod]]
 +
* [[OS: Android - Build AOSP]]

Latest revision as of 08:48, 3 September 2013

Download

Sumber: http://source.android.com/source/downloading.html

Inisialisasi Source Code

Sebagai user biasa lakukan

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

sudo apt-get install curl

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

Untuk Mirror Repository

Ada baiknya kita melakukan Mirrot Source Code Android supaya bisa di copy ke beberapa komputer tanpa perlu men-download lagi.

Folder mirror yang di sarankan

/usr/local/aosp/mirror
/usr/local/aokp/mirror
/usr/local/cyanogenmod/mirror

Mengambil dari Mirror

Di sisi client, dapat melakukan sebagai userbiasa

mkdir -p ~/android-source
cd ~/android-source

git config --global user.email "you@example.com"
git config --global user.name "Your Name"

repo init -u /usr/local/aosp/mirror/platform/manifest.git
repo sync


atau

repo init -u /usr/local/aokp/mirror/platform/manifest.git
repo sync

atau

repo init -u /usr/local/cynogenmod/mirror/platform/manifest.git
repo sync


Untuk melakukan sync. Sebagai user biasa, lakukan secara berurut, dari sisi mirror dan dari sisi master.

cd ~/android-source
repo sync


cd /usr/local/aosp/mirror
repo sync
cd /usr/local/aokp/mirror
repo sync
cd /usr/local/cyanogenmod/mirror
repo sync

Tanpa Mirror

Alternatif lain, kalau hanya untuk sendiri tidak perlu melakukan mirror

mkdir -p ~/android-source
cd ~/android-source

git config --global user.email "you@example.com"
git config --global user.name "Your Name"

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

Download Source Code

cd ~/android-source
repo sync

Referensi


Pranala Menarik