diff options
| author | 2020-01-30 23:06:37 -0800 | |
|---|---|---|
| committer | 2020-02-04 01:24:23 +0000 | |
| commit | 79b68cfd4dc08ac1333fd45380146c1925db6d49 (patch) | |
| tree | 3859ea915c1f5639bd9a4144e182b2ec2fcfdc5f | |
| parent | 5bb393381cbc10adba120796ffaa101db6d53bdc (diff) | |
Check READ_PHONE_STATE for LISTEN_BARRING_INFO
Add LISTEN_BARRING_INFO to the list of callbacks
checked by READ_PHONE_STATE.
Bug: 148646258
Test: atest TelephonyManagerPermissionTest
Change-Id: I65d90edecea189fc41ece8ca29aa868341288427
| -rw-r--r-- | services/core/java/com/android/server/TelephonyRegistry.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/TelephonyRegistry.java b/services/core/java/com/android/server/TelephonyRegistry.java index 56f942480eaf..cbf6c274e865 100644 --- a/services/core/java/com/android/server/TelephonyRegistry.java +++ b/services/core/java/com/android/server/TelephonyRegistry.java @@ -285,7 +285,8 @@ public class TelephonyRegistry extends ITelephonyRegistry.Stub { PhoneStateListener.LISTEN_CALL_FORWARDING_INDICATOR | PhoneStateListener.LISTEN_MESSAGE_WAITING_INDICATOR | PhoneStateListener.LISTEN_EMERGENCY_NUMBER_LIST - | PhoneStateListener.LISTEN_REGISTRATION_FAILURE; + | PhoneStateListener.LISTEN_REGISTRATION_FAILURE + | PhoneStateListener.LISTEN_BARRING_INFO; static final int PRECISE_PHONE_STATE_PERMISSION_MASK = PhoneStateListener.LISTEN_PRECISE_CALL_STATE |