On Dec 13, 5:27 pm, "[email protected]" <[email protected]> wrote:
> I've done some research and found very little information on these
> things. What are they? If I have an app with just an APK and ODEX and
> no classes.dex, can the ODEX be converted backward? I know that they
> are somehow optimized/cached. Is it possible to use them instead of
> normal classes.dex in bundling up apk files?

"Normal" apps have an APK with a manifest, resources, and a
"classes.dex" inside.  The classes.dex is optimized by the package
manager on first use, and ends up in /data/dalvik-cache/.

"System" apps have the DEX optimization performed ahead of time.  The
resulting ".odex" file is stored next to the APK, the classes.dex is
removed from the APK, and the whole thing works without having to put
more stuff in your /data partition.

The optimized DEX files cannot easily be converted back to unoptimized
DEX, and I'm not sure there's any benefit in doing so.  Both kinds of
DEX files can be examined with "dexdump".

More detail can be found in dalvik/docs/dexopt.html in the source
tree, or on the web at:
  
http://android.git.kernel.org/?p=platform/dalvik.git;a=blob_plain;f=docs/dexopt.html;hb=HEAD

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to