AccountManager return huawei account even if account have been signed out

105 views Asked by At

Android Version: 7 Huawei devices

AccountManager still returns account information after the user has been logged off. It should not return account information after it has been logged off.

accountManager.getAccountsByType("com.huawei.hwid")

is there any alternative for getting active account info in Android?

1

There are 1 answers

4
zhangxaochen On

Sign out is to cancel the authorization. Actually, you do not log out.

The getAccountsByType interface in the Account-AdvancedSDK can obtain account information without authorization.

The two are not in the same SDK. You can use the signIn interface in the SDK to obtain account information.