http://www.ohchr.org。 答案现在是10年? 虽然总体情况可能仍然准确,但细节已明显改变(ART而不是Dalvik,动态与静态许可等)。 食盐。
Some basics
The .apk
-file
<代码>.apk -file is not magical at all. 它只是代表安康申请内容的一批档案。 如果你在档案库(如7Zip)打开,你可以浏览并提取内容。
Android is Linux
基本的安乐器系统是含水层系统。 安德列使用一个在节能和一些速度改进方面具有某些额外功能的定制的六氯环己烷舱。 氯乙烯装置的内部储存采用YAFFS2-filesystem,其中完全标明了类似六氯环己烷的准入概念。
旧的档案系统可能会因制造或安静电而有所不同。 新装置经常使用<代码>ext3,而三星则使用自己的档案系统:RFS。
这是沙箱系统的一个重要方面,该系统是安永使用的。
Compiling applications
What happens to the .java
-files?
首先,这些汇编由通常的 Java汇编者汇编。 在编集之后(到.que>.m
-files),dx
-tool from DDK 然后将“normal” java-classes改为Dalvik-Bytecode。
“特殊”java-code”随后由德国航天局(Dalvik虚拟机器)解释,后者基于开放源JRE执行Apachelib。
<>Update: 在新版本的Anders,当使用时,即可使用转换/传输步骤。 这样,<代码>.java文档就直接编入<代码>dx格式。
此外,自第4.4版(KitKat)以来,新网站ART 运行,正式取代Lalvik(Lollipop)。
What happens to the resources i put into the /asset
-directory?
安德列提供<代码>/assets-directory,以添加一些双向原始档案(例如:Kingk数据库)。 编入该名录的文件:re not汇编或优化。
If you put your files into this directory, this is the kind of behavior you would expect from Android.
What happens to the resources i put into the /res/raw
-directory?
Like the /assets
-directory, you can also put binary (or other) raw-files in here (e.g. HTML-files for the Help-page). These files are compiled/optimized (if possible).
What happens to the Manifest and the other XML-files?
安德列斯-Manifest和其他XML-files(Layouts, Strings等)储存起来,并“兼容”成双XML-format。 这是快速优化。
The Sandbox
从安乐施会的角度来看,单一申请方拥有:
- it s own process,
- it s own OS-User (like on Linux),
- it s own DVM,
- it s own place in the heap and
- it s own place on the filesystem.
因此,每台乐器都有自己的用户,在内部储存中拥有进入该装置的适当权利(受标准立体文档系统权利-管理的保护),并且拥有自己的DVD-处理程序(从申请之外获取)。
为使申请有可能离开Sandnet(例如连接互联网),使用在Manifest宣布的许可。
Steps during the installation
因此,从上述解释来看,应当明确安乐施会的安装情况:
- The new user for the Application is created.
- With this new users rights, the Applications directory in the internal storage is created.
- The contents of the
.apk
-file are being extracted there.
- The Android-Manifest is parsed and the declared
intent-filter
s are registered (e.g. the android.intent.category.LAUNCHER
-filter for the applications standard entry point).
- Now the application is ready for it s first launch.