summaryrefslogtreecommitdiffstats
path: root/core/java/android/accounts/IAccountManager.aidl
diff options
context:
space:
mode:
authorSvetoslav <svetoslavganov@google.com>2015-09-08 14:36:35 -0700
committerSvetoslav <svetoslavganov@google.com>2015-09-08 17:54:37 -0700
commitce852ddcecefc6b3e1265462f5c8670bd0e4ace1 (patch)
treeffc963c127af9f52503ab5985d43bd2481820680 /core/java/android/accounts/IAccountManager.aidl
parent36866dc7347ba37ced74af6f8a6298c62282dacb (diff)
downloadframeworks_base-ce852ddcecefc6b3e1265462f5c8670bd0e4ace1.zip
frameworks_base-ce852ddcecefc6b3e1265462f5c8670bd0e4ace1.tar.gz
frameworks_base-ce852ddcecefc6b3e1265462f5c8670bd0e4ace1.tar.bz2
Add get_accounts app op
For each runtime permission we have an app op to toggle the permission for legacy apps as they cannot handle permission revocations. We were lacking an app op for get_accounts which prevented the user from controlling access to accounts regardelss that they change the state of the permission toggle in the UI. Even worse the permission UI is written with the assumption that every runtime permission has an app op and as a result revoking the contacts group (if the app requests the get_accounts permission) is reset back to allowed in the UI. bug:23854618 Change-Id: I9e3f9bfeb320bed561d718db99ee285915d5701b
Diffstat (limited to 'core/java/android/accounts/IAccountManager.aidl')
-rw-r--r--core/java/android/accounts/IAccountManager.aidl14
1 files changed, 8 insertions, 6 deletions
diff --git a/core/java/android/accounts/IAccountManager.aidl b/core/java/android/accounts/IAccountManager.aidl
index 04b3c88..4378df4 100644
--- a/core/java/android/accounts/IAccountManager.aidl
+++ b/core/java/android/accounts/IAccountManager.aidl
@@ -30,12 +30,14 @@ interface IAccountManager {
String getPassword(in Account account);
String getUserData(in Account account, String key);
AuthenticatorDescription[] getAuthenticatorTypes(int userId);
- Account[] getAccounts(String accountType);
- Account[] getAccountsForPackage(String packageName, int uid);
- Account[] getAccountsByTypeForPackage(String type, String packageName);
- Account[] getAccountsAsUser(String accountType, int userId);
- void hasFeatures(in IAccountManagerResponse response, in Account account, in String[] features);
- void getAccountsByFeatures(in IAccountManagerResponse response, String accountType, in String[] features);
+ Account[] getAccounts(String accountType, String opPackageName);
+ Account[] getAccountsForPackage(String packageName, int uid, String opPackageName);
+ Account[] getAccountsByTypeForPackage(String type, String packageName, String opPackageName);
+ Account[] getAccountsAsUser(String accountType, int userId, String opPackageName);
+ void hasFeatures(in IAccountManagerResponse response, in Account account, in String[] features,
+ String opPackageName);
+ void getAccountsByFeatures(in IAccountManagerResponse response, String accountType,
+ in String[] features, String opPackageName);
boolean addAccountExplicitly(in Account account, String password, in Bundle extras);
void removeAccount(in IAccountManagerResponse response, in Account account,
boolean expectActivityLaunch);