Image injection android physical phone

Hey guys,

Is there a route to inject images to the camera.

For example lets say on my android mobile phone, i am registering with an app and they want me to take a live photo or video of my self. Instead of taking a photo i would like to inject an image. I know this is possible but theres bo inormation about this online.