The unlock prompt to start UI automation was added as an extra layer of security,
More security no one asked for and no one wanted. Hint: it's a test device and there is no private data to protect. Now I have to reduce the overall security of the device by removing the pin because test run over night when no one is there to type in the passcode.