diff options
author | Robert Greenwalt <rgreenwalt@google.com> | 2015-07-06 17:59:57 -0700 |
---|---|---|
committer | Robert Greenwalt <rgreenwalt@google.com> | 2015-07-07 11:52:15 -0700 |
commit | 6e4a98f8707f759fa9f47a458683a3627e42b0b6 (patch) | |
tree | 0fd5c84c0f31276495f5bacdc425769857c2861f /telephony/java/com/android | |
parent | 5c8498db2111ea69566bc43a9e799d0447af789d (diff) | |
download | frameworks_base-6e4a98f8707f759fa9f47a458683a3627e42b0b6.zip frameworks_base-6e4a98f8707f759fa9f47a458683a3627e42b0b6.tar.gz frameworks_base-6e4a98f8707f759fa9f47a458683a3627e42b0b6.tar.bz2 |
Fix permissions on TelephonyManager
bug:19257083
Change-Id: I063d36bbe7ece9d83aac7c490d1b44e55da2c286
Diffstat (limited to 'telephony/java/com/android')
-rw-r--r-- | telephony/java/com/android/internal/telephony/ITelephony.aidl | 79 |
1 files changed, 49 insertions, 30 deletions
diff --git a/telephony/java/com/android/internal/telephony/ITelephony.aidl b/telephony/java/com/android/internal/telephony/ITelephony.aidl index 7dc71ed..6db88a7 100644 --- a/telephony/java/com/android/internal/telephony/ITelephony.aidl +++ b/telephony/java/com/android/internal/telephony/ITelephony.aidl @@ -116,59 +116,67 @@ interface ITelephony { /** * Check if we are in either an active or holding call + * @param callingPackage the name of the package making the call. * @return true if the phone state is OFFHOOK. */ - boolean isOffhook(); + boolean isOffhook(String callingPackage); /** * Check if a particular subId has an active or holding call * * @param subId user preferred subId. + * @param callingPackage the name of the package making the call. * @return true if the phone state is OFFHOOK. */ - boolean isOffhookForSubscriber(int subId); + boolean isOffhookForSubscriber(int subId, String callingPackage); /** * Check if an incoming phone call is ringing or call waiting * on a particular subId. * * @param subId user preferred subId. + * @param callingPackage the name of the package making the call. * @return true if the phone state is RINGING. */ - boolean isRingingForSubscriber(int subId); + boolean isRingingForSubscriber(int subId, String callingPackage); /** * Check if an incoming phone call is ringing or call waiting. + * @param callingPackage the name of the package making the call. * @return true if the phone state is RINGING. */ - boolean isRinging(); + boolean isRinging(String callingPackage); /** * Check if the phone is idle. + * @param callingPackage the name of the package making the call. * @return true if the phone state is IDLE. */ - boolean isIdle(); + boolean isIdle(String callingPackage); /** * Check if the phone is idle on a particular subId. * * @param subId user preferred subId. + * @param callingPackage the name of the package making the call. * @return true if the phone state is IDLE. */ - boolean isIdleForSubscriber(int subId); + boolean isIdleForSubscriber(int subId, String callingPackage); /** * Check to see if the radio is on or not. + * @param callingPackage the name of the package making the call. * @return returns true if the radio is on. */ - boolean isRadioOn(); + boolean isRadioOn(String callingPackage); /** * Check to see if the radio is on or not on particular subId. * @param subId user preferred subId. + * @param callingPackage the name of the package making the call. * @return returns true if the radio is on. */ - boolean isRadioOnForSubscriber(int subId); + boolean isRadioOnForSubscriber(int subId, String callingPackage); /** * Check if the SIM pin lock is enabled. @@ -380,40 +388,46 @@ interface ITelephony { /** * Returns the CDMA ERI icon index to display + * @param callingPackage package making the call. */ - int getCdmaEriIconIndex(); + int getCdmaEriIconIndex(String callingPackage); /** * Returns the CDMA ERI icon index to display on particular subId. * @param subId user preferred subId. + * @param callingPackage package making the call. */ - int getCdmaEriIconIndexForSubscriber(int subId); + int getCdmaEriIconIndexForSubscriber(int subId, String callingPackage); /** * Returns the CDMA ERI icon mode, * 0 - ON * 1 - FLASHING + * @param callingPackage package making the call. */ - int getCdmaEriIconMode(); + int getCdmaEriIconMode(String callingPackage); /** * Returns the CDMA ERI icon mode on particular subId, * 0 - ON * 1 - FLASHING * @param subId user preferred subId. + * @param callingPackage package making the call. */ - int getCdmaEriIconModeForSubscriber(int subId); + int getCdmaEriIconModeForSubscriber(int subId, String callingPackage); /** * Returns the CDMA ERI text, + * @param callingPackage package making the call. */ - String getCdmaEriText(); + String getCdmaEriText(String callingPackage); /** * Returns the CDMA ERI text for particular subId, * @param subId user preferred subId. + * @param callingPackage package making the call. */ - String getCdmaEriTextForSubscriber(int subId); + String getCdmaEriTextForSubscriber(int subId, String callingPackage); /** * Returns true if OTA service provisioning needs to run. @@ -440,28 +454,30 @@ interface ITelephony { int getVoiceMessageCountForSubscriber(int subId); /** - * Returns the network type for data transmission - */ - int getNetworkType(); + * Returns the network type for data transmission + * @param callingPackage package making the call. + */ + int getNetworkType(String callingPackage); /** * Returns the network type of a subId. * @param subId user preferred subId. - * Returns the network type + * @param callingPackage package making the call. */ - int getNetworkTypeForSubscriber(int subId); + int getNetworkTypeForSubscriber(int subId, String callingPackage); /** - * Returns the network type for data transmission - */ - int getDataNetworkType(); + * Returns the network type for data transmission + * @param callingPackage package making the call. + */ + int getDataNetworkType(String callingPackage); /** - * Returns the data network type of a subId - * @param subId user preferred subId. - * Returns the network type - */ - int getDataNetworkTypeForSubscriber(int subId); + * Returns the data network type of a subId + * @param subId user preferred subId. + * @param callingPackage package making the call. + */ + int getDataNetworkTypeForSubscriber(int subId, String callingPackage); /** * Returns the network type for voice @@ -492,20 +508,22 @@ interface ITelephony { * is a tri-state return value as for a period of time * the mode may be unknown. * + * @param callingPackage the name of the calling package * @return {@link Phone#LTE_ON_CDMA_UNKNOWN}, {@link Phone#LTE_ON_CDMA_FALSE} * or {@link PHone#LTE_ON_CDMA_TRUE} */ - int getLteOnCdmaMode(); + int getLteOnCdmaMode(String callingPackage); /** * Return if the current radio is LTE on CDMA. This * is a tri-state return value as for a period of time * the mode may be unknown. * + * @param callingPackage the name of the calling package * @return {@link Phone#LTE_ON_CDMA_UNKNOWN}, {@link Phone#LTE_ON_CDMA_FALSE} * or {@link PHone#LTE_ON_CDMA_TRUE} */ - int getLteOnCdmaModeForSubscriber(int subId); + int getLteOnCdmaModeForSubscriber(int subId, String callingPackage); /** * Returns the all observed cell information of the device. @@ -890,9 +908,10 @@ interface ITelephony { * Get phone radio type and access technology. * * @param phoneId which phone you want to get + * @param callingPackage the name of the package making the call * @return phone radio type and access technology */ - int getRadioAccessFamily(in int phoneId); + int getRadioAccessFamily(in int phoneId, String callingPackage); /** * Enables or disables video calling. |