summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad Ebinger <breadley@google.com>2016-07-18 14:10:18 -0700
committergitbuildkicker <android-build@google.com>2016-08-16 15:52:43 -0700
commit23cc31447cf38c287e5c154c95336e3bd90dc433 (patch)
tree99cd5bb38cc07c756077a119f7777740922a21b4
parent1e2e90f8c650029bd76996bafdbc79c42fed1199 (diff)
downloadandroid_packages_services_Telephony-23cc31447cf38c287e5c154c95336e3bd90dc433.tar.gz
android_packages_services_Telephony-23cc31447cf38c287e5c154c95336e3bd90dc433.tar.bz2
android_packages_services_Telephony-23cc31447cf38c287e5c154c95336e3bd90dc433.zip
Make TTY broadcasts protected
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. Bug: 29832693 Change-Id: Ic9a91be3d8d15043e3165b766348cff301dd5da1
-rw-r--r--AndroidManifest.xml2
1 files changed, 2 insertions, 0 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index b8225c93e..545aa8ba0 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" />