summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad Ebinger <breadley@google.com>2016-07-18 14:10:18 -0700
committerJessica Wagantall <jwagantall@cyngn.com>2016-09-12 15:10:14 -0700
commit6032e0d3aa82fce385f0eb158e1afd7acb865727 (patch)
tree3923aaeb62d6feb34054e66351688171a77aee13
parent2f7d80991e9b2982d67ccaa23a15d316e3c07ed8 (diff)
downloadandroid_packages_services_Telephony-stable/cm-12.1-YOG4P.tar.gz
android_packages_services_Telephony-stable/cm-12.1-YOG4P.tar.bz2
android_packages_services_Telephony-stable/cm-12.1-YOG4P.zip
Make TTY broadcasts protectedstable/cm-12.1-YOG4P
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.xml2
1 files changed, 2 insertions, 0 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index cb3353750..ee9875bea 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" />