diff options
author | Brad Ebinger <breadley@google.com> | 2016-07-18 14:10:18 -0700 |
---|---|---|
committer | gitbuildkicker <android-build@google.com> | 2016-07-21 17:35:53 -0700 |
commit | c76129b068e9fbe16ce129fe7b28943092d158a8 (patch) | |
tree | 99cd5bb38cc07c756077a119f7777740922a21b4 | |
parent | 1e2e90f8c650029bd76996bafdbc79c42fed1199 (diff) | |
download | android_packages_services_Telephony-c76129b068e9fbe16ce129fe7b28943092d158a8.tar.gz android_packages_services_Telephony-c76129b068e9fbe16ce129fe7b28943092d158a8.tar.bz2 android_packages_services_Telephony-c76129b068e9fbe16ce129fe7b28943092d158a8.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.xml | 2 |
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" /> |