Actual size of download when 'repo sync' is invoked

5,556 views
Skip to first unread message

Ahmad Ishtiaque

unread,
Dec 9, 2014, 12:15:09 PM12/9/14
to android-...@googlegroups.com
Hi guys!

This is the first time I have taken an Android build project in hand and I want to port the resulting build into my device. As a start, I have started downloading the source following source.android.com . It was on the same website that I saw the source size should be approximately 8.5GB in size. However, my .repo folder in the working directory is already 11.0GB in size(!?!?) Is this normal? I just followed whatever was stated in the http://source.android.com/source/downloading.html page.

Also, is there any way to find out how much of cloning is actually left?

Thank you for any reply.

Ishtiaque

Glenn Kasten

unread,
Dec 9, 2014, 2:22:22 PM12/9/14
to android-...@googlegroups.com
It looks like that number is about 2 years old.  I'll ask someone to review this section for recent numbers.

carlo

unread,
Dec 9, 2014, 2:27:54 PM12/9/14
to android-...@googlegroups.com
after you run repo init -u https://android.googlesource.com/platform/manifest -b BRANCH_NAME, you can edit your local manifest to drop some repos you don't want to be fetched (devices specific repos, documentation...)

Ahmad Ishtiaque

unread,
Dec 9, 2014, 10:07:31 PM12/9/14
to android-...@googlegroups.com
carlo: I have absolutely no idea which repo will be useful for building and which repo will not... But as it turns out I found out that the folder ~WORKING_DI.repo/project-objects/platform folder is the largest in size (13.9GB)

Also, I'm cloning the master branch... Is it huge? How do I know?
Size isn't the problem for me actually, I just want to know how large the repo exactly is.

Thanks

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
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 android-buildi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Ahmed Ishtiaque

raulf tang

unread,
Dec 10, 2014, 2:14:48 AM12/10/14
to android-...@googlegroups.com
Hi Ahmad Ishtiaque,

Is 11.0GB your final size? I have tried this several times and each time I got to end up with disk space full(I have 40GB+ free disk space).

I have extended my virtual Ubuntu's disk space from 40GB to 60GB and not yet solved the problem.

Any suggests?

Thanks

Hagen

unread,
Dec 10, 2014, 10:01:45 AM12/10/14
to android-...@googlegroups.com
OK, here is some current data:

Google AOSP master branch:
- Google AOSP - .repo alone: ~31GiB (almost all in .repo/project-objects)
- Google AOSP "out" directory - none
  (Currently I don't have an "out" directory, but this is anyway device and setting dependent.)
- Google AOSP complete tree (includes .repo): ~46GiB

Linaro PandaBoard kk-44 (KitKat 4.4.4):
- Linaro kk-44 for pandaboard - .repo alone: ~11GiB
- Linaro kk-44 - panda-eng "out" alone: ~25GiB
- Linaro kk-44 complete tree (includes out and .repo): ~48GiB
  (NB: Linaro also includes u-boot and the Linux kernel!)

Hope this helps.

Glenn Kasten

unread,
Dec 10, 2014, 1:22:37 PM12/10/14
to android-...@googlegroups.com
Hagen or anyone else with current data ...
      we have an updated draft of the documentation in review now at this CL
If you would like to review it for accuracy before it is published, please see
the CL and reply there with your comments.
Thanks

joy grace

unread,
Dec 11, 2014, 9:42:44 PM12/11/14
to android-...@googlegroups.com
Hi Ahmad,
After u run "repo init ...... -b BRANCH_NAME" , try below options while syncing
repo sync -qcj8 (with the “-c” flag  flag, repo will only download the revision (branch) that is specified in the manifest, not all the branches that are on the remote server. It will thus save us quite some space, and again it will take less time to download.)

repo sync --no-tags -qcj8  (u can try the no-tags option as well)

Also as Carlo suggested, you can only sync folders of your choice instead of all.
Hope this info is helpful.

Glenn Kasten

unread,
Dec 12, 2014, 10:23:55 AM12/12/14
to android-...@googlegroups.com
New numbers are now published at http://source.android.com/source/building.html
Thanks to everyone for reporting the error and for the corrections.

Hagen

unread,
Dec 17, 2014, 8:41:00 AM12/17/14
to android-...@googlegroups.com
On Friday, December 12, 2014 4:23:55 PM UTC+1, Glenn Kasten wrote:
New numbers are now published at http://source.android.com/source/building.html
Thanks to everyone for reporting the error and for the corrections.

Looks good. - Many thanks, Glenn!

[Sorry for the late reply - too busy supporting people at work to check Groups (and the group-related Gmail account).]

Les Potter

unread,
Dec 20, 2017, 11:43:01 AM12/20/17
to Android Building
Sorry for the late info, but I figure that since it can't be found anywhere else, this would be an appropriate place.

Just used "repo sync" to pull "master" of AOSP

$du -s -BM /developer/master
59465M  /developer/master

Samantha Priyadarshana

unread,
Feb 7, 2020, 2:13:56 PM2/7/20
to Android Building
For reference :
Just cloned a mirror today;
$ du -sh ./mirror
351G    ./mirror

Reply all
Reply to author
Forward
0 new messages