diff options
author | Nancy Chen <nancychen@google.com> | 2014-09-17 14:47:20 -0700 |
---|---|---|
committer | Nancy Chen <nancychen@google.com> | 2014-09-17 18:34:13 -0700 |
commit | 513c8921359c2b576e0713da6d649e5e7c29d179 (patch) | |
tree | ee3d0bed8a1285a5c1720811694607cded8e8088 /telecomm/java/com/android | |
parent | 77ebdcbaaad6da33c7bdb5a2b22df45959f7f6d9 (diff) | |
download | frameworks_base-513c8921359c2b576e0713da6d649e5e7c29d179.zip frameworks_base-513c8921359c2b576e0713da6d649e5e7c29d179.tar.gz frameworks_base-513c8921359c2b576e0713da6d649e5e7c29d179.tar.bz2 |
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
Diffstat (limited to 'telecomm/java/com/android')
-rw-r--r-- | telecomm/java/com/android/internal/telecom/ITelecomService.aidl | 5 |
1 files changed, 5 insertions, 0 deletions
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<PhoneAccountHandle> getPhoneAccountsSupportingScheme(in String uriScheme); /** + * @see TelecomManager#getPhoneAccountsForPackage + */ + List<PhoneAccountHandle> getPhoneAccountsForPackage(in String packageName); + + /** * @see TelecomManager#getPhoneAccount */ PhoneAccount getPhoneAccount(in PhoneAccountHandle account); |