It allows the user to trigger device locking actions
I also tried to include a recording feature, but the recording stops automatically when the device is locked
You are right, this behavior is expected and enforced by Android’s security system
the system treats it as an administrative or potentially remote lock action, For security reasons, Android temporarily disables biometric authentication (such as fingerprint or face unlock) and requires the user to unlock the device once using a secure method like a PIN, pattern, or password.
This is part of Android’s “strong authentication required” policy, which is designed to prevent unauthorized access after a forced lock. It is the same behavior that occurs after events like device reboot or multiple failed unlock attempts
There is no official API or supported method to keep biometrics enabled
It’s still under development right now—I’m making sure it works reliably across all devices before releasing it. Once it’s ready, I’ll share it, but it may be a paid extension.