I've tried this, but it doesn't seem to work.
As far as I'm missing something, after downloading the source (master)
and preparing the vendor files, I run $make -j4 otapackage
WITH_DEXPREOPT=true, but I don't see it having any effect.
I'm building on Ubuntu 10.04 x64. I noticed on
core.mk that
WITH_DEXPREOPT is forcibly disabled, and even after correcting that, I
get no odex on my build.
Any ideas?
On Oct 23, 1:10 pm, Ying Wang <
wangy...@android.com> wrote:
> For each apk (or jar for java library) there will be a Dalvik VM running on
> the build host to do the pre-optimization and generate the .odex file.
> The .odex file will get installed next to the .apk (or .jar) file on the
> device.
> The build command will keep the same:
> $make WITH_DEXPREOPT=true
>
> 2010/10/22 Ernst Sjöstrand <
ern...@gmail.com>
>
> > "We will soon switch to a host-dex based dexopt tool, which does not rely
> > on the emulator."
>
> > This sounds wonderful, the current system has given me some headaches at
> > $DAYJOB!
> > Can you give any more info on how that system will work?
>
> > Best Regards
> > //Ernst Sjöstrand
>
> > On Thu, Oct 21, 2010 at 02:20, Ying Wang <
wangy...@android.com> wrote:
>
> >> You can build the dex-preopted files by:
> >> $make WITH_DEXPREOPT=true
> >> Dexpreopt can only be done in Linux dev environment.
> >> Note that it may fail to build, because currently dexpreopt has to been
> >> run in the emulator, which has some bug.
> >> We will soon switch to a host-dex based dexopt tool, which does not rely
> >> on the emulator.
>
> >> On Wed, Oct 20, 2010 at 5:30 AM, Ravindranath Dammalapati <
> >>
ravindranath.dammalap...@gmail.com> wrote:
>
> >>> From Source:
> >>>
http://android.git.kernel.org/?p=platform/dalvik.git;a=blob_plain;f=d...
>
> >>> """
> >>> here are at least three different ways to create a "prepared" DEX
> >>> file, sometimes known as "ODEX" (for Optimized DEX):
>
> >>> 1. The VM does it "just in time". The output goes into a special
> >>> dalvik-cache directory. This works on the desktop and engineering-only
> >>> device builds where the permissions on the dalvik-cache directory are
> >>> not restricted. On production devices, this is not allowed.
> >>> 2. The system installer does it when an application is first added.
> >>> It has the privileges required to write to dalvik-cache.
> >>> 3. The build system does it ahead of time. The relevant jar / apk
> >>> files are present, but the classes.dex is stripped out. The optimized
> >>> DEX is stored next to the original zip archive, not in dalvik-cache,
> >>> and is part of the system image.
>
> >>> """
>
> >>> Can some one help with the procedure to create ODEX files using third
> >>> procedure i.e Build system?
>
> >>> --
> >>> 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<
android-building%2Bunsu...@googlegroups.com>
> >>
android-buildi...@googlegroups.com<
android-building%2Bunsu...@googlegroups.com>
> >
android-buildi...@googlegroups.com<
android-building%2Bunsu...@googlegroups.com>