Recently I watch a video about android app framework.(google I/O 2008)
In the video, the host says that an apk is a collection of component. My question is, when I'm installing an apk,开发者_JAVA技巧 which directory(/data??) will the resource(such as class.dex and other resources file) be stored?The .apk
files themselves are stored in /data/app
, while the .dex
files in /data/dalvik-cache
Addition: App data is stored in /data/data/[PAKAGE_NAME]
If you are curious about what's a .apk
file: it's just a regular zip
file!
As such, you can open it with 7-zip or winrar and look inside. You will find:
META-INF
folder: that's the signature of the packageres
folder: where you will find some.xml
and all the.png
files (and possibly.mp3
or whatever the package uses). Note that those.xml
files will be already compiled, not human-readable.AndroidManifest.xml
:as the name implies, the manifest.classes.dex
file: all the java classes compiled to byte coderesources.arsc
file: the layout.xml
files
精彩评论