Fix of the issue that after blocking
passcode from Center, Pure would still
display passcode input popup; providing
valid passcode there would result in
phone entering invalid state, where it
behaved as if it was unlocked, but
with blocked passcode.
Fixed file access via MTP even when phone is not unlocked.
Now access is granted when the phone is unlocked by the user entering
a passcode. If the phone is not passcode protected (passcode is nor set)
then access to the files is always possible via MTP.
Fix of the issue that passcode lock time
wasn't updating on 'Wrong passcode' popup,
what led to discrepancy of the time
between lock screen and the popup.
Implemented PhoneTimeLock after unsuccessful attempts. TimeLock
data stored in DB on each attempt and read on system start.
Cleanup PhoneLockHandler structure.
- rename ServiceDB to ServiceDBCommon,
- create separate ServiceDB for Pure and Bell,
- move Pure-specific functionality
from `ServiceDBCommon` to Pure `ServiceDB`
Limit of 4 attempts of unlocking phone is disabled
due to requirements change. This is a temporary solution until
time intervals between attempts will be intorduced.
Old logic remains untouched on purpose.
It will be reused in final implementation.