[vbox-dev] Guest additions for Android

Michael Thayer michael.thayer at oracle.com
Thu Mar 24 14:41:44 GMT 2011


Hello Vladmir,

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
[Snip]
> 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
> whole
> 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
library at

http://www.virtualbox.org/browser/trunk/src/VBox/Additions/common/VBoxGuestLib

(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.

Regards,

Michael
-- 
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 mailing list