My Java skills are low, but I'm mastering shell.
Is use LineageOS 14.1 (forked from cyanogenmod).
I would like to create a shell script on a rooted devive to enable/disable lockscreen (PIN).
I would like to unlock my screen at home when a special SSID is present.
I'm able to discover my known network by running :
#!/bin/bash iw dev wlan0 scan | grep MY_SSID
Now, is there a command line to disable/enable the PIN based lock screen depending of the output of this command please ?
Maybe something based on
am <something> <stop|start>
Tried to make a diff from
ps with and without lockscreen, but I only have
cyanogenmod.snap as diff, tried to kill the process, but still the lockscreen.
Any hint please ?