Solution if the android sdk emulator can't access the /dev/video2 file created with the v4l2loopback module to use it as a virtual web cam in case you are capturing the screen for x utility.
If for example your pc represents the video capture devices with /dev/video0 and /dev/video1, you need to give the user read and write permissions to those files because the emulator iterates through each file /dev/video* and when it finds that it doesn't have the necessary permissions it stops iterating and fails to get to /dev/video2.
So you have to give read and write permissions to all files referred to /dev/video* if you are using them.
In case you are not using it you can do the following:
