For the record, I just ran these download commands @ my server, here are results (perhaps with some 1-2% variation accounting for other traffic).
Recommended download: - repo init -u https://android.googlesource.com/platform/manifest -b android-10.0.0_r39 --depth 1 --groups=all,-darwin,-mips && repo sync Download size ~18.7 GB, .repo folder used up 17 GB disk space (network transfer overhead is below 2%). Using master branch: - repo init -u https://android.googlesource.com/platform/manifest --depth 1 --groups=all,-darwin,-mips && repo sync Download size ~18.2 GB, .repo folder used up 18 GB disk space. Full checkout: - repo init -u https://android.googlesource.com/platform/manifest -b android-10.0.0_r39 && repo sync Download size ~46.0 GB, .repo folder used up 45 GB disk space. (Note that when downloading with --depth 1, you can fetch full git history for specific project anytime later by running variation of git --unshallow inside specific project dir) On Thu, Jul 2, 2020 at 4:07 PM Igor Kukushkin <[email protected]> wrote: > Run it with --depth 1, like: > repo init -u https://android.googlesource.com/platform/manifest -b > android-10.0.0_r39 --depth 1 > > (note use of -b, most likely you don't want to clone master branch as well) > > Then you can also omit fetching some parts of repository with --groups, > e.g. if you're building AOSP on Linux, you probably don't want to download > OSX toolchain, and likely don't need stuff for MIPS architecture (emulator, > etc): > repo init -u https://android.googlesource.com/platform/manifest -b > android-10.0.0_r39 --depth 1 --groups=all,-darwin,-mips > (you can get a list of groups from .repo/**.xml from prior attempts , make > sure to not omit stuff in important groups such as pdk, etc) > > Total download size this way will be 14..18 GB with some transfer > overhead. Full git history is likely over 50+gb, and it'll take 3-5 more GB > to get kernel source (not included) and device binaries > > You can also rent a cloud server instance (paid per use instance with > enough storage space would cost around a dollar), fetch repo, zip it and > download over http, > https://forum.xda-developers.com/chef-central/android/guide-how-to-build-rom-google-cloud-t3360430 > for starters (please don't forget to shut down and delete all instances, > disks and backups when done). > > On Wed, Jul 1, 2020 at 9:25 PM Sunder Rawat <[email protected]> > wrote: > >> I want to download android open source code from >> https://source.android.com/setup/build/downloading but my internet >> connection is slow so can you give me estimate of how much internet is data >> i need for downloading all aosp from repo sync command. I want to download >> latest master branch. >> >> repo init -u https://android.googlesource.com/platform/manifes >> >> repo init -u https://android.googlesource.com/platform/manifes >> >> repo init -u https://android.googlesource.com/platform/manifest >> >> repo init -u https://android.googlesource.com/platform/manifest >> >> repo init -u https://android.googlesource.com/platform/manifest >> >> repo init -u https://android.googlesource.com/platform/manifest >> >> -- >> -- >> You received this message because you are subscribed to the "Android >> Building" mailing list. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/android-building?hl=en >> >> --- >> You received this message because you are subscribed to the Google Groups >> "Android Building" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/android-building/5ccf88c6-811c-49b9-93c0-415960b87512o%40googlegroups.com >> <https://groups.google.com/d/msgid/android-building/5ccf88c6-811c-49b9-93c0-415960b87512o%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- -- You received this message because you are subscribed to the "Android Building" mailing list. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-building?hl=en --- You received this message because you are subscribed to the Google Groups "Android Building" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/CAK-rsLKTZx5CvwU59euqnDXZ7ANP_Q4JWiGhOT5uRNQiT_QoRQ%40mail.gmail.com.
