Make audio routing Intents protected
These intents should only be sent by the system: android.intent.action.HEADSET_PLUG android.intent.action.ANALOG_AUDIO_DOCK_PLUG android.intent.action.DIGITAL_AUDIO_DOCK_PLUG android.intent.action.HDMI_AUDIO_PLUG android.intent.action.USB_AUDIO_ACCESSORY_PLUG android.intent.action.USB_AUDIO_DEVICE_PLUG Change-Id: I7be41892a9c4e619ca3e1c892fad6f1f2714c74f Signed-off-by: Mike Lockwood <lockwood@google.com>
This commit is contained in:
@@ -112,6 +112,13 @@
|
||||
<protected-broadcast android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
|
||||
<protected-broadcast android:name="android.hardware.usb.action.USB_DEVICE_DETACHED" />
|
||||
|
||||
<protected-broadcast android:name="android.intent.action.HEADSET_PLUG" />
|
||||
<protected-broadcast android:name="android.intent.action.ANALOG_AUDIO_DOCK_PLUG" />
|
||||
<protected-broadcast android:name="android.intent.action.DIGITAL_AUDIO_DOCK_PLUG" />
|
||||
<protected-broadcast android:name="android.intent.action.HDMI_AUDIO_PLUG" />
|
||||
<protected-broadcast android:name="android.intent.action.USB_AUDIO_ACCESSORY_PLUG" />
|
||||
<protected-broadcast android:name="android.intent.action.USB_AUDIO_DEVICE_PLUG" />
|
||||
|
||||
<protected-broadcast android:name="android.net.conn.CONNECTIVITY_CHANGE" />
|
||||
<protected-broadcast android:name="android.net.conn.CONNECTIVITY_CHANGE_IMMEDIATE" />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user