How to confirm device credential before Android 5.0 (API 21)?

前端 未结 2 1620
没有蜡笔的小新
没有蜡笔的小新 2021-01-17 17:31

I have a use case that requires the user to confirm device credential, and the createConfirmDeviceCredentialIntent method in KeyguardManager perfectly meets my need. However

2条回答
  •  死守一世寂寞
    2021-01-17 18:23

    The best answer I have seen for this situation is described in a blog post:

    Android Secrets

    However, it recreates system classes that are private and calls AOSP code that is not public. My bounty is for a better answer that would not require explicit Class naming inside the project. Perhaps Smart Lock or another awesome security library can be used for the backward compatibility I require.

提交回复
热议问题