Closed ignoramous closed 4 years ago
Screenlock service is started when the device receives SCREEN_LOCK event, the service is stopped once the automatically lock by android smartlock criteria is met. Testing in progress.
See also: #23
This has stopped happening after DeviceLockService behaviour was changed to not call into the vpn-adapter to restart the VPN
ScreenLockService
responsible for enforcing universal-firewall rule "block all apps on device locked" is started in response toACTION_SCREEN_OFF
broadcast and never goes away after that:stopSelf
the service onceScreenLockService
is done setting the universal firewall rule.A
BroadcastReciever
listening onACTION_USER_PRESENT_BROADCAST
undoes any universal firewall rulesScreenLockService
might have set.