summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorFyodor Kupolov <fkupolov@google.com>2018-02-01 15:48:53 -0800
committerFyodor Kupolov <fkupolov@google.com>2018-02-01 15:48:53 -0800
commit1fc6260065697e66d755ca0ea9b2bbca62d94314 (patch)
tree1a90cdef38a7eb82527777b00316c74482d59401 /core/java/android
parent23a7b8d36b5055dcb1cdebb10b5b97688f675fdc (diff)
Send SHUTDOWN bc to registered receivers only
Test: adb shell svc power reboot Bug: 65174075 Change-Id: I652c7564b989736c9deabd0989abdb1e44f3b78a
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/content/Intent.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java
index b3c8737a2831..40712f1865f2 100644
--- a/core/java/android/content/Intent.java
+++ b/core/java/android/content/Intent.java
@@ -2508,6 +2508,9 @@ public class Intent implements Parcelable, Cloneable {
* off, not sleeping). Once the broadcast is complete, the final shutdown
* will proceed and all unsaved data lost. Apps will not normally need
* to handle this, since the foreground activity will be paused as well.
+ * <p>As of {@link Build.VERSION_CODES#P} this broadcast is only sent to receivers registered
+ * through {@link Context#registerReceiver(BroadcastReceiver, IntentFilter)
+ * Context.registerReceiver}.
*
* <p class="note">This is a protected intent that can only be sent
* by the system.