Uinput virtual device is detected as physical keyboard on android
问题 I've created a simple native library in C that allows the user to create a device using uinput module. The code seems to work, but there's a problem: my virtual device is detected as physical keyboard and, when I need to write some text, the soft keyboard doesn't appear since android detects a real keyboard connected. How to set this device virtual? If i don't set the keybits it is not detected as a physical keyboard, but I need the keys enabled. #include <string.h> #include <jni.h> #include