Build just apk from AOSP

5,705 views
Skip to first unread message

Trystan

unread,
Oct 25, 2011, 7:23:19 PM10/25/11
to Android Building
Hi,

Is it possible to build just a application and generate the apk file
without have to build the complete source ?

I mean, I want to do a very small change in Email.apk but do not want
to build the complete source code to only get that....

Is it possible somehow to do that? And how to do ?

Thanks,
-Thiago

Ying Wang

unread,
Oct 25, 2011, 8:38:35 PM10/25/11
to android-...@googlegroups.com
$ make -j showcommands Email
It will build Email and anything it depends on.
In the android build system, you can always make individual modules by "make <module_names>".
The module names mean "LOCAL_MODULE" or "LOCAL_PACKAGE_NAME" in the Android.mks.


--
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

mizmit1222

unread,
Oct 25, 2011, 9:49:15 PM10/25/11
to Android Building
Hi,

$ cd your/android/repo
$ source build/envsetup.sh
$ cd your/project
$ mm

log message shows you where the apk goes.
Both apk and odex may need to be installed.

Trystan

unread,
Oct 26, 2011, 4:26:18 PM10/26/11
to Android Building
Thank you guys !

Will try that today !

iguinea

unread,
Nov 2, 2011, 5:37:07 PM11/2/11
to Android Building
Hi guys, i have another question about this.
when you finish compiling this app or another modules, how do you
rebuild system image without the need of rebuilding the complete
source code?

thanks in advance

Jean-Baptiste Queru

unread,
Nov 4, 2011, 12:44:47 PM11/4/11
to android-...@googlegroups.com
There's no mechanism for that out of the box. You'd need to have
prebuilt versions of all the files that go on the system image, and
(at least at Google) we don't have those and we build things from
source.

It's possible in theory, though, if you know exactly every files that
gets installed and handle each of those as a prebuilt.

JBQ

> --
> 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
>

--
Jean-Baptiste M. "JBQ" Queru
Software Engineer, 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.

Trystan

unread,
Dec 20, 2011, 6:17:21 AM12/20/11
to Android Building
Hi,
Is this still valide for build Email.apk for ICS (4.0.3) ?
I tried it and it seems to be building the complete system... Is it
normal (is it the dependencies ?) ?
I tried the 'mm' command, but it fails, I guess because the other
dependencies ?
Thanks !

Jean-Baptiste Queru

unread,
Dec 20, 2011, 11:03:57 AM12/20/11
to android-...@googlegroups.com
It's not building the complete system, just what's necessary to build
the Email app (which includes building the entire framework).

JBQ

--

Reply all
Reply to author
Forward
0 new messages