Skip to content

Commit

Permalink
Make TTY broadcasts protected
Browse files Browse the repository at this point in the history
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 0021cc5)
  • Loading branch information
Brad Ebinger authored and Jessica Wagantall committed Sep 12, 2016
1 parent 69fb0a5 commit a2da9be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions AndroidManifest.xml
Expand Up @@ -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" />
Expand Down

0 comments on commit a2da9be

Please sign in to comment.