(1)安全
In this way, the Android system implements the principle of least privilege. That is, each application, by default, has access only to the components that it requires to do its work and no more. This creates a very secure environment in which an application cannot access parts of the system for which it is not given permission.app
在这种方式下,Android系统实现了最小权限原则。也就是说,一个应用程序,默认状况下只能访问它运行须要的组件。这就建立了一个很是安全的环境,一个应用程序在没有权限的状况下没法访问系统的其余模块。ui
However, there are ways for an application to share data with other applications and for an application to access system services:this
然而,也有一些容许应用程序共享数据的方法,和容许应用程序访问系统服务的方法:component
能够安排两个应用程序共享相同的Linux用户ID,这样他们就能够相互访问文件。为了保护系统资源,相同用户ID的应用程序被安排在相同Linux进程里,共享相同的虚拟机。进程
应用程序能够经过申请权限访问设备数据,例如用户联系人,SMS消息,挂载的存储设备(sd 卡),照相机,蓝牙,等等。全部的应用程序权限必须在安装的时候被用户设定。ip