设置UI不可被锁住
public void resetLock() { boolean pattern = Settings.Secure.putInt(getContentResolver(),Settings.Secure.LOCK_PATTERN_ENABLED, 0);boolean password = Settings.Secure.putLong(getContentResolver(), "lockscreen.password_type",DevicePolicyManager.PASSWORD_QUALITY_SOMETHING);}