Android source building process

137 views
Skip to first unread message

Le Tuan Anh

unread,
Mar 22, 2011, 10:48:30 PM3/22/11
to Android Building
Hi all,

I am working with project in which we need to modify (and check
result) in the internal class (i.e, BatteryStatsImpl). Every time we
change, we need to build again (use "make" command, create image, run
emulato etc..). The "make" build take a long time (i think because
it's related to the collection of battery statistic information of
every running application).

Do you have any idea to reduce the "make" time ? Should we build an
automation building process or are there any ways to re-build only
neccessay part ?

Thansk you Anh

Magnus Bäck

unread,
Mar 23, 2011, 12:29:37 PM3/23/11
to android-...@googlegroups.com
On Wednesday, March 23, 2011 at 03:48 CET,

You can rebuild just framework.jar, either

make framework

or even

make $OUT/system/framework/framework.jar

(plus whatever -j modifier you want, even though it probably won't make
that much of a difference in this case) and then push the file to the
device with adb (and probably reboot it afterwards). If you just make
minor changes in the implementation of the framework this should be safe.

--
Magnus B�ck Opinions are my own and do not necessarily
SW Configuration Manager represent the ones of my employer, etc.
Sony Ericsson

Samuel B. Quiring

unread,
Mar 23, 2011, 3:04:10 PM3/23/11
to android-...@googlegroups.com
Greetings,

We have built Gingerbread 2.3.3r1 and flashed it onto a Nexus S.
For the most part the phone is working great. We do have some
minor problems. Has anyone else seen these and, if so, do
you have a fix?

1. The Stay awake option, Settings > Applications > Development
> Stay awake, will not stay checked.

2. After we run monkey ("adb shell monkey 1") we can no longer
see the keyboard settings screen. That is, when we click:
Settings > Language & Keyboard > Android keyboard, nothing
happens.

3. Landscape/Portait issues:
a. It is very hard to switch apps into landscape mode, but
if I am patient and keep trying eventually it happens.
Once the phone is in landscape it is very hard to get
it into back into portrait.
b. Occasionally the phone will randomly switch into from
portrait into landscape -- while the phone is laying
on the desk and no one is touching it.
c. If I bring up the camera app and switch the phone from
portrait to landscape and vice versa, the icons along
the bottom (the bottom in portait mode) all rotate in
real time -- so at some level the phone is recognizing
the switch.

Thanks for any help.

-Sam

Le Tuan Anh

unread,
Mar 24, 2011, 3:54:59 AM3/24/11
to Android Building
Hi all,

We found a solution. Actually, we just need to build framework. So it
will not take much time. We do some simple steps.

1. Setup environment (i.e. source build/envi..., lunch 1)
2. Build framework (use ONE_SHOT_MAKEFILE for frameworks/base)
3. Build application
4. Update system image
5. Run simulator

Just put all steps in shell file
Reply all
Reply to author
Forward
0 new messages