美文网首页
Android notes

Android notes

作者: alex_wood | 来源:发表于2017-06-20 18:50 被阅读0次
  • The Android operating system is a multi-user Linux system in which each app is a different user.

  • By default, the system assigns each app a unique Linux user ID (the ID is used only by the system and is unknown to the app). The system sets permissions for all the files in an app so that only the user ID assigned to that app can access them.

  • Each process has its own virtual machine (VM), so an app's code runs in isolation from other apps.

  • By default, every app runs in its own Linux process. The Android system starts the process when any of the app's components need to be executed, and then shuts down the process when it's no longer needed or when the system must recover memory for other apps.

  • It's possible to arrange for two apps to share the same Linux user ID, in which case they are able to access each other's files. To conserve system resources, apps with the same user ID can also arrange to run in the same Linux process and share the same VM. The apps must also be signed with the same certificate.

  • There are four different types of app components:
    Activities.
    Services.
    Broadcast receivers.
    Content providers.

相关文章

网友评论

      本文标题:Android notes

      本文链接:https://www.haomeiwen.com/subject/xafaqxtx.html