Performing Runtime Security Checks

Runtime security in Android happens at the process level and at the operation level. At the process level, Android prevents one application from directly accessing another application's data. It does this by running each application within a different process and under a unique and permanent user ID. At the operational level, Android defines a list of protected features and resources. In order for your application to access this information, you have to add one or more permission requests to your AndroidManifest.xml file. You can also define custom permissions with your application.

In the sections that follow, we will talk about process-boundary security and how to declare and use predefined permissions. We will also discuss creating custom permissions and enforcing them within your application. Let's start by dissecting Android security at the process boundary.

0 0

Post a comment