Android security mechanism
: Address
The Android app is executed in a sandbox. This sandbox is implemented based on the user ID (UID) and user group ID (GID) provided by the Linux kernel.
Android apps during installation, the installation service Packagemanagerservice assigns them a unique UID and GID, as well as the permissions requested by the application. Give the other GID. With these UID and GID, the application will only be able to access specific files, usually just to access the files you create. In addition, when the Android application calls the sensitive API, the system checks that it does not request the appropriate permissions when it is installed. Assuming no application is possible. Then the interview will be rejected. For applications that have root privileges. are not limited by the sandbox above. In addition, root-privileged applications can also be injected into other application processes through Linux ptrace, as well as system processes. Perform various function call interception.
Android security mechanism