接下來請把載回來的 android 原始碼解壓縮
安裝 Repo
Repo 是一個工具,來做Git, 來取得 Android 系統的原始程式. Repo 的詳細介紹,請看 Version Control.
To install, initialize, and configure Repo, follow these steps:
- Make sure you have a bin/ directory in your home directory, and that it is included in your path:
$ sudo mkdir ~/bin $ PATH=~/bin:$PATH
$ mkdir WORKING_DIRECTORY $ cd WORKING_DIRECTORY
- 下載 Repo script 和確認可以執行 :
$ sudo curl httpsss://android.git.kernel.org/repo > repo $ chmod a+x repo
設定 Repo client
$ sudo ./repo init -u git://android.git.kernel.org/platform/manifest.git $ sudo ./repo init -u git://android.git.kernel.org/platform/manifest.git -b froyo
開始下載了
現在正是要下載android 的原始程式碼了。
$ sudo ./repo sync
要等很久,我是等一個多小時。
成功後,就可以看到
練習:
請看看你的 WORKING_DIRECTORY 的檔案結構,之後我們會花很多的時間講解裡面的檔案和文件
進階:
Verifying Git Tags
Load the following public key into your GnuPG key database. The key is used to sign annotated tags that represent releases.
$ gpg --import
參考資料:
- 官方的安裝文件下載篇 httpss://source.android.com/source/downloading.html