Re: [android-building] download sizes

140 views
Skip to first unread message

Jean-Baptiste Queru

unread,
May 17, 2013, 4:28:39 PM5/17/13
to android-...@googlegroups.com
The second one might actually download more, specifically because 4.0.1 is older than our size-reduction efforts.

Which OS are you running on? Are you interested in building for all AOSP-supported devices, or only for one, or for none at all (emulator only, or other device)?

I'll try to get some numbers for you.

JBQ


On Fri, May 17, 2013 at 12:18 PM, bob smith <b...@coolfone.comze.com> wrote:
So, I am a noob to this, and I'm running out of disk space on a solid state drive during the download.

I read these download instructions in the docs:


To check out a branch other than "master", specify it with -b:

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

Can someone tell me if the second command downloads less stuff?

Anyone know roughly how much each command will download?

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/groups/opt_out.
 
 



--
Jean-Baptiste M. "JBQ" Queru
Technical Lead, Android Open Source Project, Google.

Questions sent directly to me that have no reason for being private will likely get ignored or forwarded to a public forum with no further warning.

Jean-Baptiste Queru

unread,
May 17, 2013, 9:05:26 PM5/17/13
to android-...@googlegroups.com
For 4.0.1, the download is about 6.4GB, you need about 11.1GB to store the download and the uncompressed source tree. You'll need another 12.8GB to compile.

For master, the download is about 8.4GB (my instinct was wrong, it's quite larger than 4.0.1), you need about 15.7GB to store the download and the uncompressed source tree. You'll need another 15.3GB to compile.

It's possible to shrink master quite a lot. E.g. if you are on linux and don't want the MacOS tools, if you only want to build for ARM targets, and don't want device-specific files for the AOSP-supported devices, you can add -g all,-notdefault,-darwin,-x86,-mips,-device to your repo init line. That will shrink the download by 3.8GB (to 4.6GB), and with the uncompressed tree the savings are 5.1GB (to 10.6GB).

Going back to gingerbread or froyo would use less space, but that might not be such a great option for other obvious reasons.

JBQ

Jean-Baptiste Queru

unread,
May 17, 2013, 9:35:08 PM5/17/13
to android-...@googlegroups.com
FWIW, froyo is 4.8GB of download, 7.2GB once the source tree is uncompressed, and you need an extra 3.9GB to build it.

JBQ
Message has been deleted

Jean-Baptiste Queru

unread,
May 20, 2013, 10:38:44 AM5/20/13
to android-...@googlegroups.com
Well, you can browse online as well at https://android.googlesource.com/

That being said, if you don't intend to compile, you don't need any of the tools at all.

repo init -u [...] -b master -g all,-notdefault,-device,-linux,-darwin will skip the device-specific files and the prebuilt toolchains.

Note that you don't have to download all the source tree if you want to browse specific parts. You can use "repo sync <project name>", e.g. repo sync platform/frameworks/base.

JBQ


On Mon, May 20, 2013 at 7:25 AM, bob smith <b...@coolfone.comze.com> wrote:
Right now, I actually just wanted to browse the code.

I don't know of a way to do it other than to download the whole thing.

Thanks.
Message has been deleted

Paul Beeler

unread,
May 20, 2013, 10:44:23 AM5/20/13
to android-...@googlegroups.com

Hi JBQ,
Is it possible to browse source files without just looking at the commit history?  This is something that always seemed a little confusing to me about the link you provided.  Thank you.

Jean-Baptiste Queru

unread,
May 20, 2013, 11:33:32 AM5/20/13
to android-...@googlegroups.com
Yes, it is. From e.g. https://android.googlesource.com/platform/frameworks/base/ you can click any branch or tag on the left to browse the matching source tree.

JBQ

Mateor

unread,
May 20, 2013, 11:29:46 AM5/20/13
to android-...@googlegroups.com
On 05/20/2013 09:44 AM, Paul Beeler wrote:

Hi JBQ,
Is it possible to browse source files without just looking at the commit history?  This is something that always seemed a little confusing to me about the link you provided.  Thank you.



Go to the branches...you can see the projects in full there. It is not the most intuitive setup I have ever seen. https://android.googlesource.com/device/asus/grouper/+/master

Additionally, the projects are mirrored at github.com/android.
https://github.com/android

Jean-Baptiste Queru

unread,
May 20, 2013, 11:37:04 AM5/20/13
to android-...@googlegroups.com
From there, select an individual project (e.g. platform/frameworks/base - https://android.googlesource.com/platform/frameworks/base/) then the branch or tag you want (e.g. master - https://android.googlesource.com/platform/frameworks/base/+/master) and from there you can browser files and directories for that branch/tag (e.g. the frameworks's top-level makefile, https://android.googlesource.com/platform/frameworks/base/+/master/Android.mk)

JBQ


On Mon, May 20, 2013 at 8:23 AM, bob smith <b...@coolfone.comze.com> wrote:
Can I browse the actual source on the web?


I don't see a mechanism for viewing individual source code files at https://android.googlesource.com/

Thanks.
Reply all
Reply to author
Forward
0 new messages