在ubuntu環境獲取android源碼的方法

1,

mkdir   ~/bin

export  PATH=~/bin:$PATH

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

chmod  a+x   ~/bin/repo

2,
echo "Get google original android platform code (tag : 4.2.2_r1)"
echo
repo init -u https://android.googlesource.com/platform/manifest -b android-4.2.2_r1
check_exit

repo sync  -j4

check_exit

 

3,

echo
patch -p1 < ../update_tg4_jb422_beta/patch/android-4.2.2-beta-20130731.patch
check_exit

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章