Search code examples
androidubuntuandroid-source

Android sourcecode download: Did I download one file multiple times?


I am downloading the source code of android via Ubuntu 12.04. And the manifest file is:

<default revision="refs/tags/android-4.0.1_r1" remote="aosp" sync-j="4"/>

So I am downloading android 4.0.1. But the things is I have downloaded 15G, but it is not finished yet...

There is some wrong with the university's network, it break down sometimes. Everytime it breaks down, the download stuck like this(at 88%): enter image description here

It just stucks, so I need to stop it (ctrl+z) and repo sync again. And it will begin like this: enter image description here

Because the stupid network, it stops at there(86%) this time: enter image description here

5893, 86% VS 6005, 88%. It seems that it did less work this time than last time.. But the project file(it is hidden) is getting bigger as it downloaded, it is almost 16.4G now.

So I am really worried, did I just download one file multiple times?


Solution

  • AOSP is huge, and repo will do a good job of making sure all your projects are kept in sync. You may be downloading the same files multiple times, but the total space of the workspace will be correct at the end. My personal workspace can be anywhere between 25-40 gigs depending on my version of AOSP i am building for, and with my compiled files can go up to 80-90 gigs.

    The problem with the download however is likely due to repo barraging your DNS server and you are ultimately getting denied. You might want to try using the Google DNS if that is possible for you on your network.