Default [Q] Capture screen, inject events without root

Hi everyone

I'm trying to write a program which can capture screen and inject touch and keyboard events. Is there exist some way to do it without root privileges?
I've tried to use /dev/graphics/fb0 device to capture screen, but it requires root.

Can anybody give me some advice?