Kri*_*oks 5 android linux-kernel android-source android-kernel
我在哪里可以获得Android 4.0(Ice Cream Sandwich)内核源代码?
虽然这可能是一些人之前提出过的愚蠢问题,但我似乎无法在任何地方找到合适的答案,因为:
谷歌决定是非常有用的和重定向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上的所有内核分支都非常过时.
在他2011年11月30日的帖子中,Jean-Baptiste Queru解释了为什么克隆后内核源是不可见的.这篇文章描述了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
Run Code Online (Sandbox Code Playgroud)