Instead of using the real camera, I would like to simulate the camera input as a static image file. I want it to work with any app, as if it was a camera. To be specific, the Android is inside an emulator in a computer with no webcam.
(Like in this question, but a static image is enough for me)
To be more specific, I want to scan a QR code from WhatsApp in order to use WhatsApp web, so using apps that open when an apps wants to open a camera doesn't work. I need something like a fake camera driver.