public class SecurityCtrl
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BUNDLE_ERROR_CODE |
static java.lang.String |
BUNDLE_ERROR_MSG |
static int |
RESULT_CODE_ERROR |
static int |
RESULT_CODE_SUCCESS |
| Constructor and Description |
|---|
SecurityCtrl(android.content.Context context)
Instantiates a new Security ctrl.
|
| Modifier and Type | Method and Description |
|---|---|
android.os.Bundle |
LockscreenGetType()
Gets the current lockscreen type, the return value contains the lockscreen type details
The lockscreen setting can be configured in the Settings App > Security > Screen Lock. |
android.os.Bundle |
LockscreenSetType(java.lang.String newType,
java.lang.String newParam,
java.lang.String curType,
java.lang.String curParam)
Sets the current lockscreen type, the return value contains the lockscreen type details
The lockscreen setting can be configured in the Settings App > Security > Screen Lock. |
android.os.Bundle |
setAdbDebugging(boolean enabled)
Set adb debugging .
|
public static final java.lang.String BUNDLE_ERROR_CODE
public static final java.lang.String BUNDLE_ERROR_MSG
public static final int RESULT_CODE_ERROR
public static final int RESULT_CODE_SUCCESS
public SecurityCtrl(android.content.Context context)
context - the contextpublic android.os.Bundle setAdbDebugging(boolean enabled)
enabled - true or false (boolean)public android.os.Bundle LockscreenGetType()
public android.os.Bundle LockscreenSetType(java.lang.String newType,
java.lang.String newParam,
java.lang.String curType,
java.lang.String curParam)
newType: - A string indicating the new screen lock type. It can be one of the following strings:newParam: - The parameter of the new screen lock type if it requires one. For examplecurType: - If the device’s current lockscreen type is PIN or PASSWORD, you must provide this parameter.curParam: - If the device’s current lockscreen type is PIN or PASSWORD, you must provide this parameter.