当前位置:   article > 正文

如何使用Git下载Android源码_git下载android 14代码

git下载android 14代码

Github下载Android源码

复制代码
  1 git clone https://android.googlesource.com/device/common.git 
  2 git clone https://android.googlesource.com/device/google/accessory/arduino.git 
  3 git clone https://android.googlesource.com/device/google/accessory/demokit.git 
  4 git clone https://android.googlesource.com/device/htc/common.git 
  5 git clone https://android.googlesource.com/device/htc/dream-sapphire.git 
  6 git clone https://android.googlesource.com/device/htc/dream.git 
  7 git clone https://android.googlesource.com/device/htc/passion-common.git 
  8 git clone https://android.googlesource.com/device/htc/passion.git 
  9 git clone https://android.googlesource.com/device/htc/sapphire.git 
 10 git clone https://android.googlesource.com/device/sample.git 
 11 git clone https://android.googlesource.com/device/samsung/crespo.git 
 12 git clone https://android.googlesource.com/device/samsung/crespo4g.git 
 13 git clone https://android.googlesource.com/kernel/common.git 
 14 git clone https://android.googlesource.com/kernel/experimental.git 
 15 git clone https://android.googlesource.com/kernel/linux-2.6.git 
 16 git clone https://android.googlesource.com/kernel/lk.git 
 17 git clone https://android.googlesource.com/kernel/msm.git 
 18 git clone https://android.googlesource.com/kernel/omap.git 
 19 git clone https://android.googlesource.com/kernel/qemu.git 
 20 git clone https://android.googlesource.com/kernel/samsung.git 
 21 git clone https://android.googlesource.com/kernel/tegra.git 
 22 git clone https://android.googlesource.com/platform/bionic.git 
 23 git clone https://android.googlesource.com/platform/bootable/bootloader/legacy.git 
 24 git clone https://android.googlesource.com/platform/bootable/diskinstaller.git 
 25 git clone https://android.googlesource.com/platform/bootable/recovery.git 
 26 git clone https://android.googlesource.com/platform/bootloader/legacy.git 
 27 git clone https://android.googlesource.com/platform/build.git 
 28 git clone https://android.googlesource.com/platform/cts.git 
 29 git clone https://android.googlesource.com/platform/dalvik.git 
 30 git clone https://android.googlesource.com/platform/development.git 
 31 git clone https://android.googlesource.com/platform/external/aes.git 
 32 git clone https://android.googlesource.com/platform/external/alsa-lib.git 
 33 git clone https://android.googlesource.com/platform/external/alsa-utils.git 
 34 git clone https://android.googlesource.com/platform/external/apache-http.git 
 35 git clone https://android.googlesource.com/platform/external/apache-qp.git 
 36 git clone https://android.googlesource.com/platform/external/astl.git 
 37 git clone https://android.googlesource.com/platform/external/bison.git 
 38 git clone https://android.googlesource.com/platform/external/blktrace.git 
 39 git clone https://android.googlesource.com/platform/external/bluetooth/bluez.git 
 40 git clone https://android.googlesource.com/platform/external/bluetooth/glib.git 
 41 git clone https://android.googlesource.com/platform/external/bluetooth/hcidumb.git 
 42 git clone https://android.googlesource.com/platform/external/bluetooth/hcidump.git 
 43 git clone https://android.googlesource.com/platform/external/bluez.git 
 44 git clone https://android.googlesource.com/platform/external/bouncycastle.git 
 45 git clone https://android.googlesource.com/platform/external/bsdiff.git 
 46 git clone https://android.googlesource.com/platform/external/bzip2.git 
 47 git clone https://android.googlesource.com/platform/external/chromium.git 
 48 git clone https://android.googlesource.com/platform/external/clearsilver.git 
 49 git clone https://android.googlesource.com/platform/external/dbus.git 
 50 git clone https://android.googlesource.com/platform/external/dhcpcd.git 
 51 git clone https://android.googlesource.com/platform/external/dnsmasq.git 
 52 git clone https://android.googlesource.com/platform/external/dosfstools.git 
 53 git clone https://android.googlesource.com/platform/external/dropbear.git 
 54 git clone https://android.googlesource.com/platform/external/e2fsprogs.git 
 55 git clone https://android.googlesource.com/platform/external/easymock.git 
 56 git clone https://android.googlesource.com/platform/external/eglib.git 
 57 git clone https://android.googlesource.com/platform/external/elfcopy.git 
 58 git clone https://android.googlesource.com/platform/external/elfutils.git 
 59 git clone https://android.googlesource.com/platform/external/embunit.git 
 60 git clone https://android.googlesource.com/platform/external/emma.git 
 61 git clone https://android.googlesource.com/platform/external/esd.git 
 62 git clone https://android.googlesource.com/platform/external/expat.git 
 63 git clone https://android.googlesource.com/platform/external/fdlibm.git 
 64 git clone https://android.googlesource.com/platform/external/freetype.git 
 65 git clone https://android.googlesource.com/platform/external/fsck_msdos.git 
 66 git clone https://android.googlesource.com/platform/external/gdata.git 
 67 git clone https://android.googlesource.com/platform/external/genext2fs.git 
 68 git clone https://android.googlesource.com/platform/external/giflib.git 
 69 git clone https://android.googlesource.com/platform/external/googleclient.git 
 70 git clone https://android.googlesource.com/platform/external/grub.git 
 71 git clone https://android.googlesource.com/platform/external/gtest.git 
 72 git clone https://android.googlesource.com/platform/external/guava.git 
 73 git clone https://android.googlesource.com/platform/external/harfbuzz.git 
 74 git clone https://android.googlesource.com/platform/external/hcidump.git 
 75 git clone https://android.googlesource.com/platform/external/hyphenation.git 
 76 git clone https://android.googlesource.com/platform/external/icu4c.git 
 77 git clone https://android.googlesource.com/platform/external/iproute2.git 
 78 git clone https://android.googlesource.com/platform/external/ipsec-tools.git 
 79 git clone https://android.googlesource.com/platform/external/iptables.git 
 80 git clone https://android.googlesource.com/platform/external/jdiff.git 
 81 git clone https://android.googlesource.com/platform/external/jhead.git 
 82 git clone https://android.googlesource.com/platform/external/jpeg.git 
 83 git clone https://android.googlesource.com/platform/external/jsilver.git 
 84 git clone https://android.googlesource.com/platform/external/jsr305.git 
 85 git clone https://android.googlesource.com/platform/external/junit.git 
 86 git clone https://android.googlesource.com/platform/external/kernel-headers.git 
 87 git clone https://android.googlesource.com/platform/external/lcc.git 
 88 git clone https://android.googlesource.com/platform/external/libffi.git 
 89 git clone https://android.googlesource.com/platform/external/libgsm.git 
 90 git clone https://android.googlesource.com/platform/external/libnfc-nxp.git 
 91 git clone https://android.googlesource.com/platform/external/libpcap.git 
 92 git clone https://android.googlesource.com/platform/external/libpng.git 
 93 git clone https://android.googlesource.com/platform/external/libvpx.git 
 94 git clone https://android.googlesource.com/platform/external/libxml2.git 
 95 git clone https://android.googlesource.com/platform/external/libxslt.git 
 96 git clone https://android.googlesource.com/platform/external/mtd-utils.git 
 97 git clone https://android.googlesource.com/platform/external/mtpd.git 
 98 git clone https://android.googlesource.com/platform/external/netcat.git 
 99 git clone https://android.googlesource.com/platform/external/netperf.git 
