816c83bf037e2284a61ac8e918ff882d162d9321 |
|
02-Mar-2017 |
Chad Brubaker <cbrubaker@google.com> |
Enforce visibleToInstantApps for receivers Instant apps can only send broadcasts to receivers that are declared in the manifest with android:visibleToInstantApps=true or if the app registers a receiver at runtime using the new methods that take visibleToInstantApps. Bug:33350280 Test: Manually sending broadcasts from Instant Apps only goes to receivers with visibleToInstantApps set to true. Test: Receiving a broadcast from within the same app does not require visibleToInstantApps to be set. Change-Id: I54d79a502ba9c5fd03ede3c09e08afc88fe2775f
/frameworks/base/services/core/java/com/android/server/am/BroadcastFilter.java
|
b7e34d5508b41c421994eb70f96f56e5db7ede74 |
|
22-Feb-2017 |
Chad Brubaker <cbrubaker@google.com> |
Only send exposed broadcasts to Instant Apps In order to prevent Instant Apps from receiving potentially sensitive broadcasts they will only receive those that the sender explicitly exposes to Instant Apps by setting Intent.FLAG_RECEIVER_VISIBLE_TO_INSTANT_APPS. Bug:33350280 Test: `adb shell am broadcast` does not get delivered to Instant App Test: `adb shell am broadcast -f 0x0x200000` gets delivered to Instant App Test: Verified that an Instant App can send a broadcast to itself without FLAG_RECEIVER_VISIBLE_TO_INSTANT_APPS Change-Id: Ie363448bf224abba530dd4caf69258939fff00af
/frameworks/base/services/core/java/com/android/server/am/BroadcastFilter.java
|
9158825f9c41869689d6b1786d7c7aa8bdd524ce |
|
22-Nov-2013 |
Amith Yamasani <yamasani@google.com> |
Move some system services to separate directories Refactored the directory structure so that services can be optionally excluded. This is step 1. Will be followed by another change that makes it possible to remove services from the build. Change-Id: Ideacedfd34b5e213217ad3ff4ebb21c4a8e73f85
/frameworks/base/services/core/java/com/android/server/am/BroadcastFilter.java
|