Smart Lock for Passwords 在某些手机上不起作用,错误消息 "No eligible accounts on this device"

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

当我 运行 快速入门示例来自:https://github.com/googlesamples/android-credentials/

在 Nexus 6 运行ning Marshmallow 上,凭据已成功保存。

但是,在带有 Lollipop (5.1.1) 的三星 Note 5 上,我得到:

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}

根据 Google Smart Lock for Password 默认开启,我在三星设置中找不到它的设置。这是否意味着三星手机不支持 Smart Lock for Passwords?这是真的只适用于 Nexuses 的功能吗?

我找不到关于设备支持或我提供的错误消息的任何文档。

我发布这篇文章后立即找到了答案。

问题不在于 Android 的风格,而在于 Google 帐户设置。我在 Samsung Note 5 上使用的帐户有自定义密码加密密码,Smart Lock 不支持自定义密码。

我在三星的其他 Smart Lock 设置中找到了 Smart Lock for Passwords 的设置。它们在帐户下 -> Google -> 滚动到最底部: