OSDN Git Service

DO NOT MERGE: Check provider access for content changes.
authorJeff Sharkey <jsharkey@android.com>
Thu, 17 Nov 2016 00:22:48 +0000 (17:22 -0700)
committerJeff Sharkey <jsharkey@google.com>
Thu, 17 Nov 2016 21:01:43 +0000 (21:01 +0000)
commit11e3e52bd94631dfd3ac286e9df256ae76a2d3e4
tree4bf0b457904594943ee2b15ae0b19caf1df7a634
parentfb4beac06916bf55bf10a98c9b08a30207a87006
DO NOT MERGE: Check provider access for content changes.

For an app to either send or receive content change notifications,
require that they have some level of access to the underlying
provider.

Without these checks, a malicious app could sniff sensitive user data
from the notifications of otherwise private providers.

Test: builds, boots, PoC app now fails
Bug: 32555637
Change-Id: If2dcd45cb0a9f1fb3b93e39fc7b8ae9c34c2fdef
core/java/android/app/ActivityManagerInternal.java
services/core/java/com/android/server/am/ActivityManagerService.java
services/core/java/com/android/server/content/ContentService.java