Merge "Fix error in clocks leading to devices staying unlocked" into lmp-mr1-dev

gugelfrei
Paul Lawrence 10 years ago committed by Android (Google) Code Review
commit acfdc30e37

@ -3742,7 +3742,7 @@ int cryptfs_get_password_type(void)
char* cryptfs_get_password()
{
struct timespec now;
clock_gettime(CLOCK_MONOTONIC, &now);
clock_gettime(CLOCK_BOOTTIME, &now);
if (now.tv_sec < password_expiry_time) {
return password;
} else {

Loading…
Cancel
Save