zoukankan      html  css  js  c++  java
  • windows平台下载Android源码

    首先,到 http://code.google.com/p/msysgit/downloads/list 上下下载Git-xxx.exe,目前最新版本的是 Git-1.7.0.2-preview20100309.exe。下载后安装,然后到新建一个文件夹,保存源码。比如Android,右键选中文件夹,选择“git bash”即可打开windows上的git命令行,找到你需要下载的git路径,就可以使用git clone来下载代码了,比如下载Browsers 的源代码:git clone git://android.git.kernel.org/platform/packages/apps/Browser.git或git clone git://android.git.kernel.org/platform/external/sqlite.gitPS:

    Windows 中,下载全部的源码

    git clone git://android.git.kernel.org/kernel/common.git
    git clone git://android.git.kernel.org/kernel/experimental.git
    git clone git://android.git.kernel.org/kernel/msm.git
    git clone git://android.git.kernel.org/kernel/omap.git
    git clone git://android.git.kernel.org/platform/bionic.git
    git clone git://android.git.kernel.org/platform/bootable/bootloader/legacy.git
    git clone git://android.git.kernel.org/platform/bootable/diskinstaller.git
    git clone git://android.git.kernel.org/platform/bootable/recovery.git
    git clone git://android.git.kernel.org/platform/bootloader/legacy.git
    git clone git://android.git.kernel.org/platform/build.git
    git clone git://android.git.kernel.org/platform/dalvik.git
    git clone git://android.git.kernel.org/platform/development.git
    git clone git://android.git.kernel.org/platform/external/aes.git
    git clone git://android.git.kernel.org/platform/external/alsa-lib.git
    git clone git://android.git.kernel.org/platform/external/alsa-utils.git
    git clone git://android.git.kernel.org/platform/external/apache-http.git
    git clone git://android.git.kernel.org/platform/external/astl.git
    git clone git://android.git.kernel.org/platform/external/bison.git
    git clone git://android.git.kernel.org/platform/external/bluez.git
    git clone git://android.git.kernel.org/platform/external/bsdiff.git
    git clone git://android.git.kernel.org/platform/external/bzip2.git
    git clone git://android.git.kernel.org/platform/external/clearsilver.git
    git clone git://android.git.kernel.org/platform/external/dbus.git
    git clone git://android.git.kernel.org/platform/external/dhcpcd.git
    git clone git://android.git.kernel.org/platform/external/dosfstools.git
    git clone git://android.git.kernel.org/platform/external/dropbear.git
    git clone git://android.git.kernel.org/platform/external/e2fsprogs.git
    git clone git://android.git.kernel.org/platform/external/eglib.git
    git clone git://android.git.kernel.org/platform/external/elfcopy.git
    git clone git://android.git.kernel.org/platform/external/elfutils.git
    git clone git://android.git.kernel.org/platform/external/embunit.git
    git clone git://android.git.kernel.org/platform/external/emma.git
    git clone git://android.git.kernel.org/platform/external/esd.git
    git clone git://android.git.kernel.org/platform/external/expat.git
    git clone git://android.git.kernel.org/platform/external/fdlibm.git
    git clone git://android.git.kernel.org/platform/external/freetype.git
    git clone git://android.git.kernel.org/platform/external/fsck_msdos.git
    git clone git://android.git.kernel.org/platform/external/gdata.git
    git clone git://android.git.kernel.org/platform/external/genext2fs.git
    git clone git://android.git.kernel.org/platform/external/giflib.git
    git clone git://android.git.kernel.org/platform/external/googleclient.git
    git clone git://android.git.kernel.org/platform/external/grub.git
    git clone git://android.git.kernel.org/platform/external/gtest.git
    git clone git://android.git.kernel.org/platform/external/hcidump.git
    git clone git://android.git.kernel.org/platform/external/icu4c.git
    git clone git://android.git.kernel.org/platform/external/iptables.git
    git clone git://android.git.kernel.org/platform/external/jdiff.git
    git clone git://android.git.kernel.org/platform/external/jhead.git
    git clone git://android.git.kernel.org/platform/external/jpeg.git
    git clone git://android.git.kernel.org/platform/external/junit.git
    git clone git://android.git.kernel.org/platform/external/lcc.git
    git clone git://android.git.kernel.org/platform/external/libffi.git
    git clone git://android.git.kernel.org/platform/external/libpcap.git
    git clone git://android.git.kernel.org/platform/external/libpng.git
    git clone git://android.git.kernel.org/platform/external/libxml2.git
    git clone git://android.git.kernel.org/platform/external/mtpd.git
    git clone git://android.git.kernel.org/platform/external/netcat.git
    git clone git://android.git.kernel.org/platform/external/netperf.git
    git clone git://android.git.kernel.org/platform/external/neven.git
    git clone git://android.git.kernel.org/platform/external/opencore.git
    git clone git://android.git.kernel.org/platform/external/openssl.git
    git clone git://android.git.kernel.org/platform/external/oprofile.git
    git clone git://android.git.kernel.org/platform/external/ping.git
    git clone git://android.git.kernel.org/platform/external/ppp.git
    git clone git://android.git.kernel.org/platform/external/protobuf.git
    git clone git://android.git.kernel.org/platform/external/qemu.git
    git clone git://android.git.kernel.org/platform/external/safe-iop.git
    git clone git://android.git.kernel.org/platform/external/skia.git
    git clone git://android.git.kernel.org/platform/external/sonivox.git
    git clone git://android.git.kernel.org/platform/external/sqlite.git
    git clone git://android.git.kernel.org/platform/external/srec.git
    git clone git://android.git.kernel.org/platform/external/strace.git
    git clone git://android.git.kernel.org/platform/external/tagsoup.git
    git clone git://android.git.kernel.org/platform/external/tcpdump.git
    git clone git://android.git.kernel.org/platform/external/tesseract.git
    git clone git://android.git.kernel.org/platform/external/tinyxml.git
    git clone git://android.git.kernel.org/platform/external/tremor.git
    git clone git://android.git.kernel.org/platform/external/webkit.git
    git clone git://android.git.kernel.org/platform/external/wpa_supplicant.git
    git clone git://android.git.kernel.org/platform/external/xdelta3.git
    git clone git://android.git.kernel.org/platform/external/yaffs2.git
    git clone git://android.git.kernel.org/platform/external/zlib.git
    git clone git://android.git.kernel.org/platform/frameworks/base.git
    git clone git://android.git.kernel.org/platform/frameworks/opt/com.google.android.git
    git clone git://android.git.kernel.org/platform/frameworks/opt/com.google.android.googlelogin.git
    git clone git://android.git.kernel.org/platform/frameworks/opt/emoji.git
    git clone git://android.git.kernel.org/platform/frameworks/policies/base.git
    git clone git://android.git.kernel.org/platform/hardware/alsa_sound.git
    git clone git://android.git.kernel.org/platform/hardware/libhardware.git
    git clone git://android.git.kernel.org/platform/hardware/libhardware_legacy.git
    git clone git://android.git.kernel.org/platform/hardware/msm7k.git
    git clone git://android.git.kernel.org/platform/hardware/ril.git
    git clone git://android.git.kernel.org/platform/manifest.git
    git clone git://android.git.kernel.org/platform/packages/apps/AlarmClock.git
    git clone git://android.git.kernel.org/platform/packages/apps/Browser.git
    git clone git://android.git.kernel.org/platform/packages/apps/Calculator.git
    git clone git://android.git.kernel.org/platform/packages/apps/Calendar.git
    git clone git://android.git.kernel.org/platform/packages/apps/Camera.git
    git clone git://android.git.kernel.org/platform/packages/apps/Contacts.git
    git clone git://android.git.kernel.org/platform/packages/apps/Email.git
    git clone git://android.git.kernel.org/platform/packages/apps/GoogleSearch.git
    git clone git://android.git.kernel.org/platform/packages/apps/HTMLViewer.git
    git clone git://android.git.kernel.org/platform/packages/apps/IM.git
    git clone git://android.git.kernel.org/platform/packages/apps/Launcher.git
    git clone git://android.git.kernel.org/platform/packages/apps/Mms.git
    git clone git://android.git.kernel.org/platform/packages/apps/Music.git
    git clone git://android.git.kernel.org/platform/packages/apps/OTAProvisioningClient.git
    git clone git://android.git.kernel.org/platform/packages/apps/PackageInstaller.git
    git clone git://android.git.kernel.org/platform/packages/apps/Phone.git
    git clone git://android.git.kernel.org/platform/packages/apps/Settings.git
    git clone git://android.git.kernel.org/platform/packages/apps/SoundRecorder.git
    git clone git://android.git.kernel.org/platform/packages/apps/Stk.git
    git clone git://android.git.kernel.org/platform/packages/apps/Sync.git
    git clone git://android.git.kernel.org/platform/packages/apps/Updater.git
    git clone git://android.git.kernel.org/platform/packages/apps/VoiceDialer.git
    git clone git://android.git.kernel.org/platform/packages/inputmethods/LatinIME.git
    git clone git://android.git.kernel.org/platform/packages/inputmethods/OpenWnn.git
    git clone git://android.git.kernel.org/platform/packages/inputmethods/PinyinIME.git
    git clone git://android.git.kernel.org/platform/packages/providers/ApplicationsProvider.git
    git clone git://android.git.kernel.org/platform/packages/providers/CalendarProvider.git
    git clone git://android.git.kernel.org/platform/packages/providers/ContactsProvider.git
    git clone git://android.git.kernel.org/platform/packages/providers/DownloadProvider.git
    git clone git://android.git.kernel.org/platform/packages/providers/DrmProvider.git
    git clone git://android.git.kernel.org/platform/packages/providers/GoogleContactsProvider.git
    git clone git://android.git.kernel.org/platform/packages/providers/GoogleSubscribedFeedsProvider.git
    git clone git://android.git.kernel.org/platform/packages/providers/ImProvider.git
    git clone git://android.git.kernel.org/platform/packages/providers/MediaProvider.git
    git clone git://android.git.kernel.org/platform/packages/providers/TelephonyProvider.git
    git clone git://android.git.kernel.org/platform/packages/providers/UserDictionaryProvider.git
    git clone git://android.git.kernel.org/platform/prebuilt.git
    git clone git://android.git.kernel.org/platform/recovery.git
    git clone git://android.git.kernel.org/platform/system/bluetooth.git
    git clone git://android.git.kernel.org/platform/system/core.git
    git clone git://android.git.kernel.org/platform/system/extras.git
    git clone git://android.git.kernel.org/platform/system/wlan/broadcom.git
    git clone git://android.git.kernel.org/platform/system/wlan/ti.git
    git clone git://android.git.kernel.org/platform/vendor/asus/eee_701.git
    git clone git://android.git.kernel.org/platform/vendor/csr/unifi-105x.git
    git clone git://android.git.kernel.org/platform/vendor/csr/unifi-60xx.git
    git clone git://android.git.kernel.org/platform/vendor/htc/dream-open.git
    git clone git://android.git.kernel.org/platform/vendor/qcom/surf.git
    git clone git://android.git.kernel.org/tools/android-issuetrackerredirect.git
    git clone git://android.git.kernel.org/tools/executablewar.git
    git clone git://android.git.kernel.org/tools/gerrit-contactstore.git
    git clone git://android.git.kernel.org/tools/gerrit-keyapplet.git
    git clone git://android.git.kernel.org/tools/gerrit.git
    git clone git://android.git.kernel.org/tools/gimd.git
    git clone git://android.git.kernel.org/tools/gwtexpui.git
    git clone git://android.git.kernel.org/tools/gwtjsonrpc.git
    git clone git://android.git.kernel.org/tools/gwtorm.git
    git clone git://android.git.kernel.org/tools/manifest.git
    git clone git://android.git.kernel.org/tools/protobuf.git
    git clone git://android.git.kernel.org/tools/repo.git
    git clone git://android.git.kernel.org/tools/test/manifest.git
    git clone git://android.git.kernel.org/tools/test/project0.git

    或使用批处理文件内容如下

    #This shell to get the cupcake in turn by dictory

    TALK=1
    DEBUG=0
    echo "TALK mode is: " TALK
    echo "DEBUG mode is: " DEBUG

    mkdir kernel
    cd kernel
    #in kernel
    if [ "$TALK" == "1" ]; then

        echo "Now we get 'kernel' project"
    fi

    if [ "$DEBUG" != "1" ]; then
    git clone git://android.git.kernel.org/kernel/common.git
    git clone git://android.git.kernel.org/kernel/experimental.git
    git clone git://android.git.kernel.org/kernel/linux-2.6.git
    git clone git://android.git.kernel.org/kernel/lk.git
    git clone git://android.git.kernel.org/kernel/msm.git
    git clone git://android.git.kernel.org/kernel/omap.git
    fi

    cd ..
    mkdir platform
    cd platform
    #in platform
    if [ "$TALK" == "1" ]; then

        echo "Now we get 'platform' project"
    fi

    if [ "$DEBUG" != "1" ]; then
    git clone git://android.git.kernel.org/platform/bionic.git
    git clone git://android.git.kernel.org/platform/build.git
    git clone git://android.git.kernel.org/platform/dalvik.git
    git clone git://android.git.kernel.org/platform/development.git
    git clone git://android.git.kernel.org/platform/manifest.git
    git clone git://android.git.kernel.org/platform/prebuilt.git
    git clone git://android.git.kernel.org/platform/recovery.git
    fi

    mkdir bootable
    cd bootable
    #in platform/bootable
    if [ "$TALK" == "1" ]; then

        echo "Now we get 'platform/bootable' project"
    fi
    if [ "$DEBUG" != "1" ]; then
    git clone git://android.git.kernel.org/platform/bootable/diskinstaller.git
    git clone git://android.git.kernel.org/platform/bootable/recovery.git
    fi

    mkdir bootloader
    cd bootloader
    #in platform/bootable/bootloader
    if [ "$TALK" == "1" ]; then

        echo "Now we get 'platform/bootable/bootloader' project"
    fi
    if [ "$DEBUG" != "1" ]; then
    git clone git://android.git.kernel.org/platform/bootable/bootloader/legacy.git
    fi

    cd ..
    cd ..
    mkdir bootloader
    cd bootloader
    #in platform/bootloader
    if [ "$TALK" == "1" ]; then

        echo "Now we get 'platform/bootloader' project"
    fi
    if [ "$DEBUG" != "1" ]; then
    git clone git://android.git.kernel.org/platform/bootloader/legacy.git
    fi

    cd ..
    mkdir external
    cd external
    #in platform/externa
    if [ "$TALK" == "1" ]; then

        echo "Now we get 'platform/external' project"
    fi
    if [ "$DEBUG" != "1" ]; then
    git clone git://android.git.kernel.org/platform/external/aes.git
    git clone git://android.git.kernel.org/platform/external/alsa-lib.git
    git clone git://android.git.kernel.org/platform/external/alsa-utils.git
    git clone git://android.git.kernel.org/platform/external/apache-http.git
    git clone git://android.git.kernel.org/platform/external/astl.git
    git clone git://android.git.kernel.org/platform/external/bison.git
    git clone git://android.git.kernel.org/platform/external/blktrace.git
    git clone git://android.git.kernel.org/platform/external/bluez.git
    git clone git://android.git.kernel.org/platform/external/bsdiff.git
    git clone git://android.git.kernel.org/platform/external/bzip2.git
    git clone git://android.git.kernel.org/platform/external/clearsilver.git
    git clone git://android.git.kernel.org/platform/external/dbus.git
    git clone git://android.git.kernel.org/platform/external/dhcpcd.git
    git clone git://android.git.kernel.org/platform/external/dosfstools.git
    git clone git://android.git.kernel.org/platform/external/dropbear.git
    git clone git://android.git.kernel.org/platform/external/e2fsprogs.git
    git clone git://android.git.kernel.org/platform/external/eglib.git
    git clone git://android.git.kernel.org/platform/external/elfcopy.git
    git clone git://android.git.kernel.org/platform/external/elfutils.git
    git clone git://android.git.kernel.org/platform/external/embunit.git
    git clone git://android.git.kernel.org/platform/external/emma.git
    git clone git://android.git.kernel.org/platform/external/esd.git
    git clone git://android.git.kernel.org/platform/external/expat.git
    git clone git://android.git.kernel.org/platform/external/fdlibm.git
    git clone git://android.git.kernel.org/platform/external/freetype.git
    git clone git://android.git.kernel.org/platform/external/fsck_msdos.git
    git clone git://android.git.kernel.org/platform/external/gdata.git
    git clone git://android.git.kernel.org/platform/external/genext2fs.git
    git clone git://android.git.kernel.org/platform/external/giflib.git
    git clone git://android.git.kernel.org/platform/external/googleclient.git
    git clone git://android.git.kernel.org/platform/external/grub.git
    git clone git://android.git.kernel.org/platform/external/gtest.git
    git clone git://android.git.kernel.org/platform/external/hcidump.git
    git clone git://android.git.kernel.org/platform/external/icu4c.git
    git clone git://android.git.kernel.org/platform/external/ipsec-tools.git
    git clone git://android.git.kernel.org/platform/external/iptables.git
    git clone git://android.git.kernel.org/platform/external/jdiff.git
    git clone git://android.git.kernel.org/platform/external/jhead.git
    git clone git://android.git.kernel.org/platform/external/jpeg.git
    git clone git://android.git.kernel.org/platform/external/junit.git
    git clone git://android.git.kernel.org/platform/external/kernel-headers.git
    git clone git://android.git.kernel.org/platform/external/lcc.git
    git clone git://android.git.kernel.org/platform/external/libffi.git
    git clone git://android.git.kernel.org/platform/external/libpcap.git
    git clone git://android.git.kernel.org/platform/external/libpng.git
    git clone git://android.git.kernel.org/platform/external/libxml2.git
    git clone git://android.git.kernel.org/platform/external/mtd-utils.git
    git clone git://android.git.kernel.org/platform/external/mtpd.git
    git clone git://android.git.kernel.org/platform/external/netcat.git
    git clone git://android.git.kernel.org/platform/external/netperf.git
    git clone git://android.git.kernel.org/platform/external/neven.git
    git clone git://android.git.kernel.org/platform/external/opencore.git
    git clone git://android.git.kernel.org/platform/external/openssl.git
    git clone git://android.git.kernel.org/platform/external/oprofile.git
    git clone git://android.git.kernel.org/platform/external/ping.git
    git clone git://android.git.kernel.org/platform/external/ppp.git
    git clone git://android.git.kernel.org/platform/external/protobuf.git
    git clone git://android.git.kernel.org/platform/external/qemu.git
    git clone git://android.git.kernel.org/platform/external/safe-iop.git
    git clone git://android.git.kernel.org/platform/external/skia.git
    git clone git://android.git.kernel.org/platform/external/sonivox.git
    git clone git://android.git.kernel.org/platform/external/speex.git
    git clone git://android.git.kernel.org/platform/external/sqlite.git
    git clone git://android.git.kernel.org/platform/external/srec.git
    git clone git://android.git.kernel.org/platform/external/strace.git
    git clone git://android.git.kernel.org/platform/external/svox.git
    git clone git://android.git.kernel.org/platform/external/tagsoup.git
    git clone git://android.git.kernel.org/platform/external/tcpdump.git
    git clone git://android.git.kernel.org/platform/external/tesseract.git
    git clone git://android.git.kernel.org/platform/external/tinyxml.git
    git clone git://android.git.kernel.org/platform/external/tremor.git
    git clone git://android.git.kernel.org/platform/external/webkit.git
    git clone git://android.git.kernel.org/platform/external/wpa_supplicant.git
    git clone git://android.git.kernel.org/platform/external/xdelta3.git
    git clone git://android.git.kernel.org/platform/external/xmlwriter.git
    git clone git://android.git.kernel.org/platform/external/yaffs2.git
    git clone git://android.git.kernel.org/platform/external/zlib.git
    fi

    mkdir bluetooth
    cd bluetooth
    if [ "$TALK" == "1" ]; then

        echo "Now we get 'platform/bluetooth' project"
    fi
    if [ "$DEBUG" != "1" ]; then
    git clone git://android.git.kernel.org/platform/external/bluetooth/bluez.git
    git clone git://android.git.kernel.org/platform/external/bluetooth/glib.git
    git clone git://android.git.kernel.org/platform/external/bluetooth/hcidumb.git
    git clone git://android.git.kernel.org/platform/external/bluetooth/hcidump.git
    fi

    cd ..
    cd ..
    mkdir frameworks
    cd frameworks
    #in platform/frameworks
    if [ "$TALK" == "1" ]; then

        echo "Now we get 'platform/frameworks' project"
    fi
    if [ "$DEBUG" != "1" ]; then
    git clone git://android.git.kernel.org/platform/frameworks/base.git
    fi

    mkdir opt
    cd opt
    #in platform/frameworks/opt
    if [ "$TALK" == "1" ]; then

        echo "Now we get 'platform/frameworks/opt' project"
    fi
    if [ "$DEBUG" != "1" ]; then
    git clone git://android.git.kernel.org/platform/frameworks/opt/com.google.android.git
    git clone git://android.git.kernel.org/platform/frameworks/opt/com.google.android.googlelogin.git
    git clone git://android.git.kernel.org/platform/frameworks/opt/emoji.git
    fi

    cd ..
    mkdir policies
    cd policies
    #in platform/frameworks/policies
    if [ "$TALK" == "1" ]; then

        echo "Now we get 'platform/frameworks/policies' project"
    fi
    if [ "$DEBUG" != "1" ]; then
    git clone git://android.git.kernel.org/platform/frameworks/policies/base.git
    fi

    cd ..
    cd ..
    mkdir packages
    cd packages
    mkdir apps
    cd apps
    #in platform/packages/apps
    if [ "$TALK" == "1" ]; then

        echo "Now we get 'platform/packages/apps' project"
    fi
    if [ "$DEBUG" != "1" ]; then
    git clone git://android.git.kernel.org/platform/packages/apps/AlarmClock.git
    git clone git://android.git.kernel.org/platform/packages/apps/Browser.git
    git clone git://android.git.kernel.org/platform/packages/apps/Calculator.git
    git clone git://android.git.kernel.org/platform/packages/apps/Calendar.git
    git clone git://android.git.kernel.org/platform/packages/apps/Camera.git
    git clone git://android.git.kernel.org/platform/packages/apps/Contacts.git
    git clone git://android.git.kernel.org/platform/packages/apps/Email.git
    git clone git://android.git.kernel.org/platform/packages/apps/GlobalSearch.git
    git clone git://android.git.kernel.org/platform/packages/apps/GoogleSearch.git
    git clone git://android.git.kernel.org/platform/packages/apps/HTMLViewer.git
    git clone git://android.git.kernel.org/platform/packages/apps/IM.git
    git clone git://android.git.kernel.org/platform/packages/apps/BLauncher.git
    git clone git://android.git.kernel.org/platform/packages/apps/Mms.git
    git clone git://android.git.kernel.org/platform/packages/apps/Music.git
    git clone git://android.git.kernel.org/platform/packages/apps/OTAProvisioningClient.git
    git clone git://android.git.kernel.org/platform/packages/apps/PackageInstaller.git
    git clone git://android.git.kernel.org/platform/packages/apps/Phone.git
    git clone git://android.git.kernel.org/platform/packages/apps/Provision.git
    git clone git://android.git.kernel.org/platform/packages/apps/Settings.git
    git clone git://android.git.kernel.org/platform/packages/apps/SoundRecorder.git
    git clone git://android.git.kernel.org/platform/packages/apps/Stk.git
    git clone git://android.git.kernel.org/platform/packages/apps/Sync.git
    git clone git://android.git.kernel.org/platform/packages/apps/Updater.git
    git clone git://android.git.kernel.org/platform/packages/apps/VoiceDialer.git
    fi

    cd..
    mkdir inputmethods
    cd inputmethods
    #in platform/packages/inputmethods
    if [ "$TALK" == "1" ]; then

        echo "Now we get 'platform/packages/inputmethods' project"
    fi
    if [ "$DEBUG" != "1" ]; then
    git clone git://android.git.kernel.org/platform/packages/inputmethods/LatinIME.git
    git clone git://android.git.kernel.org/platform/packages/inputmethods/OpenWnn.git
    git clone git://android.git.kernel.org/platform/packages/inputmethods/PinyinIME.git
    fi

    cd ..
    mkdir providers
    cd providers
    #in platform/packages/providers
    if [ "$TALK" == "1" ]; then

        echo "Now we get 'platform/packages/providers' project"
    fi
    if [ "$DEBUG" != "1" ]; then
    git clone git://android.git.kernel.org/platform/packages/providers/ApplicationsProvider.git
    git clone git://android.git.kernel.org/platform/packages/providers/CalendarProvider.git
    git clone git://android.git.kernel.org/platform/packages/providers/ContactsProvider.git
    git clone git://android.git.kernel.org/platform/packages/providers/DownloadProvider.git
    git clone git://android.git.kernel.org/platform/packages/providers/DrmProvider.git
    git clone git://android.git.kernel.org/platform/packages/providers/GoogleContactsProvider.git
    git clone git://android.git.kernel.org/platform/packages/providers/GoogleSubscribedFeedsProvider.git
    git clone git://android.git.kernel.org/platform/packages/providers/ImProvider.git
    git clone git://android.git.kernel.org/platform/packages/providers/MediaProvider.git
    git clone git://android.git.kernel.org/platform/packages/providers/TelephonyProvider.git
    git clone git://android.git.kernel.org/platform/packages/providers/UserDictionaryProvider.git
    git clone git://android.git.kernel.org/platform/packages/providers/WebSearchProvider.git
    fi

    cd ..
    cd ..
    mkdir hardware
    cd hardware
    #in platform/hardware
    if [ "$TALK" == "1" ]; then

        echo "Now we get 'platform/hardware' project"
    fi
    if [ "$DEBUG" != "1" ]; then
    git clone git://android.git.kernel.org/platform/hardware/alsa_sound.git
    git clone git://android.git.kernel.org/platform/hardware/libhardware.git
    git clone git://android.git.kernel.org/platform/hardware/libhardware_legacy.git
    git clone git://android.git.kernel.org/platform/hardware/msm7k.git
    git clone git://android.git.kernel.org/platform/hardware/ril.git
    fi

    cd ..
    mkdir system
    cd system
    #in platform/system
    if [ "$TALK" == "1" ]; then

        echo "Now we get 'platform/system' project"
    fi
    if [ "$DEBUG" != "1" ]; then
    git clone git://android.git.kernel.org/platform/system/bluetooth.git
    git clone git://android.git.kernel.org/platform/system/core.git
    git clone git://android.git.kernel.org/platform/system/extras.git
    git clone git://android.git.kernel.org/platform/system/vold.git
    fi

    mkdir wlan
    cd wlan
    #in platform/system/wlan
    if [ "$TALK" == "1" ]; then

        echo "Now we get 'platform/system/wlan' project"
    fi
    if [ "$DEBUG" != "1" ]; then
    git clone git://android.git.kernel.org/platform/system/wlan/broadcom.git
    git clone git://android.git.kernel.org/platform/system/wlan/ti.git
    fi

    cd ..
    cd ..

    mkdir vendor
    cd vendor
    #in platform/vendor
    if [ "$TALK" == "1" ]; then

        echo "Now we get 'platform/vendor' project"
    fi
    if [ "$DEBUG" != "1" ]; then
    git clone git://android.git.kernel.org/platform/vendor/aosp.git
    git clone git://android.git.kernel.org/platform/vendor/pv-open.git
    git clone git://android.git.kernel.org/platform/vendor/sample.git
    fi

    mkdir asus
    cd asus
    #in platform/vendor/asus
    if [ "$TALK" == "1" ]; then

        echo "Now we get 'platform/vendor/asus' project"
    fi
    if [ "$DEBUG" != "1" ]; then
    git clone git://android.git.kernel.org/platform/vendor/asus/eee_701.git
    fi

    cd ..
    mkdir csr
    cd csr
    #in platform/vendor/csr
    if [ "$TALK" == "1" ]; then

        echo "Now we get 'platform/vendor/csr' project"
    fi
    if [ "$DEBUG" != "1" ]; then
    git clone git://android.git.kernel.org/platform/vendor/csr/unifi-105x.git
    git clone git://android.git.kernel.org/platform/vendor/csr/unifi-60xx.git
    fi

    cd ..
    mkdir htc
    cd htc
    #in platform/vendor/htc
    if [ "$TALK" == "1" ]; then

        echo "Now we get 'platform/vendor/htc' project"
    fi
    if [ "$DEBUG" != "1" ]; then
    git clone git://android.git.kernel.org/platform/vendor/htc/common-open.git
    git clone git://android.git.kernel.org/platform/vendor/htc/dream.git
    git clone git://android.git.kernel.org/platform/vendor/htc/prebuilt-open.git
    git clone git://android.git.kernel.org/platform/vendor/htc/sapphire-open.git
    fi

    cd ..
    mkdir qcom
    cd qcom
    #in platform/vendor/qcom
    if [ "$TALK" == "1" ]; then

        echo "Now we get 'platform/vendor/qcom' project"
    fi
    if [ "$DEBUG" != "1" ]; then
    git clone git://android.git.kernel.org/platform/vendor/qcom/android-open.git
    git clone git://android.git.kernel.org/platform/vendor/qcom/proprietary-open.git
    git clone git://android.git.kernel.org/platform/vendor/qcom/surf.git
    fi

    cd..
    mkdir st-ericsson
    cd st-ericsson
    #in platform/vendor/st-ericsson
    if [ "$TALK" == "1" ]; then

        echo "Now we get 'platform/vendor/st-ericsson' project"
    fi
    if [ "$DEBUG" != "1" ]; then
    git clone git://android.git.kernel.org/platform/vendor/st-ericsson/u300.git

    fi

    cd ..
    cd ..
    cd ..
    mkdir tools
    cd tools
    #in tools
    if [ "$TALK" == "1" ]; then

        echo "Now we get 'tools' project"
    fi
    if [ "$DEBUG" != "1" ]; then
    git clone git://android.git.kernel.org/tools/android-issuetrackerredirect.git
    git clone git://android.git.kernel.org/tools/executablewar.git
    git clone git://android.git.kernel.org/tools/gerrit-contactstore.git
    git clone git://android.git.kernel.org/tools/gerrit-keyapplet.git
    git clone git://android.git.kernel.org/tools/gerrit.git
    git clone git://android.git.kernel.org/tools/gimd.git
    git clone git://android.git.kernel.org/tools/gwtexpui.git
    git clone git://android.git.kernel.org/tools/gwtjsonrpc.git
    git clone git://android.git.kernel.org/tools/gwtorm.git
    git clone git://android.git.kernel.org/tools/manifest.git
    git clone git://android.git.kernel.org/tools/protobuf.git
    git clone git://android.git.kernel.org/tools/repo.git
    fi

    mkdir test
    cd test
    #in tools/test
    if [ "$TALK" == "1" ]; then

        echo "Now we get 'tools/test' project"
    fi
    if [ "$DEBUG" != "1" ]; then
    git clone git://android.git.kernel.org/tools/test/manifest.git
    git clone git://android.git.kernel.org/tools/test/project0.git
    fi

    cd ..
    cd ..
    mkdir toolchain
    cd toolchain
    #in toolchain
    if [ "$TALK" == "1" ]; then

        echo "Now we get 'toolchain' project"
    fi
    if [ "$DEBUG" != "1" ]; then
    git clone git://android.git.kernel.org/toolchain/benchmark.git
    git clone git://android.git.kernel.org/toolchain/binutils.git
    git clone git://android.git.kernel.org/toolchain/build.git
    git clone git://android.git.kernel.org/toolchain/gcc.git
    git clone git://android.git.kernel.org/toolchain/gdb.git
    git clone git://android.git.kernel.org/toolchain/gmp.git
    git clone git://android.git.kernel.org/toolchain/gold.git
    git clone git://android.git.kernel.org/toolchain/manifest.git
    git clone git://android.git.kernel.org/toolchain/mpfr.git
    fi

    echo ------- Get Android source code finished!!! -------

  • 相关阅读:
    双飞翼布局和圣杯布局的对比
    阿里云centos+java环境搭建
    Android零散知识点积累
    [转]linux shell 流程控制(条件if,循环【for,while】,选择【case】语句实例
    [转]linux shell 获取当前正在执行脚本的绝对路径
    [转+整理]linux shell 将字符串分割成数组
    [转]linux shell 数组建立及使用技巧
    linux shell 入门
    jquery 字符串转为json
    JQuery插件开发入门
  • 原文地址:https://www.cnblogs.com/AlexCheng/p/2120221.html
Copyright © 2011-2022 走看看