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:
Comments
Post a Comment