100 git clone https://android.googlesource.com/platform/external/neven.git 
101 git clone https://android.googlesource.com/platform/external/nist-sip.git 
102 git clone https://android.googlesource.com/platform/external/oauth.git 
103 git clone https://android.googlesource.com/platform/external/opencore.git 
104 git clone https://android.googlesource.com/platform/external/openssl.git 
105 git clone https://android.googlesource.com/platform/external/openvpn.git 
106 git clone https://android.googlesource.com/platform/external/oprofile.git 
107 git clone https://android.googlesource.com/platform/external/ping.git 
108 git clone https://android.googlesource.com/platform/external/ppp.git 
109 git clone https://android.googlesource.com/platform/external/proguard.git 
110 git clone https://android.googlesource.com/platform/external/protobuf.git 
111 git clone https://android.googlesource.com/platform/external/qemu-pc-bios.git 
112 git clone https://android.googlesource.com/platform/external/qemu.git 
113 git clone https://android.googlesource.com/platform/external/quake.git 
114 git clone https://android.googlesource.com/platform/external/safe-iop.git 
115 git clone https://android.googlesource.com/platform/external/skia.git 
116 git clone https://android.googlesource.com/platform/external/sonivox.git 
117 git clone https://android.googlesource.com/platform/external/speex.git 
118 git clone https://android.googlesource.com/platform/external/sqlite.git 
119 git clone https://android.googlesource.com/platform/external/srec.git 
120 git clone https://android.googlesource.com/platform/external/stlport.git 
121 git clone https://android.googlesource.com/platform/external/strace.git 
122 git clone https://android.googlesource.com/platform/external/svox.git 
123 git clone https://android.googlesource.com/platform/external/tagsoup.git 
124 git clone https://android.googlesource.com/platform/external/tcpdump.git 
125 git clone https://android.googlesource.com/platform/external/tesseract.git 
126 git clone https://android.googlesource.com/platform/external/tinyxml.git 
127 git clone https://android.googlesource.com/platform/external/tremolo.git 
128 git clone https://android.googlesource.com/platform/external/tremor.git 
129 git clone https://android.googlesource.com/platform/external/v8.git 
130 git clone https://android.googlesource.com/platform/external/webkit.git 
131 git clone https://android.googlesource.com/platform/external/webp.git 
132 git clone https://android.googlesource.com/platform/external/wpa_supplicant.git 
133 git clone https://android.googlesource.com/platform/external/wpa_supplicant_6.git 
134 git clone https://android.googlesource.com/platform/external/xdelta3.git 
135 git clone https://android.googlesource.com/platform/external/xmlwriter.git 
136 git clone https://android.googlesource.com/platform/external/yaffs2.git 
137 git clone https://android.googlesource.com/platform/external/zlib.git 
138 git clone https://android.googlesource.com/platform/frameworks/base.git 
139 git clone https://android.googlesource.com/platform/frameworks/ex.git 
140 git clone https://android.googlesource.com/platform/frameworks/opt/carddav.git 
141 git clone https://android.googlesource.com/platform/frameworks/opt/com.google.android.git 
142 git clone https://android.googlesource.com/platform/frameworks/opt/com.google.android.googlelogin.git 
143 git clone https://android.googlesource.com/platform/frameworks/opt/emoji.git 
144 git clone https://android.googlesource.com/platform/frameworks/policies/base.git 
145 git clone https://android.googlesource.com/platform/hardware/alsa_sound.git 
146 git clone https://android.googlesource.com/platform/hardware/broadcom/wlan.git 
147 git clone https://android.googlesource.com/platform/hardware/htc/dream.git 
148 git clone https://android.googlesource.com/platform/hardware/libhardware.git 
149 git clone https://android.googlesource.com/platform/hardware/libhardware_legacy.git 
150 git clone https://android.googlesource.com/platform/hardware/msm7k.git 
151 git clone https://android.googlesource.com/platform/hardware/qcom/gps.git 
152 git clone https://android.googlesource.com/platform/hardware/qcom/media.git 
153 git clone https://android.googlesource.com/platform/hardware/ril.git 
154 git clone https://android.googlesource.com/platform/hardware/ti/omap3.git 
155 git clone https://android.googlesource.com/platform/hardware/ti/wlan.git 
156 git clone https://android.googlesource.com/platform/libcore.git 
157 git clone https://android.googlesource.com/platform/manifest.git 
158 git clone https://android.googlesource.com/platform/ndk.git 
159 git clone https://android.googlesource.com/platform/packages/apps/AccountsAndSyncSettings.git 
160 git clone https://android.googlesource.com/platform/packages/apps/AlarmClock.git 
161 git clone https://android.googlesource.com/platform/packages/apps/Bluetooth.git 
162 git clone https://android.googlesource.com/platform/packages/apps/Browser.git 
163 git clone https://android.googlesource.com/platform/packages/apps/Calculator.git 
164 git clone https://android.googlesource.com/platform/packages/apps/Calendar.git 
165 git clone https://android.googlesource.com/platform/packages/apps/Camera.git 
166 git clone https://android.googlesource.com/platform/packages/apps/CertInstaller.git 
167 git clone https://android.googlesource.com/platform/packages/apps/Contacts.git 
168 git clone https://android.googlesource.com/platform/packages/apps/DeskClock.git 
169 git clone https://android.googlesource.com/platform/packages/apps/Email.git 
170 git clone https://android.googlesource.com/platform/packages/apps/Gallery.git 
171 git clone https://android.googlesource.com/platform/packages/apps/Gallery3D.git 
172 git clone https://android.googlesource.com/platform/packages/apps/GlobalSearch.git 
173 git clone https://android.googlesource.com/platform/packages/apps/GoogleSearch.git 
174 git clone https://android.googlesource.com/platform/packages/apps/HTMLViewer.git 
175 git clone https://android.googlesource.com/platform/packages/apps/IM.git 
176 git clone https://android.googlesource.com/platform/packages/apps/Launcher.git 
177 git clone https://android.googlesource.com/platform/packages/apps/Launcher2.git 
178 git clone https://android.googlesource.com/platform/packages/apps/Mms.git 
179 git clone https://android.googlesource.com/platform/packages/apps/Music.git 
180 git clone https://android.googlesource.com/platform/packages/apps/Nfc.git 
181 git clone https://android.googlesource.com/platform/packages/apps/OTAProvisioningClient.git 
182 git clone https://android.googlesource.com/platform/packages/apps/PackageInstaller.git 
183 git clone https://android.googlesource.com/platform/packages/apps/Phone.git 
184 git clone https://android.googlesource.com/platform/packages/apps/Protips.git 
185 git clone https://android.googlesource.com/platform/packages/apps/Provision.git 
186 git clone https://android.googlesource.com/platform/packages/apps/QuickSearchBox.git 
187 git clone https://android.googlesource.com/platform/packages/apps/Settings.git 
188 git clone https://android.googlesource.com/platform/packages/apps/SoundRecorder.git 
189 git clone https://android.googlesource.com/platform/packages/apps/SpeechRecorder.git 
190 git clone https://android.googlesource.com/platform/packages/apps/Stk.git 
191 git clone https://android.googlesource.com/platform/packages/apps/Sync.git 
192 git clone https://android.googlesource.com/platform/packages/apps/Tag.git 
193 git clone https://android.googlesource.com/platform/packages/apps/Updater.git 
194 git clone https://android.googlesource.com/platform/packages/apps/VoiceDialer.git 
195 git clone https://android.googlesource.com/platform/packages/experimental.git 
196 git clone https://android.googlesource.com/platform/packages/inputmethods/LatinIME.git 
197 git clone https://android.googlesource.com/platform/packages/inputmethods/OpenWnn.git 
198 git clone https://android.googlesource.com/platform/packages/inputmethods/PinyinIME.git 
199 git clone https://android.googlesource.com/platform/packages/providers/ApplicationsProvider.git 
200 git clone https://android.googlesource.com/platform/packages/providers/CalendarProvider.git 
201 git clone https://android.googlesource.com/platform/packages/providers/ContactsProvider.git 
202 git clone https://android.googlesource.com/platform/packages/providers/DownloadProvider.git 
203 git clone https://android.googlesource.com/platform/packages/providers/DrmProvider.git 
204 git clone https://android.googlesource.com/platform/packages/providers/GoogleContactsProvider.git 
205 git clone https://android.googlesource.com/platform/packages/providers/GoogleSubscribedFeedsProvider.git 
206 git clone https://android.googlesource.com/platform/packages/providers/ImProvider.git 
207 git clone https://android.googlesource.com/platform/packages/providers/ManagementProvider.git 
208 git clone https://android.googlesource.com/platform/packages/providers/MediaProvider.git 
209 git clone https://android.googlesource.com/platform/packages/providers/TelephonyProvider.git 
210 git clone https://android.googlesource.com/platform/packages/providers/UserDictionaryProvider.git 
211 git clone https://android.googlesource.com/platform/packages/providers/WebSearchProvider.git 
212 git clone https://android.googlesource.com/platform/packages/services/EasService.git 
213 git clone https://android.googlesource.com/platform/packages/services/LockAndWipe.git 
214 git clone https://android.googlesource.com/platform/packages/wallpapers/Basic.git 
215 git clone https://android.googlesource.com/platform/packages/wallpapers/LivePicker.git 
216 git clone https://android.googlesource.com/platform/packages/wallpapers/MagicSmoke.git 
217 git clone https://android.googlesource.com/platform/packages/wallpapers/MusicVisualization.git 
218 git clone https://android.googlesource.com/platform/prebuilt.git 
219 git clone https://android.googlesource.com/platform/recovery.git 
220 git clone https://android.googlesource.com/platform/sdk.git 
221 git clone https://android.googlesource.com/platform/system/bluetooth.git 
222 git clone https://android.googlesource.com/platform/system/core.git 
223 git clone https://android.googlesource.com/platform/system/extras.git 
224 git clone https://android.googlesource.com/platform/system/media.git 
225 git clone https://android.googlesource.com/platform/system/netd.git 
226 git clone https://android.googlesource.com/platform/system/vold.git 
227 git clone https://android.googlesource.com/platform/system/wlan/broadcom.git 
228 git clone https://android.googlesource.com/platform/system/wlan/ti.git 
229 git clone https://android.googlesource.com/platform/tools/tradefederation.git 
230 git clone https://android.googlesource.com/platform/vendor/aosp.git 
231 git clone https://android.googlesource.com/platform/vendor/asus/eee_701.git 
232 git clone https://android.googlesource.com/platform/vendor/csr/unifi-105x.git 
233 git clone https://android.googlesource.com/platform/vendor/csr/unifi-60xx.git 
234 git clone https://android.googlesource.com/platform/vendor/htc/common-open.git 
235 git clone https://android.googlesource.com/platform/vendor/htc/dream-open.git 
236 git clone https://android.googlesource.com/platform/vendor/htc/prebuilt-open.git 
237 git clone https://android.googlesource.com/platform/vendor/htc/sapphire-open.git 
238 git clone https://android.googlesource.com/platform/vendor/pv-open.git 
239 git clone https://android.googlesource.com/platform/vendor/qcom/android-open.git 
240 git clone https://android.googlesource.com/platform/vendor/qcom/proprietary-open.git 
241 git clone https://android.googlesource.com/platform/vendor/qcom/surf.git 
242 git clone https://android.googlesource.com/platform/vendor/renesas/ms7724.git 
243 git clone https://android.googlesource.com/platform/vendor/sample.git 
244 git clone https://android.googlesource.com/platform/vendor/st-ericsson/u300.git 
245 git clone https://android.googlesource.com/toolchain/benchmark.git 
246 git clone https://android.googlesource.com/toolchain/binutils.git 
247 git clone https://android.googlesource.com/toolchain/build.git 
248 git clone https://android.googlesource.com/toolchain/gcc.git 
249 git clone https://android.googlesource.com/toolchain/gdb.git 
250 git clone https://android.googlesource.com/toolchain/gmp.git 
251 git clone https://android.googlesource.com/toolchain/gold.git 
252 git clone https://android.googlesource.com/toolchain/manifest.git 
253 git clone https://android.googlesource.com/toolchain/mpc.git 
254 git clone https://android.googlesource.com/toolchain/mpfr.git 
255 git clone https://android.googlesource.com/tools/android-issuetrackerredirect.git 
256 git clone https://android.googlesource.com/tools/executablewar.git 
257 git clone https://android.googlesource.com/tools/gerrit-contactstore.git 
258 git clone https://android.googlesource.com/tools/gerrit-keyapplet.git 
259 git clone https://android.googlesource.com/tools/gerrit.git 
260 git clone https://android.googlesource.com/tools/gimd.git 
261 git clone https://android.googlesource.com/tools/gwtexpui.git 
262 git clone https://android.googlesource.com/tools/gwtjsonrpc.git 
263 git clone https://android.googlesource.com/tools/gwtorm.git 
264 git clone https://android.googlesource.com/tools/manifest.git 
265 git clone https://android.googlesource.com/tools/protobuf.git 
266 git clone https://android.googlesource.com/tools/repo.git 
267 git clone https://android.googlesource.com/tools/test/manifest.git 
268 git clone https://android.googlesource.com/tools/test/project0.git
复制代码

 

问题

代码下载过程中,提示以下错误:

error: Failed connect to android.googlesource.com:443;Connection refused while accessinghttps://android.googlesource.com/a/platform/frameworks/base/info/refs

fatal: HTTP request failed

error: Cannot fetch platform/tools/motodev

error: Cannot fetch platform/frameworks/base

error: Cannot fetch platform/prebuilts/sdk

error: Exited sync due to fetch errors

解决方法:编辑windows/system32/etc/hosts文件

 

增加下面内容,保存(提前保存好)

173.194.72.82 www.googlesource.com
173.194.72.82 android.googlesource.com
203.208.46.172 cache.pack.google.com
59.24.3.173 cache.pack.google.com

Ref:

1 Downloading the Source Tree: http://source.android.com/source/downloading.html

2 android4.2源码下载过程: http://blog.csdn.net/lengxibo/article/details/8299888#reply

3  http://zhu.im/Android/   非常好的一个链接,里面1.6到4.2各个版本都有,如果懒得自己下载就直接在此下载


装载: http://www.cnblogs.com/akira90/archive/2013/03/08/2950631.html

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/知新_RL/article/detail/311762
推荐阅读
相关标签
  

闽ICP备14008679号