Smart Lock for Passwords not working on certain phones, error message “No eligible accounts on this device”

人走茶凉 提交于 2019-12-31 03:06:11

问题


When I run the quick-start sample from: https://github.com/googlesamples/android-credentials/

On a Nexus 6 running Marshmallow, the credentials are saved successfully.

However, on a Samsung Note 5 with Lollipop (5.1.1) I get:

11-25 14:45:27.581 11428-11428/com.google.example.credentialsbasic D/MainActivity: Save Failed:Status{statusCode=No eligible accounts on this device for the credentials API., resolution=null}

According to Google Smart Lock for Password is on by default, and I cannot find the setting for it in Samsung settings. Does this mean that Samsung phones don't support Smart Lock for Passwords? Is this a feature that will really only work on Nexuses?

I cannot find any documentation on this in terms of device support or the error message I provided.


回答1:


Straight after I posted this, I found my answer.

The issue is not with the flavour of Android, but with the Google account settings. The account that I was using on the Samsung Note 5 had a custom passphrase encrypting passwords, which is not supported by Smart Lock for custom passwords.

I found the settings for Smart Lock for Passwords under a separate place from the other Smart Lock settings on the Samsung. They were under Accounts -> Google -> scroll to very bottom:



来源:https://stackoverflow.com/questions/33907279/smart-lock-for-passwords-not-working-on-certain-phones-error-message-no-eligib

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!