Safe and Secure

As mentioned earlier, every application runs in its own Linux process. The hardware forbids one process from accessing another process’s memory. Furthermore, every application is assigned a specific user ID. Any files it creates cannot be read or written by other applications as long as the device hasn’t been “rooted” (modified to run apps with elevated privileges).

In addition, access to certain critical operations is restricted, and you must specifically ask for permission to use them in a file named AndroidManifest.xml. When the application is installed, the Package Manager either grants or doesn’t grant the permissions based on certificates and, if necessary, user prompts. Here are some of the most common permissions you’ll ...

Get Hello, Android, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.