'Android Biometric: Read/Use OS unlock time in app

I am working on a project that I would like to read the last successfully device/OS unlock time; in another word, how long has the device been last unlocked. I don't see such functionality in Androidx Biometric. Wondering if anyone has insights on that, thanks!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source