How can I add mock location permission to Android jobs?

Googling this message invariably says that you need to enable Mock Locations for your specific app in Development options in emulator’s GUI (the same as for a real device). Not very helpful for an automated run.

Finally, I guessed to search if the same is possible with ADB (googled “adb enable mock locations command line”):