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:40 +0000 (21:02 +0000)
commitff2fede0ddd9464d4c65e6218a032036adb73099
tree2b00d16bab3985e3d7522f4b58d2f47d002f7ead
parent5d0cabf78ea569bd98ad8c04b8015457c198ea94
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