1. 首先,到
le/p/msysgit/downloads/list
下载,下载完成后安装Git
2. Android代码仓库的地址
git.source.android
访问该地址。
可以看到Android项目中,所有的包的列表。
单个包源码的下载方式:
创建目录,运行Git,在Git提供的shell,切换路径到你刚才创建的目录下(cd命令),然后运行下表命令(common.git为例)
git clone git://android./kernel/common.git
3.linux下可以使用repo批量下载,可惜的是repo没有windows版本。下载apache
4. windows直可以使用批量脚本。脚本文本如下,持贝以下字符一个文本文件中,命名为:autoget.sh,将该文本保存到用来下载源码的目录中。运行Git,在Git提供的shell,切换路径到你刚才创建的目录下(cd命令),运行./autogit.sh
#Create by CreatAutoGetSh
mkdir kernel
cd kernel
git clone git://android./kernel/common.git
git clone git://android./kernel/experimental.git
git clone git://android./kernel/msm.git
git clone git://android./kernel/omap.git
cd ..
mkdir platform
cd platform
git clone git://android./platform/bionic.git
mkdir bootable
cd bootable
mkdir bootloader
cd bootloader
git clone git://android./platform/bootable/bootloader/legacy.git
cd ..
git clone git://android./platform/bootable/diskinstaller.git
git clone git://android./platform/bootable/recovery.git
cd ..
mkdir bootloader
cd bootloader
git clone git://android./platform/bootloader/legacy.git
cd ..
git clone git://android./platform/build.git
git clone git://android./platform/dalvik.git
git clone git://android./platform/development.git
mkdir external
cd external
git clone git://android./platform/external/aes.git
git clone git://android./platform/external/alsa-lib.git
git clone git://android./platform/external/alsa-utils.git
git clone git://android./platform/external/apache-http.git
git clone git://android./platform/external/astl.git
git clone git://android./platform/external/bison.git
git clone git://android./platform/external/bluez.git
git clone git://android./platform/external/bsdiff.git
git clone git://android./platform/external/bzip2.git
git clone git://android./platform/external/clearsilver.git
git clone git://android./platform/external/dbus.git
git clone git://android./platform/external/dhcpcd.git
git clone git://android./platform/external/dosfstools.git
git clone git://android./platform/external/dropbear.git
git clone git://android./platform/external/e2fsprogs.git
git clone git://android./platform/external/eglib.git
git clone git://android./platform/external/elfcopy.git
git clone git://android./platform/external/elfutils.git
git clone git://android./platform/external/embunit.git
git clone git://android./platform/external/emma.git
git clone git://android./platform/external/esd.git
git clone git://android./platform/external/expat.git
git clone git://android./platform/external/fdlibm.git
git clone git://android./platform/external/freetype.git
git clone git://android./platform/external/fsck_msdos.git
git clone git://android./platform/external/gdata.git
git clone git://android./platform/external/genext2fs.git
git clone git://android./platform/external/giflib.git

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。