Get android source code from github mirror

vmlinz posted @ Mon, 10 Oct 2011 23:59:18 +0800 in Misc with tags Android github repo AOSP , 12217 readers

How to get android source code from github mirror

Get android source code using repo

Since the android.git.kernel.org is down now, so we can't get android source
code from there now. But AOSP has a mirror on github, so we can try to get
android source code there.

Get repo

#cd ~/your_android_dir
#curl https://github.com/android/tools_repo/blob/master/repo > ~/bin/repo
#chmod a+x ~/bin/repo

Init repo

#repo init --repo-url=git://github.com/android/tools_repo.git -u \
git://github.com/android/platform_manifest.git
NOTE:repo-url refers to repo tool url, and -u specifies android manifests

Sync repo

#repo sync -j16

Congratulations

Now you can work with AOSP
Avatar_small
snakehead97 said:
Mon, 11 Feb 2013 05:04:20 +0800

This repo sync -j16 It will sync everything I need for Android 4.1 or from android4.1 and above. (sine the number 16 reminds me of the revision 16 of the SDK which is Jelly bean). So will it sync android 4.1, 4.1 and 4.2, or every android


Login *


loading captcha image...
(type the code from the image)
or Ctrl+Enter