2011-12-09 95 views
5

我在哪裏可以買到Android 4.0(冰淇淋三明治)內核源代碼?Android 4.0內核源代碼?

雖然這可能是一個愚蠢的問題,有些人問過,我似乎無法找到一個合適的答案隨時隨地因爲:

  • 谷歌決定是非常有用的和重定向到android.kernel.org其中包括除了內核之外的Android 的每個單獨部分。 我不明白這背後的邏輯。

  • git clone https://android.googlesource.com/kernel/common.git做奇怪的事情,並創建一個巨大的(600 MB +).git文件夾,而無需創建源代碼樹。我不給狗屎回購兩個狗屎,我只需要源樹

  • GitHub上的所有內核分支都非常過時。

回答

5

觀看Android源代碼託管在Github

9

Jean-Baptiste Queru在他的2011年11月30日post中解釋了爲什麼內核源在克隆後不可見。 This post描述了爲ICS的各種硬件口味而存在的內核源分支。

而在一般情況下,這裏是如何做具體的分支可見:

git clone https://android.googlesource.com/kernel/common.git # clone the repo 
git branch -a # lists branches, both local and remote 
git checkout -b android-3.0 remotes/origin/android-3.0 # create local branch 
# android-3.0 that tracks the named remote branch