h6. What Leverage some existing checks into We should expose a function that allows the end developer to check if the underlying device has a lock screen enabled.
h6. Why Adding a lock screen a lock screen enhances device security and is used as a seed for various encryption functions in Android Security SDK . Providing a check to see if the device lock is set to and end developer will be a helpful feature. h6. How Using We can use the recommendations coming out of Android KeyguardManager class to check if the initial IdM SDK Module work device has a lock screen set. http {code : java} / /feedhenry ** * Detect if the device has a lock screen setup (pin, password etc) . org * / mobile-security/#mobile_app_self_defence Check to be completed for this JIRA: public void detectDeviceLock() { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { KeyguardManager keyguardManager = (KeyguardManager) context.getSystemService(KEYGUARD_SERVICE); if (keyguardManager.isDeviceSecure()) { return true; } { return false; } } else { return false; } } {code}
*Note*: We should make a note in the docs that this is only available from Android M onwards. |
|