1. windows 上是安装msysgit url:http://code.google.com/p/msysgit/downloads/list
2.安装好之后运行在某一个盘里新建一个文件夹,并新建文件downandroidcode.sh
内容如下:
#Create by CreatAutoGetSh
mkdir kernel
cd kernel
git clone https://android.googlesource.com/Kernel-Projects
git clone https://android.googlesource.com/Platform-Projects
git clone https://android.googlesource.com/Platform-Unrestricted-Projects
git clone https://android.googlesource.com/Public-Projects
git clone https://android.googlesource.com/accessories/manifest
git clone https://android.googlesource.com/accessories/device/asus/grouper
git clone https://android.googlesource.com/accessories/device/common
git clone https://android.googlesource.com/accessories/device/generic/armv7-a
git clone https://android.googlesource.com/accessories/device/generic/armv7-a-neon
git clone https://android.googlesource.com/accessories/device/generic/goldfish
git clone https://android.googlesource.com/accessories/device/google/accessory/adk2012
git clone https://android.googlesource.com/accessories/device/google/accessory/adk2012_demo
git clone https://android.googlesource.com/accessories/device/google/accessory/arduino
git clone https://android.googlesource.com/accessories/device/google/accessory/demokit
git clone https://android.googlesource.com/accessories/device/htc/common
git clone https://android.googlesource.com/accessories/device/htc/dream
git clone https://android.googlesource.com/accessories/device/htc/dream-sapphire
git clone https://android.googlesource.com/accessories/device/htc/passion
git clone https://android.googlesource.com/accessories/device/htc/passion-common
git clone https://android.googlesource.com/accessories/device/htc/sapphire
git clone https://android.googlesource.com/accessories/device/moto/common
git clone https://android.googlesource.com/accessories/device/moto/stingray
git clone https://android.googlesource.com/accessories/device/moto/wingray
git clone https://android.googlesource.com/accessories/device/sample
git clone https://android.googlesource.com/accessories/device/samsung/crespo
git clone https://android.googlesource.com/accessories/device/samsung/crespo4g
git clone https://android.googlesource.com/accessories/device/samsung/maguro
git clone https://android.googlesource.com/accessories/device/samsung/toro
git clone https://android.googlesource.com/accessories/device/samsung/torospr
git clone https://android.googlesource.com/accessories/device/samsung/tuna
git clone https://android.googlesource.com/accessories/device/ti/bootloader/uboot
git clone https://android.googlesource.com/accessories/device/ti/panda
git clone https://android.googlesource.com/kernel/common
git clone https://android.googlesource.com/kernel/exynos
git clone https://android.googlesource.com/kernel/goldfish
git clone https://android.googlesource.com/kernel/msm
git clone https://android.googlesource.com/kernel/omap
git clone https://android.googlesource.com/kernel/samsung
git clone https://android.googlesource.com/kernel/tegra
git clone https://android.googlesource.com/mirror/manifest
git clone https://android.googlesource.com/accessories/platform/abi/cpp
git clone https://android.googlesource.com/accessories/platform/bionic
git clone https://android.googlesource.com/accessories/platform/bootable/bootloader/legacy
git clone https://android.googlesource.com/accessories/platform/bootable/diskinstaller
git clone https://android.googlesource.com/accessories/platform/bootable/recovery
git clone https://android.googlesource.com/accessories/platform/build
git clone https://android.googlesource.com/accessories/platform/cts
git clone https://android.googlesource.com/accessories/platform/dalvik
git clone https://android.googlesource.com/accessories/platform/dalvik-snapshot
git clone https://android.googlesource.com/accessories/platform/dalvik2
git clone https://android.googlesource.com/accessories/platform/development
git clone https://android.googlesource.com/accessories/platform/docs/source.android.com
git clone https://android.googlesource.com/accessories/platform/external/aac
git clone https://android.googlesource.com/accessories/platform/external/aes
git clone https://android.googlesource.com/accessories/platform/external/android-clat
git clone https://android.googlesource.com/accessories/platform/external/android-mock
git clone https://android.googlesource.com/accessories/platform/external/ant-glob
git clone https://android.googlesource.com/accessories/platform/external/antlr
git clone https://android.googlesource.com/accessories/platform/external/apache-harmony
git clone https://android.googlesource.com/accessories/platform/external/apache-http
git clone https://android.googlesource.com/accessories/platform/external/apache-qp
git clone https://android.googlesource.com/accessories/platform/external/apache-xml
git clone https://android.googlesource.com/accessories/platform/external/arduino-ide
git clone https://android.googlesource.com/accessories/platform/external/astl
git clone https://android.googlesource.com/accessories/platform/external/bison
git clone https://android.googlesource.com/accessories/platform/external/blktrace
git clone https://android.googlesource.com/accessories/platform/external/bluetooth/bluez
git clone https://android.googlesource.com/accessories/platform/external/bluetooth/glib
git clone https://android.googlesource.com/accessories/platform/external/bluetooth/hcidump
git clone https://android.googlesource.com/accessories/platform/external/bluez
git clone https://android.googlesource.com/accessories/platform/external/bouncycastle
git clone https://android.googlesource.com/accessories/platform/external/bsdiff
git clone https://android.googlesource.com/accessories/platform/external/bzip2
git clone https://android.googlesource.com/accessories/platform/external/checkpolicy
git clone https://android.googlesource.com/accessories/platform/external/chromium
git clone https://android.googlesource.com/accessories/platform/external/chromium-trace
git clone https://android.googlesource.com/accessories/platform/external/cibu-fonts
git clone https://android.googlesource.com/accessories/platform/external/clang
git clone https://android.googlesource.com/accessories/platform/external/clearsilver
git clone https://android.googlesource.com/accessories/platform/external/codesourcery
git clone https://android.googlesource.com/accessories/platform/external/collada
git clone https://android.googlesource.com/accessories/platform/external/compiler-rt
git clone https://android.googlesource.com/accessories/platform/external/dbus
git clone https://android.googlesource.com/accessories/platform/external/dexmaker
git clone https://android.googlesource.com/accessories/platform/external/dhcpcd
git clone https://android.googlesource.com/accessories/platform/external/dnsmasq
git clone https://android.googlesource.com/accessories/platform/external/doclava
git clone https://android.googlesource.com/accessories/platform/external/dosfstools
git clone https://android.googlesource.com/accessories/platform/external/dropbear
git clone https://android.googlesource.com/accessories/platform/external/e2fsprogs
git clone https://android.googlesource.com/accessories/platform/external/easymock
git clone https://android.googlesource.com/accessories/platform/external/eclipse-basebuilder
git clone https://android.googlesource.com/accessories/platform/external/eclipse-windowbuilder
git clone https://android.googlesource.com/accessories/platform/external/eglib
git clone https://android.googlesource.com/accessories/platform/external/elfcopy
git clone https://android.googlesource.com/accessories/platform/external/elfutils
git clone https://android.googlesource.com/accessories/platform/external/embunit
git clone https://android.googlesource.com/accessories/platform/external/emma
git clone https://android.googlesource.com/accessories/platform/external/esd
git clone https://android.googlesource.com/accessories/platform/external/expat
git clone https://android.googlesource.com/accessories/platform/external/eyes-free
git clone https://android.googlesource.com/accessories/platform/external/fdlibm
git clone https://android.googlesource.com/accessories/platform/external/flac
git clone https://android.googlesource.com/accessories/platform/external/freetype
git clone https://android.googlesource.com/accessories/platform/external/fsck_msdos
git clone https://android.googlesource.com/accessories/platform/external/ganymed-ssh2
git clone https://android.googlesource.com/accessories/platform/external/gcc-demangle
git clone https://android.googlesource.com/accessories/platform/external/gdata
git clone https://android.googlesource.com/accessories/platform/external/genext2fs
git clone https://android.googlesource.com/accessories/platform/external/giflib
git clone https://android.googlesource.com/accessories/platform/external/google-diff-match-patch
git clone https://android.googlesource.com/accessories/platform/external/googleclient
git clone https://android.googlesource.com/accessories/platform/external/grub
git clone https://android.googlesource.com/accessories/platform/external/gtest
git clone https://android.googlesource.com/accessories/platform/external/guava
git clone https://android.googlesource.com/accessories/platform/external/hamcrest
git clone https://android.googlesource.com/accessories/platform/external/harfbuzz
git clone https://android.googlesource.com/accessories/platform/external/hcidump
git clone https://android.googlesource.com/accessories/platform/external/hsqldb
git clone https://android.googlesource.com/accessories/platform/external/hyphenation
git clone https://android.googlesource.com/accessories/platform/external/icu4c
git clone https://android.googlesource.com/accessories/platform/external/iproute2
git clone https://android.googlesource.com/accessories/platform/external/ipsec-tools
git clone https://android.googlesource.com/accessories/platform/external/iptables
git clone https://android.googlesource.com/accessories/platform/external/jack
git clone https://android.googlesource.com/accessories/platform/external/javasqlite
git clone https://android.googlesource.com/accessories/platform/external/javassist
git clone https://android.googlesource.com/accessories/platform/external/jdiff
git clone https://android.googlesource.com/accessories/platform/external/jhead
git clone https://android.googlesource.com/accessories/platform/external/jline
git clone https://android.googlesource.com/accessories/platform/external/jmdns
git clone https://android.googlesource.com/accessories/platform/external/jmonkeyengine
git clone https://android.googlesource.com/accessories/platform/external/jpeg
git clone https://android.googlesource.com/accessories/platform/external/jsilver
git clone https://android.googlesource.com/accessories/platform/external/jsr305
git clone https://android.googlesource.com/accessories/platform/external/junit
git clone https://android.googlesource.com/accessories/platform/external/kernel-headers
git clone https://android.googlesource.com/accessories/platform/external/lcc
git clone https://android.googlesource.com/accessories/platform/external/libffi
git clone https://android.googlesource.com/accessories/platform/external/libgsm
git clone https://android.googlesource.com/accessories/platform/external/liblzf
git clone https://android.googlesource.com/accessories/platform/external/libmtp
git clone https://android.googlesource.com/accessories/platform/external/libnfc-nxp
git clone https://android.googlesource.com/accessories/platform/external/libnl-headers
git clone https://android.googlesource.com/accessories/platform/external/libpcap
git clone https://android.googlesource.com/accessories/platform/external/libphonenumber
git clone https://android.googlesource.com/accessories/platform/external/libpng
git clone https://android.googlesource.com/accessories/platform/external/libselinux
git clone https://android.googlesource.com/accessories/platform/external/libsepol
git clone https://android.googlesource.com/accessories/platform/external/libusb
git clone https://android.googlesource.com/accessories/platform/external/libusb-compat
git clone https://android.googlesource.com/accessories/platform/external/libvpx
git clone https://android.googlesource.com/accessories/platform/external/libxml2
git clone https://android.googlesource.com/accessories/platform/external/libxslt
git clone https://android.googlesource.com/accessories/platform/external/libyuv
git clone https://android.googlesource.com/accessories/platform/external/linux-tools-perf
git clone https://android.googlesource.com/accessories/platform/external/littlemock
git clone https://android.googlesource.com/accessories/platform/external/llvm
git clone https://android.googlesource.com/accessories/platform/external/lohit-fonts
git clone https://android.googlesource.com/accessories/platform/external/markdown
git clone https://android.googlesource.com/accessories/platform/external/mdnsresponder
git clone https://android.googlesource.com/accessories/platform/external/mesa3d
git clone https://android.googlesource.com/accessories/platform/external/mksh
git clone https://android.googlesource.com/accessories/platform/external/mockwebserver
git clone https://android.googlesource.com/accessories/platform/external/mtpd
git clone https://android.googlesource.com/accessories/platform/external/naver-fonts
git clone https://android.googlesource.com/accessories/platform/external/netcat
git clone https://android.googlesource.com/accessories/platform/external/netperf
git clone https://android.googlesource.com/accessories/platform/external/neven
git clone https://android.googlesource.com/accessories/platform/external/nist-sip
git clone https://android.googlesource.com/accessories/platform/external/oauth
git clone https://android.googlesource.com/accessories/platform/external/opencore
git clone https://android.googlesource.com/accessories/platform/external/opencv
git clone https://android.googlesource.com/accessories/platform/external/openfst
git clone https://android.googlesource.com/accessories/platform/external/openssh
git clone https://android.googlesource.com/accessories/platform/external/openssl
git clone https://android.googlesource.com/accessories/platform/external/openvpn
git clone https://android.googlesource.com/accessories/platform/external/oprofile
git clone https://android.googlesource.com/accessories/platform/external/pcre
git clone https://android.googlesource.com/accessories/platform/external/ping
git clone https://android.googlesource.com/accessories/platform/external/ping6
git clone https://android.googlesource.com/accessories/platform/external/ppp
git clone https://android.googlesource.com/accessories/platform/external/proguard
git clone https://android.googlesource.com/accessories/platform/external/protobuf
git clone https://android.googlesource.com/accessories/platform/external/qemu
git clone https://android.googlesource.com/accessories/platform/external/qemu-pc-bios
git clone https://android.googlesource.com/accessories/platform/external/quake
git clone https://android.googlesource.com/accessories/platform/external/regex-re2
git clone https://android.googlesource.com/accessories/platform/external/replicaisland
git clone https://android.googlesource.com/accessories/platform/external/safe-iop
git clone https://android.googlesource.com/accessories/platform/external/sepolicy
git clone https://android.googlesource.com/accessories/platform/external/skia
git clone https://android.googlesource.com/accessories/platform/external/smali
git clone https://android.googlesource.com/accessories/platform/external/sonivox
git clone https://android.googlesource.com/accessories/platform/external/speex
git clone https://android.googlesource.com/accessories/platform/external/sqlite
git clone https://android.googlesource.com/accessories/platform/external/srec
git clone https://android.googlesource.com/accessories/platform/external/srtp
git clone https://android.googlesource.com/accessories/platform/external/stlport
git clone https://android.googlesource.com/accessories/platform/external/strace
git clone https://android.googlesource.com/accessories/platform/external/stressapptest
git clone https://android.googlesource.com/accessories/platform/external/svox
git clone https://android.googlesource.com/accessories/platform/external/tagsoup
git clone https://android.googlesource.com/accessories/platform/external/tcpdump
git clone https://android.googlesource.com/accessories/platform/external/tesseract
git clone https://android.googlesource.com/accessories/platform/external/tinyalsa
git clone https://android.googlesource.com/accessories/platform/external/tinyxml
git clone https://android.googlesource.com/accessories/platform/external/tremolo
git clone https://android.googlesource.com/accessories/platform/external/tremor
git clone https://android.googlesource.com/accessories/platform/external/v8
git clone https://android.googlesource.com/accessories/platform/external/valgrind
git clone https://android.googlesource.com/accessories/platform/external/webkit
git clone https://android.googlesource.com/accessories/platform/external/webp
git clone https://android.googlesource.com/accessories/platform/external/webrtc
git clone https://android.googlesource.com/accessories/platform/external/wpa_supplicant
git clone https://android.googlesource.com/accessories/platform/external/wpa_supplicant_6
git clone https://android.googlesource.com/accessories/platform/external/wpa_supplicant_8
git clone https://android.googlesource.com/accessories/platform/external/xdelta3
git clone https://android.googlesource.com/accessories/platform/external/xmlwriter
git clone https://android.googlesource.com/accessories/platform/external/yaffs2
git clone https://android.googlesource.com/accessories/platform/external/zlib
git clone https://android.googlesource.com/accessories/platform/external/zxing
git clone https://android.googlesource.com/accessories/platform/frameworks/av
git clone https://android.googlesource.com/accessories/platform/frameworks/base
git clone https://android.googlesource.com/accessories/platform/frameworks/compile/libbcc
git clone https://android.googlesource.com/accessories/platform/frameworks/compile/linkloader
git clone https://android.googlesource.com/accessories/platform/frameworks/compile/mclinker
git clone https://android.googlesource.com/accessories/platform/frameworks/compile/slang
git clone https://android.googlesource.com/accessories/platform/frameworks/ex
git clone https://android.googlesource.com/accessories/platform/frameworks/media/libvideoeditor
git clone https://android.googlesource.com/accessories/platform/frameworks/mff
git clone https://android.googlesource.com/accessories/platform/frameworks/ml
git clone https://android.googlesource.com/accessories/platform/frameworks/native
git clone https://android.googlesource.com/accessories/platform/frameworks/opt/calendar
git clone https://android.googlesource.com/accessories/platform/frameworks/opt/carddav
git clone https://android.googlesource.com/accessories/platform/frameworks/opt/com.google.android
git clone https://android.googlesource.com/accessories/platform/frameworks/opt/com.google.android.googlelogin
git clone https://android.googlesource.com/accessories/platform/frameworks/opt/emoji
git clone https://android.googlesource.com/accessories/platform/frameworks/opt/inputmethodcommon
git clone https://android.googlesource.com/accessories/platform/frameworks/opt/mailcommon
git clone https://android.googlesource.com/accessories/platform/frameworks/opt/mms
git clone https://android.googlesource.com/accessories/platform/frameworks/opt/telephony
git clone https://android.googlesource.com/accessories/platform/frameworks/opt/vcard
git clone https://android.googlesource.com/accessories/platform/frameworks/policies/base
git clone https://android.googlesource.com/accessories/platform/frameworks/rs
git clone https://android.googlesource.com/accessories/platform/frameworks/support
git clone https://android.googlesource.com/accessories/platform/frameworks/testing
git clone https://android.googlesource.com/accessories/platform/frameworks/wilhelm
git clone https://android.googlesource.com/accessories/platform/gdk
git clone https://android.googlesource.com/accessories/platform/hardware/broadcom/wlan
git clone https://android.googlesource.com/accessories/platform/hardware/invensense
git clone https://android.googlesource.com/accessories/platform/hardware/libhardware
git clone https://android.googlesource.com/accessories/platform/hardware/libhardware_legacy
git clone https://android.googlesource.com/accessories/platform/hardware/msm7k
git clone https://android.googlesource.com/accessories/platform/hardware/qcom/gps
git clone https://android.googlesource.com/accessories/platform/hardware/qcom/media
git clone https://android.googlesource.com/accessories/platform/hardware/ril
git clone https://android.googlesource.com/accessories/platform/hardware/ti/omap3
git clone https://android.googlesource.com/accessories/platform/hardware/ti/omap4xxx
git clone https://android.googlesource.com/accessories/platform/hardware/ti/wlan
git clone https://android.googlesource.com/accessories/platform/hardware/ti/wpan
git clone https://android.googlesource.com/accessories/platform/libcore
git clone https://android.googlesource.com/accessories/platform/libcore-snapshot
git clone https://android.googlesource.com/accessories/platform/libcore2
git clone https://android.googlesource.com/accessories/platform/libnativehelper
git clone https://android.googlesource.com/accessories/platform/manifest
git clone https://android.googlesource.com/accessories/platform/ndk
git clone https://android.googlesource.com/accessories/platform/packages/apps/AccountsAndSyncSettings
git clone https://android.googlesource.com/accessories/platform/packages/apps/AlarmClock
git clone https://android.googlesource.com/accessories/platform/packages/apps/BasicSmsReceiver
git clone https://android.googlesource.com/accessories/platform/packages/apps/Bluetooth
git clone https://android.googlesource.com/accessories/platform/packages/apps/Browser
git clone https://android.googlesource.com/accessories/platform/packages/apps/Calculator
git clone https://android.googlesource.com/accessories/platform/packages/apps/Calendar
git clone https://android.googlesource.com/accessories/platform/packages/apps/Camera
git clone https://android.googlesource.com/accessories/platform/packages/apps/CellBroadcastReceiver
git clone https://android.googlesource.com/accessories/platform/packages/apps/CertInstaller
git clone https://android.googlesource.com/accessories/platform/packages/apps/Contacts
git clone https://android.googlesource.com/accessories/platform/packages/apps/DeskClock
git clone https://android.googlesource.com/accessories/platform/packages/apps/Email
git clone https://android.googlesource.com/accessories/platform/packages/apps/Exchange
git clone https://android.googlesource.com/accessories/platform/packages/apps/Gallery
git clone https://android.googlesource.com/accessories/platform/packages/apps/Gallery2
git clone https://android.googlesource.com/accessories/platform/packages/apps/Gallery3D
git clone https://android.googlesource.com/accessories/platform/packages/apps/GlobalSearch
git clone https://android.googlesource.com/accessories/platform/packages/apps/GoogleSearch
git clone https://android.googlesource.com/accessories/platform/packages/apps/HTMLViewer
git clone https://android.googlesource.com/accessories/platform/packages/apps/IM
git clone https://android.googlesource.com/accessories/platform/packages/apps/KeyChain
git clone https://android.googlesource.com/accessories/platform/packages/apps/Launcher
git clone https://android.googlesource.com/accessories/platform/packages/apps/Launcher2
git clone https://android.googlesource.com/accessories/platform/packages/apps/LegacyCamera
git clone https://android.googlesource.com/accessories/platform/packages/apps/Mms
git clone https://android.googlesource.com/accessories/platform/packages/apps/Music
git clone https://android.googlesource.com/accessories/platform/packages/apps/MusicFX
git clone https://android.googlesource.com/accessories/platform/packages/apps/Nfc
git clone https://android.googlesource.com/accessories/platform/packages/apps/PackageInstaller
git clone https://android.googlesource.com/accessories/platform/packages/apps/Phone
git clone https://android.googlesource.com/accessories/platform/packages/apps/Protips
git clone https://android.googlesource.com/accessories/platform/packages/apps/Provision
git clone https://android.googlesource.com/accessories/platform/packages/apps/QuickSearchBox
git clone https://android.googlesource.com/accessories/platform/packages/apps/Settings
git clone https://android.googlesource.com/accessories/platform/packages/apps/SmartCardService
git clone https://android.googlesource.com/accessories/platform/packages/apps/SoundRecorder
git clone https://android.googlesource.com/accessories/platform/packages/apps/SpareParts
git clone https://android.googlesource.com/accessories/platform/packages/apps/SpeechRecorder
git clone https://android.googlesource.com/accessories/platform/packages/apps/Stk
git clone https://android.googlesource.com/accessories/platform/packages/apps/Sync
git clone https://android.googlesource.com/accessories/platform/packages/apps/Tag
git clone https://android.googlesource.com/accessories/platform/packages/apps/Updater
git clone https://android.googlesource.com/accessories/platform/packages/apps/VideoEditor
git clone https://android.googlesource.com/accessories/platform/packages/apps/VoiceDialer
git clone https://android.googlesource.com/accessories/platform/packages/experimental
git clone https://android.googlesource.com/accessories/platform/packages/inputmethods/LatinIME
git clone https://android.googlesource.com/accessories/platform/packages/inputmethods/OpenWnn
git clone https://android.googlesource.com/accessories/platform/packages/inputmethods/PinyinIME
git clone https://android.googlesource.com/accessories/platform/packages/providers/ApplicationsProvider
git clone https://android.googlesource.com/accessories/platform/packages/providers/CalendarProvider
git clone https://android.googlesource.com/accessories/platform/packages/providers/ContactsProvider
git clone https://android.googlesource.com/accessories/platform/packages/providers/DownloadProvider
git clone https://android.googlesource.com/accessories/platform/packages/providers/DrmProvider
git clone https://android.googlesource.com/accessories/platform/packages/providers/GoogleContactsProvider
git clone https://android.googlesource.com/accessories/platform/packages/providers/GoogleSubscribedFeedsProvider
git clone https://android.googlesource.com/accessories/platform/packages/providers/ImProvider
git clone https://android.googlesource.com/accessories/platform/packages/providers/ManagementProvider
git clone https://android.googlesource.com/accessories/platform/packages/providers/MediaProvider
git clone https://android.googlesource.com/accessories/platform/packages/providers/PartnerBookmarksProvider
git clone https://android.googlesource.com/accessories/platform/packages/providers/TelephonyProvider
git clone https://android.googlesource.com/accessories/platform/packages/providers/UserDictionaryProvider
git clone https://android.googlesource.com/accessories/platform/packages/providers/WebSearchProvider
git clone https://android.googlesource.com/accessories/platform/packages/services/EasService
git clone https://android.googlesource.com/accessories/platform/packages/services/LockAndWipe
git clone https://android.googlesource.com/accessories/platform/packages/wallpapers/Basic
git clone https://android.googlesource.com/accessories/platform/packages/wallpapers/Galaxy4
git clone https://android.googlesource.com/accessories/platform/packages/wallpapers/HoloSpiral
git clone https://android.googlesource.com/accessories/platform/packages/wallpapers/LivePicker
git clone https://android.googlesource.com/accessories/platform/packages/wallpapers/MagicSmoke
git clone https://android.googlesource.com/accessories/platform/packages/wallpapers/MusicVisualization
git clone https://android.googlesource.com/accessories/platform/packages/wallpapers/NoiseField
git clone https://android.googlesource.com/accessories/platform/packages/wallpapers/PhaseBeam
git clone https://android.googlesource.com/accessories/platform/pdk
git clone https://android.googlesource.com/accessories/platform/prebuilt
git clone https://android.googlesource.com/accessories/platform/prebuilts/eclipse
git clone https://android.googlesource.com/accessories/platform/prebuilts/gcc/darwin-x86/arm/arm-eabi-4.6
git clone https://android.googlesource.com/accessories/platform/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.6
git clone https://android.googlesource.com/accessories/platform/prebuilts/gcc/darwin-x86/mips/mipsel-linux-android-4.4.3
git clone https://android.googlesource.com/accessories/platform/prebuilts/gcc/darwin-x86/mips/mipsel-linux-android-4.6
git clone https://android.googlesource.com/accessories/platform/prebuilts/gcc/darwin-x86/x86/i686-android-linux-4.4.3
git clone https://android.googlesource.com/accessories/platform/prebuilts/gcc/darwin-x86/x86/i686-android-linux-4.6
git clone https://android.googlesource.com/accessories/platform/prebuilts/gcc/darwin-x86/x86/i686-linux-android-4.6
git clone https://android.googlesource.com/accessories/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6
git clone https://android.googlesource.com/accessories/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6
git clone https://android.googlesource.com/accessories/platform/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3
git clone https://android.googlesource.com/accessories/platform/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6
git clone https://android.googlesource.com/accessories/platform/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6
git clone https://android.googlesource.com/accessories/platform/prebuilts/gcc/linux-x86/mips/mipsel-linux-android-4.4.3
git clone https://android.googlesource.com/accessories/platform/prebuilts/gcc/linux-x86/mips/mipsel-linux-android-4.6
git clone https://android.googlesource.com/accessories/platform/prebuilts/gcc/linux-x86/x86/i686-android-linux-4.4.3
git clone https://android.googlesource.com/accessories/platform/prebuilts/gcc/linux-x86/x86/i686-android-linux-4.6
git clone https://android.googlesource.com/accessories/platform/prebuilts/gcc/linux-x86/x86/i686-linux-android-4.6
git clone https://android.googlesource.com/accessories/platform/prebuilts/misc
git clone https://android.googlesource.com/accessories/platform/prebuilts/ndk
git clone https://android.googlesource.com/accessories/platform/prebuilts/qemu-kernel
git clone https://android.googlesource.com/accessories/platform/prebuilts/sdk
git clone https://android.googlesource.com/accessories/platform/prebuilts/tools
git clone https://android.googlesource.com/accessories/platform/sdk
git clone https://android.googlesource.com/accessories/platform/system/bluetooth
git clone https://android.googlesource.com/accessories/platform/system/core
git clone https://android.googlesource.com/accessories/platform/system/extras
git clone https://android.googlesource.com/accessories/platform/system/media
git clone https://android.googlesource.com/accessories/platform/system/netd
git clone https://android.googlesource.com/accessories/platform/system/security
git clone https://android.googlesource.com/accessories/platform/system/vold
git clone https://android.googlesource.com/accessories/platform/system/wlan/ti
git clone https://android.googlesource.com/accessories/platform/tools/tradefederation
git clone https://android.googlesource.com/accessories/platform/vendor/htc/dream-open
git clone https://android.googlesource.com/accessories/platform/vendor/sample
git clone https://android.googlesource.com/toolchain/avr-libc
git clone https://android.googlesource.com/toolchain/benchmark
git clone https://android.googlesource.com/toolchain/binutils
git clone https://android.googlesource.com/toolchain/build
git clone https://android.googlesource.com/toolchain/expat
git clone https://android.googlesource.com/toolchain/gcc
git clone https://android.googlesource.com/
git clone https://android.googlesource.com/toolchain/gdb
git clone https://android.googlesource.com/toolchain/gmp
git clone https://android.googlesource.com/toolchain/gold
git clone https://android.googlesource.com/toolchain/manifest
git clone https://android.googlesource.com/toolchain/mpc
git clone https://android.googlesource.com/toolchain/mpfr
git clone https://android.googlesource.com/tools/repo
3.在新建的文件夹里打开Git bash 运行该文件:./downandroidcode.sh
==就ok了。