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:02:37 +0000 (21:02 +0000)
commit4ddbf942a05ab29850c04d16575eda6e86ed6a9e
tree542a4ffbdbaa37f36da594e3e70309e3fa7b2915
parentaa394dd42c049479bface1991f11b863dc1a0922
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