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?
Sign out is to cancel the authorization. Actually, you do not log out.
The
getAccountsByTypeinterface 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.