当前位置: 网学 > 编程文档 > Android > 正文

在Windows下批量下载Android源码

来源:Http://myeducs.cn 联系QQ:点击这里给我发消息 作者: myeducs.cn 发布时间: 13/03/17

【网学网提醒】:网学会员为需要朋友们搜集整理了在Windows下批量下载Android源码相关资料,希望对各位网友有所帮助!


    在Windows下批量下载Android源码
    Google开放了Android的源码。源码采用Git进行版本控制。
    1.首先,到
    code.google/p/msysgit/downloads/list
    下载Git-xxx.exe,下载完成后安装Git。
    2.Android代码仓库的地址
    git.source.android
    访问该地址。
    可以看到Android项目中,所有的包的列表。
    单个包源码的下载方式:
    创建目录,运行Git,在Git提供的shell,切换路径到你刚才创建的目录下(cd命令),然后运行下表命令(以common.git为例)
    gitclonegit://android.git.kernel.org/kernel/common.git
    3.在linux下可以使用repo批量下载,可惜的是repo没有windows版本。
    4.windows直可以使用批量脚本。脚本文本如下,持贝以下字符一个文本文件中,命名为:autoget.sh,将该文本保存到用来下载源码的目录中。运行Git,在Git提供的shell,切换路径到你刚才创建的目录下(cd命令),运行./autogit.sh
    #CreatebyCreatAutoGetSh
    mkdirkernel
    cdkernel
    gitclonegit://android.git.kernel.org/kernel/common.git
    gitclonegit://android.git.kernel.org/kernel/experimental.git
    gitclonegit://android.git.kernel.org/kernel/msm.git
    gitclonegit://android.git.kernel.org/kernel/omap.git
    cd..
    mkdirplatform
    cdplatform
    gitclonegit://android.git.kernel.org/platform/bionic.git
    mkdirbootable
    cdbootable
    mkdirbootloader
    cdbootloader
    gitclonegit://android.git.kernel.org/platform/bootable/bootloader/legacy.git
    cd..
    gitclonegit://android.git.kernel.org/platform/bootable/diskinstaller.git
    gitclonegit://android.git.kernel.org/platform/bootable/recovery.git
    cd..
    mkdirbootloader
    cdbootloader
    gitclonegit://android.git.kernel.org/platform/bootloader/legacy.git
    cd..
    gitclonegit://android.git.kernel.org/platform/build.git
    gitclonegit://android.git.kernel.org/platform/dalvik.git
    gitclonegit://android.git.kernel.org/platform/development.git
    mkdirexternal
    cdexternal
    gitclonegit://android.git.kernel.org/platform/external/aes.git
    gitclonegit://android.git.kernel.org/platform/external/alsa-lib.git
    gitclonegit://android.git.kernel.org/platform/external/alsa-utils.git
    gitclonegit://android.git.kernel.org/platform/external/apache-http.git
    gitclonegit://android.git.kernel.org/platform/external/astl.git
    gitclonegit://android.git.kernel.org/platform/external/bison.git
    gitclonegit://android.git.kernel.org/platform/external/bluez.git
    gitclonegit://android.git.kernel.org/platform/external/bsdiff.git
    gitclonegit://android.git.kernel.org/platform/external/bzip2.git
    gitclonegit://android.git.kernel.org/platform/external/clearsilver.git
    gitclonegit://android.git.kernel.org/platform/external/dbus.git
    gitclonegit://android.git.kernel.org/platform/external/dhcpcd.git
    gitclonegit://android.git.kernel.org/platform/external/dosfstools.git
    gitclonegit://android.git.kernel.org/platform/external/dropbear.git
    g
    itclonegit://android.git.kernel.org/platform/external/e2fsprogs.git
    gitclonegit://android.git.kernel.org/platform/external/eglib.git
    gitclonegit://android.git.kernel.org/platform/external/elfcopy.git
    gitclonegit://android.git.kernel.org/platform/external/elfutils.git
    gitclonegit://android.git.kernel.org/platform/external/embunit.git
    gitclonegit://android.git.kernel.org/platform/external/emma.git
    gitclonegit://android.git.kernel.org/platform/external/esd.git
    gitclonegit://android.git.kernel.org/platform/external/expat.git
    gitclonegit://android.git.kernel.org/platform/external/fdlibm.git
    gitclonegit://android.git.kernel.org/platform/external/freetype.git
    gitclonegit://android.git.kernel.org/platform/external/fsck_msdos.git
    gitclonegit://android.git.kernel.org/platform/external/gdata.git
    gitclonegit://android.git.kernel.org/platform/external/genext2fs.git
    gitclonegit://android.git.kernel.org/platform/external/giflib.git
    gitclonegit://android.git.kernel.org/platform/external/googleclient.git
    gitclonegit://android.git.kernel.org/platform/external/grub.git
    gitclonegit://android.git.kernel.org/platform/external/gtest.git
    gitclonegit://android.git.kernel.org/platform/external/hcidump.git
    gitclonegit://android.git.kernel.org/platform/external/icu4c.git
    gitclonegit://android.git.kernel.org/platform/external/iptables.git
    gitclonegit://android.git.kernel.org/platform/external/jdiff.git
    gitclonegit://android.git.kernel.org/platform/external/jhead.git
    gitclonegit://android.git.kernel.org/platform/external/jpeg.git
    gitclonegit://android.git.kernel.org/platform/external/junit.git
    gitclonegit://android.git.kernel.org/platform/external/lcc.git
    gitclonegit://android.git.kernel.org/platform/external/libffi.git
    gitclonegit://android.git.kernel.org/platform/external/libpcap.git
    gitclonegit://android.git.kernel.org/platform/external/libpng.git
    gitclonegit://android.git.kernel.org/platform/external/libxml2.git
    gitclonegit://android.git.kernel.org/platform/external/mtpd.git
    gitclonegit://android.git.kernel.org/platform/external/netcat.git
    gitclonegit://android.git.kernel.org/platform/external/netperf.git
    gitclonegit://android.git.kernel.org/platform/external/neven.git
    gitclonegit://android.git.kernel.org/platform/external/opencore.git
    gitclonegit://android.git.kernel.org/platform/external/openssl.git
    gitclonegit://android.git.kernel.org/platform/external/oprofile.git
    gitclonegit://android.git.kernel.org/platform/external/ping.git
    gitclonegit://android.git.kernel.org/platform/external/ppp.git
    gitclonegit://android.git.kernel.org/platform/external/protobuf.git
    gitclonegit://android.git.kernel.org/platform/external/qemu.git
    gitclonegit://android.git.kernel.org/platform/external/safe-iop.git
    gitclonegit://android.git.kernel.org/platform/external/skia.git
    gitclonegit://android.git.kernel.org/platform/external/sonivox.git
    gitclonegit://android.git.
    kernel.org/platform/external/sqlite.git
    gitclonegit://android.git.kernel.org/platform/external/srec.git
    gitclonegit://android.git.kernel.org/platform/external/strace.git
    gitclonegit://android.git.kernel.org/platform/external/tagsoup.git
    gitclonegit://android.git.kernel.org/platform/external/tcpdump.git
    gitclonegit://android.git.kernel.org/platform/external/tesseract.git
    gitclonegit://android.git.kernel.org/platform/external/tinyxml.git
    gitclonegit://android.git.kernel.org/platform/external/tremor.git
    gitclonegit://android.git.kernel.org/platform/external/webkit.git
    gitclonegit://android.git.kernel.org/platform/external/wpa_supplicant.git
    gitclonegit://android.git.kernel.org/platform/external/xdelta3.git
    gitclonegit://android.git.kernel.org/platform/external/yaffs2.git
    gitclonegit://android.git.kernel.org/platform/external/zlib.git
    cd..
    mkdirframeworks
    cdframeworks
    gitclonegit://android.git.kernel.org/platform/frameworks/base.git
    mkdiropt
    cdopt
    gitclonegit://android.git.kernel.org/platform/frameworks/opt/com.google.android.git
    gitclonegit://android.git.kernel.org/platform/frameworks/opt/com.google.android.googlelogin.git
    gitclonegit://android.git.kernel.org/platform/frameworks/opt/emoji.git
    cd..
    mkdirpolicies
    cdpolicies
    gitclonegit://android.git.kernel.org/platform/frameworks/policies/base.git
    cd..
    cd..
    mkdirhardware
    cdhardware
    gitclonegit://android.git.kernel.org/platform/hardware/alsa_sound.git
    gitclonegit://android.git.kernel.org/platform/hardware/libhardware.git
    gitclonegit://android.git.kernel.org/platform/hardware/libhardware_legacy.git
    gitclonegit://android.git.kernel.org/platform/hardware/msm7k.git
    gitclonegit://android.git.kernel.org/platform/hardware/ril.git
    cd..
    gitclonegit://android.git.kernel.org/platform/manifest.git
    mkdirpackages
    cdpackages
    mkdirapps
    cdapps
    gitclonegit://android.git.kernel.org/platform/packages/apps/AlarmClock.git
    gitclonegit://android.git.kernel.org/platform/packages/apps/Browser.git
    gitclonegit://android.git.kernel.org/platform/packages/apps/Calculator.git
    gitclonegit://android.git.kernel.org/platform/packages/apps/Calendar.git
    gitclonegit://android.git.kernel.org/platform/packages/apps/Camera.git
    gitclonegit://android.git.kernel.org/platform/packages/apps/Contacts.git
    gitclonegit://android.git.kernel.org/platform/packages/apps/Email.git
    gitclonegit://android.git.kernel.org/platform/packages/apps/GoogleSearch.git
    gitclonegit://android.git.kernel.org/platform/packages/apps/HTMLViewer.git
    gitclonegit://android.git.kernel.org/platform/packages/apps/IM.git
    gitclonegit://android.git.kernel.org/platform/packages/apps/Launcher.git
    gitclonegit://android.git.kernel.org/platform/packages/apps/Mms.git
    gitclonegit://android.git.kernel.org/platform/packages/apps/Music.git
    gitclonegit://android.git.kernel.org/platform/packages/apps/OTAProvisioningClient.git
    gitclonegit://android.git
    .kernel.org/platform/packages/apps/PackageInstaller.git
    gitclonegit://android.git.kernel.org/platform/packages/apps/Phone.git
    gitclonegit://android.git.kernel.org/platform/packages/apps/Settings.git
    gitclonegit://android.git.kernel.org/platform/packages/apps/SoundRecorder.git
    gitclonegit://android.git.kernel.org/platform/packages/apps/Stk.git
    gitclonegit://android.git.kernel.org/platform/packages/apps/Sync.git
    gitclonegit://android.git.kernel.org/platform/packages/apps/Updater.git
    gitclonegit://android.git.kernel.org/platform/packages/apps/VoiceDialer.git
    cd..
    mkdirinputmethods
    cdinputmethods
    gitclonegit://android.git.kernel.org/platform/packages/inputmethods/LatinIME.git
    gitclonegit://android.git.kernel.org/platform/packages/inputmethods/OpenWnn.git
    gitclonegit://android.git.kernel.org/platform/packages/inputmethods/PinyinIME.git
    cd..
    mkdirproviders
    cdproviders
    gitclonegit://android.git.kernel.org/platform/packages/providers/ApplicationsProvider.git
    gitclonegit://android.git.kernel.org/platform/packages/providers/CalendarProvider.git
    gitclonegit://android.git.kernel.org/platform/packages/providers/ContactsProvider.git
    gitclonegit://android.git.kernel.org/platform/packages/providers/DownloadProvider.git
    gitclonegit://android.git.kernel.org/platform/packages/providers/DrmProvider.git
    gitclonegit://android.git.kernel.org/platform/packages/providers/GoogleContactsProvider.git
    gitclonegit://android.git.kernel.org/platform/packages/providers/GoogleSubscribedFeedsProvider.git
    gitclonegit://android.git.kernel.org/platform/packages/providers/ImProvider.git
    gitclonegit://android.git.kernel.org/platform/packages/providers/MediaProvider.git
    gitclonegit://android.git.kernel.org/platform/packages/providers/TelephonyProvider.git
    gitclonegit://android.git.kernel.org/platform/packages/providers/UserDictionaryProvider.git
    cd..
    cd..
    gitclonegit://android.git.kernel.org/platform/prebuilt.git
    gitclonegit://android.git.kernel.org/platform/recovery.git
    mkdirsystem
    cdsystem
    gitclonegit://android.git.kernel.org/platform/system/bluetooth.git
    gitclonegit://android.git.kernel.org/platform/system/core.git
    gitclonegit://android.git.kernel.org/platform/system/extras.git
    mkdirwlan
    cdwlan
    gitclonegit://android.git.kernel.org/platform/system/wlan/broadcom.git
    gitclonegit://android.git.kernel.org/platform/system/wlan/ti.git
    cd..
    cd..
    mkdirvendor
    cdvendor
    mkdirasus
    cdasus
    gitclonegit://android.git.kernel.org/platform/vendor/asus/eee_701.git
    cd..
    mkdircsr
    cdcsr
    gitclonegit://android.git.kernel.org/platform/vendor/csr/unifi-105x.git
    gitclonegit://android.git.kernel.org/platform/vendor/csr/unifi-60xx.git
    cd..
    mkdirhtc
    cdhtc
    gitclonegit://android.git.kernel.org/platform/vendor/htc/dream-open.git
    cd..
    mkdirqcom
    cdqcom
    gitclonegit://android.git.kernel.org/platform/vendor/qcom/surf.git
    cd..
    cd..
    cd..
    mkdirtools
    cdtools
    gitclo
    negit://android.git.kernel.org/tools/android-issuetrackerredirect.git
    gitclonegit://android.git.kernel.org/tools/executablewar.git
    gitclonegit://android.git.kernel.org/tools/gerrit-contactstore.git
    gitclonegit://android.git.kernel.org/tools/gerrit-keyapplet.git
    gitclonegit://android.git.kernel.org/tools/gerrit.git
    gitclonegit://android.git.kernel.org/tools/gimd.git
    gitclonegit://android.git.kernel.org/tools/gwtexpui.git
    gitclonegit://android.git.kernel.org/tools/gwtjsonrpc.git
    gitclonegit://android.git.kernel.org/tools/gwtorm.git
    gitclonegit://android.git.kernel.org/tools/manifest.git
    gitclonegit://android.git.kernel.org/tools/protobuf.git
    gitclonegit://android.git.kernel.org/tools/repo.git
    mkdirtest
    cdtest
    gitclonegit://android.git.kernel.org/tools/test/manifest.git
    gitclonegit://android.git.kernel.org/tools/test/project0.git
    5.Android的代码库结构改变后,以上脚本将不能适应改变后的结构。
    解决办法:下载自动生产脚本。
    下载地址:
    注:Google将Android的代号为Cupcake
    

网学推荐

免费论文

原创论文

浏览:
设为首页 | 加入收藏 | 论文首页 | 论文专题 | 设计下载 | 网学软件 | 论文模板 | 论文资源 | 程序设计 | 关于网学 | 站内搜索 | 网学留言 | 友情链接 | 资料中心
版权所有 QQ:3710167 邮箱:3710167@qq.com 网学网 [Myeducs.cn] 您电脑的分辨率是 像素
Copyright 2008-2015 myeducs.Cn www.myeducs.Cn All Rights Reserved
湘ICP备09003080号