[vbox-dev] Guest additions for Android
michael.thayer at oracle.com
Thu Mar 24 07:41:44 PDT 2011
On Thu, 2011-03-24 at 07:21 -0700, Vladimir Chtchetkine wrote:
> I'm running Android as a guest, and want to use host cursor in it
> I've read and re-read the doc, but I still can't get it how can I
> write my
> own (standalone) guest addition app that would be separate from the
> guest additions installation enchilada. Is it possible at all?
I'm afraid that mouse pointer integration is not very well separated
from other bits - we have a kernel module called vboxguest.ko which
provides a lot of unrelated services, including pointer integration.
However, since Android uses a Linux kernel that module should work there
with few or no changes. You can then send ioctls from user space to get
the pointer position and set the pointer bitmap. There is a userspace
(the R3 bits, not the R0 ones) which handles most of the protocol-y
stuff, so that you can just build and link that library and call the
high-level services it provides. The library should be reasonably
portable, and works on Windows, OS/2 and various Unix-y guests, so it
should again be usable with few or no changes on Android.
Let me know if that helps.
ORACLE Deutschland B.V. & Co. KG Michael Thayer
Werkstrasse 24 VirtualBox engineering
71384 Weinstadt, Germany mailto:michael.thayer at oracle.com
Hauptverwaltung: Riesstr. 25, D-80992 München
Registergericht: Amtsgericht München, HRA 95603
Komplementärin: ORACLE Deutschland Verwaltung B.V.
Rijnzathe 6, 3454PV De Meern, Niederlande
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
Geschäftsführer: Jürgen Kunz, Marcel van de Molen, Alexander van der Ven
More information about the vbox-dev