2

I would like to set screen lock from SWIPE to NONE for device specific. Once i set and after it also show in setting also.

Palak
  • 2,165
  • 2
  • 21
  • 31
  • Did you manage to do that programmatically? – Maksim Dmitriev Oct 27 '14 at 11:06
  • Still i didn't manage, but i want to do whole task programmatically. – Palak Oct 27 '14 at 12:17
  • I don't think you can set the lock screen mode to NONE if the current value is SWIPE. But you will reset the password if you call http://developer.android.com/reference/android/app/admin/DevicePolicyManager.html#resetPassword(java.lang.String, int) with an empty string as the first parameter – Maksim Dmitriev Oct 27 '14 at 15:38

2 Answers2

1

For Android 7.1, it works for me with below changes

def_lockscreen_disabled changed to 'true' in below file

frameworks/base/packages/SettingsProvider/res/values/defaults.xml

0

adb shell locksettings set-disabled true

zeitgeist
  • 852
  • 12
  • 19