Android 4.0 kernel source code? [closed]

↘锁芯ラ 提交于 2020-01-01 03:23:06

问题


Where can I get the Android 4.0 (Ice Cream Sandwich) kernel source code?

While this might be a stupid question that some people have asked before, I can't seem to find a suitable answer anywhere because:

  • Google decided to be really useful and redirect android.kernel.org to http://source.android.com/source/downloading.html, which includes every single part of Android apart from the kernel. I do not understand the logic behind that.

  • git clone https://android.googlesource.com/kernel/common.git does something weird and creates a massive (600 MB+) .git folder without creating the source tree. I don't give two shits about the git repo, I just need the source tree.

  • All the kernel forks on GitHub are horribly outdated.


回答1:


Watch the android source code hosted on Github.




回答2:


In his Nov 30, 2011 post, Jean-Baptiste Queru explains why the kernel source is invisible after cloning. This post describes the kernel source branches that exist for the various hardware flavors of ICS.

And in general, here's how to make a specific branch visible:

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



回答3:


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

Different android kernels are listed above. To pull all of them down using git.

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


来源:https://stackoverflow.com/questions/8447794/android-4-0-kernel-source-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!