Android 4.0内核源代码?

时间:2011-12-09 15:33:31

标签: android linux-kernel android-source android-kernel

我在哪里可以获得Android 4.0(冰淇淋三明治) 内核 源代码?

虽然这可能是某些人之前提出过的一个愚蠢的问题,我无法在任何地方找到合适的答案因为:

  • Google决定真正有用并将android.kernel.org重定向到http://source.android.com/source/downloading.html,其中包括Android 除内核以外的每一部分内容。 我不明白背后的逻辑。

  • git clone https://android.googlesource.com/kernel/common.git做了一些奇怪的事情并创建了一个巨大的(600 MB +) .git文件夹,而没有创建源树。关于git repo,我没有给出两个错误,我只需要源代码树

  • GitHub上的所有内核分支都非常过时。

3 个答案:

答案 0 :(得分:9)

在2011年11月30日的post中,Jean-Baptiste Queru解释了为什么克隆后内核源是不可见的。 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

答案 1 :(得分:5)

  

观看 Github 上托管的Android源代码。

答案 2 :(得分:-2)

https://android.googlesource.com/kernel/common/

上面列出了不同的Android内核。用git拉下所有这些。

git clone https://android.googlesource.com/kernel/common
相关问题