diff options
author | Brad Ebinger <breadley@google.com> | 2016-07-18 14:10:18 -0700 |
---|---|---|
committer | Jessica Wagantall <jwagantall@cyngn.com> | 2016-09-12 15:24:33 -0700 |
commit | 7b81d3bc3ef5461f29b836be167a10dd93919fb9 (patch) | |
tree | e11528ddcf41310741cff0b5a0c7928c079fbf1c | |
parent | d578e7d7a4cb8d7b9a90ca9457fed8f2db13771f (diff) | |
download | android_packages_services_Telephony-stable/cm-12.1-YOG7D.tar.gz android_packages_services_Telephony-stable/cm-12.1-YOG7D.tar.bz2 android_packages_services_Telephony-stable/cm-12.1-YOG7D.zip |
Make TTY broadcasts protectedstable/cm-12.1-YOG7D
Currently, any app can broadcast the intent to update the TTY mode. This
change updates the intents to protected broadcasts so that only system
can broadcast them. Otherwise, a SecurityException will be thown.
CYNGNOS-3235
Bug: 29832693
Change-Id: Ic9a91be3d8d15043e3165b766348cff301dd5da1
(cherry picked from commit 0021cc5e7e50ef26fa56b2be4141c86844d5ad5b)
-rw-r--r-- | AndroidManifest.xml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml index e4496158c..f62cd56e7 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -24,6 +24,8 @@ <original-package android:name="com.android.phone" /> + <protected-broadcast android:name="android.telecom.action.TTY_PREFERRED_MODE_CHANGED" /> + <protected-broadcast android:name="android.telecom.action.CURRENT_TTY_MODE_CHANGED" /> <protected-broadcast android:name="android.intent.action.SERVICE_STATE" /> <protected-broadcast android:name="android.intent.action.RADIO_TECHNOLOGY" /> <protected-broadcast android:name="android.intent.action.EMERGENCY_CALLBACK_MODE_CHANGED" /> |