Hi again,
Controul UI / lockScreen() is a brilliant idea. Danke!
Only issue with that is, it triggers a Samsung bug in my S10e. If face recognition is turned on as unlock method, calling this function will turn off the device, but it comes back on half a second later on the lock screen. As I am still looking at it, the phone immediately unlocks again and I'm back where I started.
With face recognition completely disabled, this does not happen and the phone stays off after calling lockScreen().
IDK what I will do now. Has anybody an idea how I could fight the bug and suppress the immediate re-turn-on by any Automagic magic?