summaryrefslogtreecommitdiffstats
path: root/telephony/java/com/android
diff options
context:
space:
mode:
authorRobert Greenwalt <rgreenwalt@google.com>2015-07-10 09:08:13 -0700
committerRobert Greenwalt <rgreenwalt@google.com>2015-07-10 09:42:08 -0700
commit9bc8299ca0b2e8396b9f2f027c440cda164ba75e (patch)
tree68696fab7b8ecc7cf7c7252d7a09054da3af8ff6 /telephony/java/com/android
parent4d8134c1b9e11c2b3a92195fb753da7b144bad1e (diff)
downloadframeworks_base-9bc8299ca0b2e8396b9f2f027c440cda164ba75e.zip
frameworks_base-9bc8299ca0b2e8396b9f2f027c440cda164ba75e.tar.gz
frameworks_base-9bc8299ca0b2e8396b9f2f027c440cda164ba75e.tar.bz2
Fix permissions.
Legacy API should not need new permissions. Also found some more hidden/system that should have permissions. bug:22379438 bug:19257083 Change-Id: I24be0a90dffcffe03d25982a9b02eedcf03fbd59
Diffstat (limited to 'telephony/java/com/android')
-rw-r--r--telephony/java/com/android/internal/telephony/ITelephony.aidl12
1 files changed, 4 insertions, 8 deletions
diff --git a/telephony/java/com/android/internal/telephony/ITelephony.aidl b/telephony/java/com/android/internal/telephony/ITelephony.aidl
index 6db88a7..a93e465 100644
--- a/telephony/java/com/android/internal/telephony/ITelephony.aidl
+++ b/telephony/java/com/android/internal/telephony/ITelephony.aidl
@@ -455,9 +455,9 @@ interface ITelephony {
/**
* Returns the network type for data transmission
- * @param callingPackage package making the call.
+ * Legacy call, permission-free
*/
- int getNetworkType(String callingPackage);
+ int getNetworkType();
/**
* Returns the network type of a subId.
@@ -480,16 +480,12 @@ interface ITelephony {
int getDataNetworkTypeForSubscriber(int subId, String callingPackage);
/**
- * Returns the network type for voice
- */
- int getVoiceNetworkType();
-
- /**
* Returns the voice network type of a subId
* @param subId user preferred subId.
+ * @param callingPackage package making the call.
* Returns the network type
*/
- int getVoiceNetworkTypeForSubscriber(int subId);
+ int getVoiceNetworkTypeForSubscriber(int subId, String callingPackage);
/**
* Return true if an ICC card is present