diff options
author | Brad Ebinger <breadley@google.com> | 2021-03-23 21:01:51 +0000 |
---|---|---|
committer | Brad Ebinger <breadley@google.com> | 2021-03-25 15:11:00 -0700 |
commit | a8366aeae40143a3d706de43772d4c7cde59b513 (patch) | |
tree | 21b909c3928099a9e4cdaef5e185ee828281c67a /telephony/java/com | |
parent | 1d70937fe795e7d879e496ee192f1621a7ce0cbb (diff) |
Enforce READ_PHONE_STATE for APIs involving call state
For API version 31+, ensure that READ_PHONE_STATE is checked on
APIs that retrieve/notify the call state of the device.
Bug: 157233955
Test: atest CtsTelecomTestCases2 CtsTelephony2TestCases
Change-Id: I9f8674a3075d3e0f75ee4f41eefce328c0fa6b91
Diffstat (limited to 'telephony/java/com')
-rw-r--r-- | telephony/java/com/android/internal/telephony/ITelephony.aidl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/telephony/java/com/android/internal/telephony/ITelephony.aidl b/telephony/java/com/android/internal/telephony/ITelephony.aidl index 46752b7fe1ea..afc538d3bae3 100644 --- a/telephony/java/com/android/internal/telephony/ITelephony.aidl +++ b/telephony/java/com/android/internal/telephony/ITelephony.aidl @@ -298,9 +298,9 @@ interface ITelephony { int getCallState(); /** - * Returns the call state for a slot. + * Returns the call state for a specific subscriiption. */ - int getCallStateForSlot(int slotIndex); + int getCallStateForSubscription(int subId, String callingPackage, String featureId); /** * Replaced by getDataActivityForSubId. |