问题
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