首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

adroid app权限兑现方式

2012-07-22 
adroid app权限实现方式工作找到了,没事玩玩android。看到文档里这样写:Once installed on a device, each

adroid app权限实现方式

工作找到了,没事玩玩android。看到文档里这样写:

Once installed on a device, each Android application lives in its own security sandbox:

    The Android operating system is a multi-user Linux system in which each application is adifferent user.By default, the system assigns each application a unique Linux user ID (the ID is used only bythe system and is unknown to the application). The system sets permissions for all the files in anapplication so that only the user ID assigned to that application can access them. Each process has its own virtual machine (VM), so an application's code runs in isolation fromother applications.
  • By default, every application runs in its own Linux process. Android starts the process when anyof the application's components need to be executed, then shuts down the process when it's no longerneeded or when the system must recover memory for other applications.

    这段很有意思。讲的是每个安卓app都有权限控制。我记得在安装每个app的时候,的确有一个授权列表。是如何实现的呢?

    每个app都有一个唯一的user id每个user id有自己的权限设置每个进程都对应一个虚拟机每个app对应一个进程,也就是一个虚拟机

    ?

    以上就是app权限的实现方式,全部依赖linux 操作系统的实现。很懒,很好。

热点排行