Loading core/java/android/accounts/AbstractAccountAuthenticator.java +6 −6 Original line number Diff line number Diff line Loading @@ -290,10 +290,10 @@ public abstract class AbstractAccountAuthenticator { } } @android.annotation.EnforcePermission(android.Manifest.permission.ACCOUNT_MANAGER) @Override public void editProperties(IAccountAuthenticatorResponse response, String accountType) throws RemoteException { checkBinderPermission(); try { final Bundle result = AbstractAccountAuthenticator.this.editProperties( new AccountAuthenticatorResponse(response), accountType); Loading @@ -305,10 +305,10 @@ public abstract class AbstractAccountAuthenticator { } } @android.annotation.EnforcePermission(android.Manifest.permission.ACCOUNT_MANAGER) @Override public void hasFeatures(IAccountAuthenticatorResponse response, Account account, String[] features) throws RemoteException { checkBinderPermission(); try { final Bundle result = AbstractAccountAuthenticator.this.hasFeatures( new AccountAuthenticatorResponse(response), account, features); Loading @@ -320,10 +320,10 @@ public abstract class AbstractAccountAuthenticator { } } @android.annotation.EnforcePermission(android.Manifest.permission.ACCOUNT_MANAGER) @Override public void getAccountRemovalAllowed(IAccountAuthenticatorResponse response, Account account) throws RemoteException { checkBinderPermission(); try { final Bundle result = AbstractAccountAuthenticator.this.getAccountRemovalAllowed( new AccountAuthenticatorResponse(response), account); Loading @@ -335,10 +335,10 @@ public abstract class AbstractAccountAuthenticator { } } @android.annotation.EnforcePermission(android.Manifest.permission.ACCOUNT_MANAGER) @Override public void getAccountCredentialsForCloning(IAccountAuthenticatorResponse response, Account account) throws RemoteException { checkBinderPermission(); try { final Bundle result = AbstractAccountAuthenticator.this.getAccountCredentialsForCloning( Loading @@ -351,11 +351,11 @@ public abstract class AbstractAccountAuthenticator { } } @android.annotation.EnforcePermission(android.Manifest.permission.ACCOUNT_MANAGER) @Override public void addAccountFromCredentials(IAccountAuthenticatorResponse response, Account account, Bundle accountCredentials) throws RemoteException { checkBinderPermission(); try { final Bundle result = AbstractAccountAuthenticator.this.addAccountFromCredentials( Loading Loading @@ -465,12 +465,12 @@ public abstract class AbstractAccountAuthenticator { } } @android.annotation.EnforcePermission(android.Manifest.permission.ACCOUNT_MANAGER) @Override public void isCredentialsUpdateSuggested( IAccountAuthenticatorResponse response, Account account, String statusToken) throws RemoteException { checkBinderPermission(); try { final Bundle result = AbstractAccountAuthenticator.this .isCredentialsUpdateSuggested( Loading core/java/android/accounts/IAccountAuthenticator.aidl +6 −0 Original line number Diff line number Diff line Loading @@ -62,6 +62,7 @@ oneway interface IAccountAuthenticator { /** * launches an activity that lets the user edit and set the properties for an authenticator */ @EnforcePermission("ACCOUNT_MANAGER") @UnsupportedAppUsage void editProperties(in IAccountAuthenticatorResponse response, String accountType); Loading @@ -69,6 +70,7 @@ oneway interface IAccountAuthenticator { * returns a Bundle where the boolean value BOOLEAN_RESULT_KEY is set if the account has the * specified features */ @EnforcePermission("ACCOUNT_MANAGER") @UnsupportedAppUsage void hasFeatures(in IAccountAuthenticatorResponse response, in Account account, in String[] features); Loading @@ -76,12 +78,14 @@ oneway interface IAccountAuthenticator { /** * Gets whether or not the account is allowed to be removed. */ @EnforcePermission("ACCOUNT_MANAGER") @UnsupportedAppUsage void getAccountRemovalAllowed(in IAccountAuthenticatorResponse response, in Account account); /** * Returns a Bundle containing the required credentials to copy the account across users. */ @EnforcePermission("ACCOUNT_MANAGER") void getAccountCredentialsForCloning(in IAccountAuthenticatorResponse response, in Account account); Loading @@ -89,6 +93,7 @@ oneway interface IAccountAuthenticator { * Uses the Bundle containing credentials from another instance of the authenticator to create * a copy of the account on this user. */ @EnforcePermission("ACCOUNT_MANAGER") void addAccountFromCredentials(in IAccountAuthenticatorResponse response, in Account account, in Bundle accountCredentials); Loading Loading @@ -116,6 +121,7 @@ oneway interface IAccountAuthenticator { /** * Checks if the credentials of the provided account should be updated. */ @EnforcePermission("ACCOUNT_MANAGER") void isCredentialsUpdateSuggested(in IAccountAuthenticatorResponse response, in Account account, String statusToken); } Loading
core/java/android/accounts/AbstractAccountAuthenticator.java +6 −6 Original line number Diff line number Diff line Loading @@ -290,10 +290,10 @@ public abstract class AbstractAccountAuthenticator { } } @android.annotation.EnforcePermission(android.Manifest.permission.ACCOUNT_MANAGER) @Override public void editProperties(IAccountAuthenticatorResponse response, String accountType) throws RemoteException { checkBinderPermission(); try { final Bundle result = AbstractAccountAuthenticator.this.editProperties( new AccountAuthenticatorResponse(response), accountType); Loading @@ -305,10 +305,10 @@ public abstract class AbstractAccountAuthenticator { } } @android.annotation.EnforcePermission(android.Manifest.permission.ACCOUNT_MANAGER) @Override public void hasFeatures(IAccountAuthenticatorResponse response, Account account, String[] features) throws RemoteException { checkBinderPermission(); try { final Bundle result = AbstractAccountAuthenticator.this.hasFeatures( new AccountAuthenticatorResponse(response), account, features); Loading @@ -320,10 +320,10 @@ public abstract class AbstractAccountAuthenticator { } } @android.annotation.EnforcePermission(android.Manifest.permission.ACCOUNT_MANAGER) @Override public void getAccountRemovalAllowed(IAccountAuthenticatorResponse response, Account account) throws RemoteException { checkBinderPermission(); try { final Bundle result = AbstractAccountAuthenticator.this.getAccountRemovalAllowed( new AccountAuthenticatorResponse(response), account); Loading @@ -335,10 +335,10 @@ public abstract class AbstractAccountAuthenticator { } } @android.annotation.EnforcePermission(android.Manifest.permission.ACCOUNT_MANAGER) @Override public void getAccountCredentialsForCloning(IAccountAuthenticatorResponse response, Account account) throws RemoteException { checkBinderPermission(); try { final Bundle result = AbstractAccountAuthenticator.this.getAccountCredentialsForCloning( Loading @@ -351,11 +351,11 @@ public abstract class AbstractAccountAuthenticator { } } @android.annotation.EnforcePermission(android.Manifest.permission.ACCOUNT_MANAGER) @Override public void addAccountFromCredentials(IAccountAuthenticatorResponse response, Account account, Bundle accountCredentials) throws RemoteException { checkBinderPermission(); try { final Bundle result = AbstractAccountAuthenticator.this.addAccountFromCredentials( Loading Loading @@ -465,12 +465,12 @@ public abstract class AbstractAccountAuthenticator { } } @android.annotation.EnforcePermission(android.Manifest.permission.ACCOUNT_MANAGER) @Override public void isCredentialsUpdateSuggested( IAccountAuthenticatorResponse response, Account account, String statusToken) throws RemoteException { checkBinderPermission(); try { final Bundle result = AbstractAccountAuthenticator.this .isCredentialsUpdateSuggested( Loading
core/java/android/accounts/IAccountAuthenticator.aidl +6 −0 Original line number Diff line number Diff line Loading @@ -62,6 +62,7 @@ oneway interface IAccountAuthenticator { /** * launches an activity that lets the user edit and set the properties for an authenticator */ @EnforcePermission("ACCOUNT_MANAGER") @UnsupportedAppUsage void editProperties(in IAccountAuthenticatorResponse response, String accountType); Loading @@ -69,6 +70,7 @@ oneway interface IAccountAuthenticator { * returns a Bundle where the boolean value BOOLEAN_RESULT_KEY is set if the account has the * specified features */ @EnforcePermission("ACCOUNT_MANAGER") @UnsupportedAppUsage void hasFeatures(in IAccountAuthenticatorResponse response, in Account account, in String[] features); Loading @@ -76,12 +78,14 @@ oneway interface IAccountAuthenticator { /** * Gets whether or not the account is allowed to be removed. */ @EnforcePermission("ACCOUNT_MANAGER") @UnsupportedAppUsage void getAccountRemovalAllowed(in IAccountAuthenticatorResponse response, in Account account); /** * Returns a Bundle containing the required credentials to copy the account across users. */ @EnforcePermission("ACCOUNT_MANAGER") void getAccountCredentialsForCloning(in IAccountAuthenticatorResponse response, in Account account); Loading @@ -89,6 +93,7 @@ oneway interface IAccountAuthenticator { * Uses the Bundle containing credentials from another instance of the authenticator to create * a copy of the account on this user. */ @EnforcePermission("ACCOUNT_MANAGER") void addAccountFromCredentials(in IAccountAuthenticatorResponse response, in Account account, in Bundle accountCredentials); Loading Loading @@ -116,6 +121,7 @@ oneway interface IAccountAuthenticator { /** * Checks if the credentials of the provided account should be updated. */ @EnforcePermission("ACCOUNT_MANAGER") void isCredentialsUpdateSuggested(in IAccountAuthenticatorResponse response, in Account account, String statusToken); }