Ejemplo n.º 1
0
void cleanupInput()
{
  if(inputfd != -1)
  {
    suinput_close(inputfd);
  }
}
Ejemplo n.º 2
0
void closeInputWithoutRevertPermission(){
	LOGD(LOGTAG, "Closing input device...");
	if(inputFd==-1){
		if(suinput_close(inputFd)==-1){
			LOGD(LOGTAG, "Error closing input device..");
		}
		LOGI(LOGTAG, "Device closed.");
	}else{
		LOGI(LOGTAG, "Nothing to close.");
	}
}
Ejemplo n.º 3
0
void closeInput(){
	LOGD(LOGTAG, "Closing input device...");
	if(inputFd!=-1){
		if(suinput_close(inputFd)==-1){
			LOGD(LOGTAG, "Error closing input device..");
		}
		LOGI(LOGTAG, "Device closed.");
		system("su -c \"chmod 660 /dev/uinput\"");
		inputFd = -1;
	}else{
		LOGI(LOGTAG, "Nothing to close. (Device has not opened)");
	}
}
Ejemplo n.º 4
0
static void uSynergyDisconnectDevice(uSynergyCookie cookie)
{
	suinput_close(cookie->uinput_mouse);
	suinput_close(cookie->uinput_keyboard);
}