|
|
|
|
|
by adrianmonk
2964 days ago
|
|
And/or spoof a cell tower. If they are careful with their implementation, they could protect against it. The naive way is to store the time of last unlock and simply compare that against the current time, but there are other ways: (1) Once 7 days elapses, set a flag that can only be cleared by unlocking the device, and check that flag in addition to the time. (2) If there is an internal hardware clock that isn't synced to real time, just count relative to that clock. You don't need to know absolute time to check how long it has been since last unlock. |
|
This is known as a montonic clock and it’s been built in to most hardware for exactly this reason. Mach, Linux, etc. have encouraged use for anything where things like leap seconds or time changes aren’t desirable.