库存的Android OS下载[AOSP]并同步问题 [英] Stock Android OS downloading [AOSP] and sync issue

查看:79
本文介绍了库存的Android OS下载[AOSP]并同步问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始下载AOSP时遇到了很多麻烦. 我遵循了Google官方网站的说明.

I have started my AOSP download with lot of hiccups. I followed the google official site instructions.

$ mkdir ~/aosp/bin

$ PATH=~/aosp/bin:$PATH

$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/aosp/bin/repo

$ chmod a+x ~/aosp/bin/repo

$ mkdir zero

$ cd zero

$ git config --global user.name "Your Name"

$ git config --global user.email "you@example.com

$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.4.2_r1

$ repo sync -j2 -f

截至目前,我的 .repo 文件夹为40GB,同步仍处于2天的状态.请任何人帮助我,我只需要KitKat OS. 任何人都可以启发我关于repo目录中的project-object和project目录.

As of now my .repo folder is 40GB and sync is still on its been 2 days. Please can anybody help me, all I need is KitKat OS. Also could anyone enlighten me about project-object and project directories in repo directory.

预先感谢

推荐答案

当您这样做:

 repo sync -j2 -f

您正在同步所有内容,这是巨大的.试试看:

You are synchronizing everything, which is huge. Give this a try:

 repo sync -j8 -c

这将仅同步初始化的清单,但清单没有那么大.当您不使用-m选项指定清单名称时,如果要查找default.xml,则可以在

This will only synch the initialized manifest, which is not as big. When you don't specify a manifest name with -m option, if falls to look for default.xml, which as I can see in https://android.googlesource.com/platform/manifest/+/refs/heads/android-4.4.2_r1 that's the manifest file for the branch you want.

-j指定所使用的线程,如今您至少可以尝试-j8.

Also -j specifies the threads used, nowadays you can give -j8 at least a try.

使用-f,您可以强制下载,这不会影响下载内容的大小,也不会影响速度.您可以根据需要将其删除.

With -f you force the download, this does not affect on the size of what you download, nor the speed. You can drop it if desired.

希望有帮助!

这篇关于库存的Android OS下载[AOSP]并同步问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