Download the android source from China mirrors
Previously all from Google's site download synchronized updates, but now has a domestic mirror site is much better
Help Https://wiki.tuna.tsinghua.edu.cn/MirrorUsage/android
Warehouse Address:
Git://aosp.tuna.tsinghua.edu.cn/android/
Using a browser to access:
Http://aosp.tuna.tsinghua.edu.cn/android/
Tsinghua University Android Source mirror station directory structure map
First, download Android source code
1. Download repo
git://aosp.tuna.tsinghua.edu.cn/android/git-repo.git/
2. Modify Repo
Google's address
Repo_url = ' Https://gerrit.googlesource.com/git-repo '
Change to Tsinghua University address
Repo_url = ' Git://aosp.tuna.tsinghua.edu.cn/android/git-repo '
3. Download manifest
Google's address
$ repo Init-u https://android.googlesource.com/platform/manifest
Change to Tsinghua University address
$ repo Init-u git://aosp.tuna.tsinghua.edu.cn/android/platform/manifest
4. Synchronous source Code
Still the same as before.
5. Replace the existing AOSP source code remote
If you have previously obtained the source of the AOSP by some means, but you want to be in the future through tuna synchronization, only need to be in the . Repo/manifest.xml
<remote name= "Aosp" fetch= "..." review= "https://android-review.googlesource.com/"/>
Change to the following code:
<remote name= "Aosp" fetch= "git://aosp.tuna.tsinghua.edu.cn/android/" review= " https://android-review.googlesource.com/"/>
This method can also be used to synchronize part of the code from tuna while synchronizing the CyanogenMod code
Second, download update android Android SDK
Mirror site: http://mirrors.neusoft.edu.cn/
Configuration steps
- Launch Android SDK Manager, open the main interface, select "tools", "options...", pop up the "Android SDK manager-settings" window;
- In the "Android SDK manager-settings" window, fill in and in the "http proxy server" and "http proxy port" input
mirrors.neusoft.edu.cn
boxes 80
, and select "force https://... Sources to is fetched using http://..."check box. Click the "close" button to close the "Android SDK manager-settings" window and return to the main screen after Setup is complete.
- Select "packages", "reload".
Sync, update, download Android Source & SDK from the domestic mirror station