(0)java
Application Fundamentals安全
Android applications are written in the Java programming language. The Android SDK tools compile the code—along with any data and resource files—into an Android package, an archive file with an .apk
suffix. All the code in a single .apk
file is considered to be one application and is the file that Android-powered devices use to install the application.app
应用程序原理ide
Android 应用程序是用java语言写的。Android SDK工具把代码数据和资源文件都编译成一个以.apk为后缀的Android存档文件包。应用程序的全部代码都在一个.apk文件里,而且它能够安装在Android平台。工具
Once installed on a device, each Android application lives in its own security sandbox: 操作系统
每一个安装在设备上的应用程序都运行在它本身的安全区间内:code
由于Android操做系统是一个多用户的操做系统,因此每一个应用程序都是一个不一样的用户。component
默认的,系统分配给每一个应用程序一个惟一的Linux用户ID(ID只对系统使用,对应用程序不可见)。系统在一个应用程序内为全部的文件设置了权限,因此只有被分配了用户ID的应用程序才能访问它们。进程
每一个进程有本身的虚拟机,因此每一个应用程序的运行都是相互隔离的。内存
默认的,每一个应用程序都在本身的Linux进程下运行。当应用程序的组件须要执行的时候,Android开启了进程,当再也不须要,或者必须为其余应用程序回收内存时,关闭了进程。
未完待续。。。