The UserManager's isUserUnlocked() method has the following comment:
* Return whether the provided user is already running in an
* "unlocked" state or in the process of unlocking.
* On devices with direct boot, a user is unlocked only after they've
* entered their credentials (such as a lock pattern or PIN). On devices
* without direct boot, a user is unlocked as soon as it starts.
* When a user is locked, only device-protected data storage is available.
* When a user is unlocked, both device-protected and credential-protected
* private app data storage is available.
on my pixel it behaves like the "direct boot" is not supported, however from what I understand on every device with the most recent Android direct boot is on? Or does it need to be switched on manually for the newly created user profile?
The same "always true" response i get from the isUserRunning(uid) call - even if the user with the uid was never switched to after reboot.