virtual machine - What are ODEX files in Android? -


after android apps installed, found change odex file (not apk) in smartphone. how happens? can teach me, interested it.

the blog article right, not complete. have full understanding of odex file does, have understand little how application files (apk) work.

applications glorified zip archives. java code stored in file called classes.dex , file parsed dalvik jvm , cache of processed classes.dex file stored in phone's dalvik cache.

an odex pre-processed version of application's classes.dex execution-ready dalvik. when application odexed, classes.dex removed apk archive , not write dalvik cache. application not odexed ends 2 copies of classes.dex file--the packaged 1 in apk, , processed 1 in dalvik cache. takes little longer launch first time since dalvik has extract , process classes.dex file.

if building custom rom, it's idea odex both framework jar files , stock apps in order maximize internal storage space user-installed apps. if want theme, deodex -> apply theme -> reodex -> release.

to deodex, use small , baksmali:

http://code.google.com/p/smali/wiki/deodexinstructions


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -