1

My Android app requires a screen lock, so that KeyguardManager.isDeviceSecure will return true. If a screen lock is missing, I want the make the user aware, that a screen lock is required and present a button, that opens the screen lock settings.

As in post "Intent to launch fingerprint enrollment screen" described, the screen lock setting is located at another locatioin for some devices (e.g. Huawei P9).

Depending on the device I should open Settings.ACTION_SETTINGS or Settings.ACTION_SECURITY_SETTINGS. Is there a way to determine what to use on which device?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62

0 Answers0