Hello.
I have tried to run Android-x86 in "KVM" virtual machine software. It worked OK, until I decided to add a USB tablet, so that I could avoid mouse pointer grab, and, ideally, use my touchscreen. The problem is - it works only for older versions, the latest working one is 4.4. Later versions of Android (unlike any other OS) think that the USB tablet presented by QEMU is a touchpad (relative input device), and not touchscreen (which is absolute). Fortunately, it is easy to fix, and I want it to be fixed in the next build, and ideally propagated to all affected stable releases.
More details:
I installed Android-x86 in QEMU like this:
mkdir android
cd android
dd if=/dev/null of=hda.dsk bs=1G seek=4
qemu-system-x86_64 -m 2048 -enable-kvm -smp 4 -hda hda.dsk -cdrom /tmp/android-x86_64-8.1-rc2.iso -vga std
Then I tried to add a USB tablet:
qemu-system-x86_64 -show-cursor -m 2048 -enable-kvm -smp 4 -hda hda.dsk -display sdl -vga std -device qemu-xhci -device usb-tablet
This resulted in a weird mouse (not moving at all unless a button is pressed), until I added this override:
mkdir -p /data/system/devices/idc
echo 'touch.deviceType = touchScreen' > /data/system/devices/idc/Vendor_0627_Product_0001.idc
chown -R system:system /data/system/devices
Obviously, in the released images, this should go to /system/devices/idc instead.
--
Alexander E. Patrakov