开发者

android apk resource

开发者 https://www.devze.com 2023-02-23 14:08 出处:网络
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.

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 package
  • res 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 code
  • resources.arsc file: the layout .xml files
0

精彩评论

暂无评论...
验证码 换一张
取 消