Prepare the environment
First, you need to download “repo” script from kernel.org
my blog (please, use double quotes around the URL address):
curl "http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo" > ~/bin/repo
chmod a+x ~/bin/repo
PATH=~/bin:$PATH
Download the Android repository
Now, you can safely download the repository, like so:
mkdir WORKING_DIRECTORY
cd WORKING_DIRECTORY
repo init -u git://codeaurora.org/platform/manifest.git -b gingerbread
repo sync
Reference: http://php.webtutor.pl/en/2011/09/05/kernel-org-hacked-how-to-get-android-repo/
First, you need to download “repo” script from kernel.org
my blog (please, use double quotes around the URL address):
curl "http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo" > ~/bin/repo
chmod a+x ~/bin/repo
PATH=~/bin:$PATH
Download the Android repository
Now, you can safely download the repository, like so:
mkdir WORKING_DIRECTORY
cd WORKING_DIRECTORY
repo init -u git://codeaurora.org/platform/manifest.git -b gingerbread
repo sync
Reference: http://php.webtutor.pl/en/2011/09/05/kernel-org-hacked-how-to-get-android-repo/
本文详细介绍了从Kernel.org下载并配置repo脚本的过程,以安全地下载Android源代码,包括创建工作目录、初始化仓库和同步代码。遵循教程,开发者可以轻松访问Android源代码,进行定制和开发。
297

被折叠的 条评论
为什么被折叠?



