Copied the documentation from other similar actions that have the
same behavior.
AudioService.java has
intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY);
for this action.
Change-Id: I79736f8146bd6b72d01034be428e83b5841c73fa
/**
* Broadcast Action: Wired Headset plugged in or unplugged.
*
+ * You <em>cannot</em> receive this through components declared
+ * in manifests, only by explicitly registering for it with
+ * {@link Context#registerReceiver(BroadcastReceiver, IntentFilter)
+ * Context.registerReceiver()}.
+ *
* <p>The intent will have the following extra values:
* <ul>
* <li><em>state</em> - 0 for unplugged, 1 for plugged. </li>