From 513c8921359c2b576e0713da6d649e5e7c29d179 Mon Sep 17 00:00:00 2001 From: Nancy Chen Date: Wed, 17 Sep 2014 14:47:20 -0700 Subject: Replace get*PhoneAccounts* public API methods with new method (1/3) Hide getCallCapablePhoneAccounts and getPhoneAccountsSupportingScheme because a third party app should not be able to see all phone accounts registered. Replace instead with getPhoneAccountsForPackage(Context) which will only return the phone accounts registered by a particular package. Bug: 17510811 Change-Id: I8465ef4f13b62fe83f51835cfffe1656298041a8 --- telecomm/java/com/android/internal/telecom/ITelecomService.aidl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'telecomm/java/com') diff --git a/telecomm/java/com/android/internal/telecom/ITelecomService.aidl b/telecomm/java/com/android/internal/telecom/ITelecomService.aidl index 77a80fe..feb09d5 100644 --- a/telecomm/java/com/android/internal/telecom/ITelecomService.aidl +++ b/telecomm/java/com/android/internal/telecom/ITelecomService.aidl @@ -60,6 +60,11 @@ interface ITelecomService { List getPhoneAccountsSupportingScheme(in String uriScheme); /** + * @see TelecomManager#getPhoneAccountsForPackage + */ + List getPhoneAccountsForPackage(in String packageName); + + /** * @see TelecomManager#getPhoneAccount */ PhoneAccount getPhoneAccount(in PhoneAccountHandle account); -- cgit v1.1