Monday, 30 September 2013

Uinput virtual device doesn't open android

Uinput virtual device doesn't open android

I'm trying to create a virtual device on Android but despite my efforts i
can't seem to be able to open /dev/uinput.
I've created a native library and with it i can open the devices from
dev/input and can even monitor, inject and block events. Most of it came
from
http://www.pocketmagic.net/2013/01/programmatically-injecting-events-on-android-part-2/#.UkmnRtKfjz9.
int fd;
fd = open("/dev/uinput", O_WRONLY | O_NONBLOCK);
I've checked and there is /dev/uinput and i've also granted permissions
666 to /dev/uinput.
Any ideas?

No comments:

Post a Comment