From an application perspective, Android security is very simple. Here’s the
default security rules for when one application tries to access the component of another
application. By component, we mean provider, service or receiver.
-
If calling app is root or system, grant access
-
If calling app has same UID, grant access
-
If component not exported, deny access
-
If no permission, grant access
-
If permission, check calling app has permission
-
If you don’t export your component, only same uid and system can access it
-
It follows from (1), you can protect your application component against anything but system (or root) merely by not exporting it
-
If you export your component, the only way to protect it is by requiring a
permission
-
Permissions aren’t checked/needed if the component is being called by an application with the same sharedUserId declared in its manifest.
No comments:
Post a Comment