[...]
> 1> Add custom features to a system app, and make a standalone,
> distributable .Apk, with a different app name/credentials/package, so
> that it does not try to replace / update the existing system app. In
> doing so, I've come across a couple hurdles - some
>
> a> Apps based on system app are built as .apks and .odex files. This
> kind of app packaging is NOT distributable, unless you create custom
> firmware for the app. I want a regular .apk with classes.dex inside
> the Apk. For instance, if I want to make myMail, based on the system
> email application, HOW can I make a standalone myMail.apk which is
> easily distributable?
Dex pre-optimization (producing the .odex files) is IIRC only performed
when you build PRODUCT-foo-user. If you instead choose the foo-user
configuration with lunch or choosecombo I believe this won't happen.
Alternatively, build with DISABLE_DEXPREOPT=false.
[...]
--
Magnus B�ck Opinions are my own and do not necessarily
SW Configuration Manager represent the ones of my employer, etc.
Sony Ericsson
> On Nov 14, 11:58�pm, Magnus B�ck <magnus.b...@sonyericsson.com> wrote:
>
> > Dex pre-optimization (producing the .odex files) is IIRC only
> > performed when you build PRODUCT-foo-user. If you instead choose the
> > foo-user configuration with lunch or choosecombo I believe this
> > won't happen. Alternatively, build with DISABLE_DEXPREOPT=false.
>
> I am a newbie to building Android, and the options for building are
> very poorly documented. Would you be kind enough to give me a little
> more detail on what files, and what stage of the build process I need
> to modify.
The makefile variable DISABLE_DEXPREOPT needs to be set to false. This
can e.g. be done when you call make, like this:
make -j5 DISABLE_DEXPREOPT=false
> Do I need to rebuild my entire source tree with new options?
No, but the apk and jar packaging needs to be redone. The following will
probably do:
rm -rf $OUT/obj/APPS $OUT/obj/JAVA_LIBRARIES $OUT/system/app
> The makefile variable DISABLE_DEXPREOPT needs to be set to false. This
> can e.g. be done when you call make, like this:
>
> make -j5 DISABLE_DEXPREOPT=false
Gah, should of course be:
make -j5 DISABLE_DEXPREOPT=true
[...]