Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add lockscreen requirements #76

Open
jingtang10 opened this issue Jul 1, 2020 · 2 comments · May be fixed by #2445
Open

Add lockscreen requirements #76

jingtang10 opened this issue Jul 1, 2020 · 2 comments · May be fixed by #2445
Assignees
Labels
P2 Medium priority issue security

Comments

@jingtang10
Copy link
Collaborator

Add lockscreen requirements in the SDK
https://developer.android.com/reference/android/app/KeyguardManager#isDeviceSecure()

Please note that this API is available from API level 23, and the SDK's min API level is 21. We can probably fall back to https://developer.android.com/reference/android/app/KeyguardManager#isKeyguardSecure() for API<23.

@jingtang10
Copy link
Collaborator Author

see https://developer.android.com/reference/android/app/admin/DevicePolicyManager#getPasswordComplexity() for ensuring there's a password of sufficient complexity.

@stevenckngaa
Copy link
Collaborator

I have created #1861 to allow app developers to declare lock screen policy. However, the PR only supports API 27+. In addition, the PR only supports WARN at the moment. Meaning that, when the lock screen policy isn't met, the app developer provided PendingIntent will be invoked. App developers can follow the example in the demo app to ask users to set up a more secure lock screen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment