Android x86 virtualbox + camera

19.3k Views Asked by At

I would like to know how to use my laptop's built-in webcam with android x86 in virtualbox.

I already tried to launch the default "Camera" app that told me that I had to configure a SDCard, what I did with this tutorial : SD card virtualbox

But now I would like to know how to make the VM be aware of my webcam and let it be used by android.

I downloaded the plugin for USB2 hosts but the webcam does not appear in the devices list...

Thank you for your help!

3

There are 3 best solutions below

0
On

I am just pasting it here from ASK UBUNTU as it was also a necessary step to activate the USB camera (still works 2023):

The same answer of @Nathan Osman , However , it required to belong to vboxusers group to be able to see all devices on adding one.

sudo usermod -a -G vboxusers $(whoami)

Logout & login again , check if your vboxusers displays in this command :

groups

Source: https://askubuntu.com/questions/4875/how-can-i-use-my-webcam-with-ubuntu-running-in-virtualbox

0
On

In the Android Emulator you can select an Webcam (in the avd-emulator settings menu), try that one first. So you can see if it is actually working with Android

1
On

If anyone is ever viewing this question, the solution for me was to install "Oracle VM VirtualBox Extension Pack". You'll need to follow different setup procedure depending on your OS, however the extension pack itself is available from Oracle Virtualbox: https://www.virtualbox.org/wiki/Downloads.