Enable Webcam for AVD
Something like this ..
To configure a webcam for the Android emulator in Android Studio:
-
Install OBS (Open Broadcaster Software) and enable the OBS virtual camera feature. This will create a virtual webcam that can be used by other applications. [1]
-
In the Android emulator config.ini file located at ~/.android/avd/<your_device>.avd/config.ini, add or update the line:
hw.camera.back=webcam1
This will set the back camera of the emulator to use the OBS virtual webcam. [1]
-
Restart the Android emulator. The camera preview should now show the OBS studio output instead of the default camera.
-
Make sure to enable the OBS virtual camera and set up your scene in OBS studio to display what you want the emulator camera to show.
Let me know if you have any other questions!
[1] Using the OBS Virtual Camera in the android emulator : r ...
https://github.com/freeload101/Java-Android-Magisk-Burp-Objection-Root-Emulator-Easy/blob/21878c044ccad1313c7d218a2a7506e02dc8e821/JAMBOREE.ps1#L798
doesn't work with me
I have created a issue template for you can you update this issue with the following ?:
Expected Behavior
Actual Behavior
Steps to Reproduce the Problem
Specifications
- Version:
- Platform:
- Subsystem:
Additional information Add any other context about the problem here.
doesn't work with me
I have created a issue template for you can you update this issue with the following ?:
Expected Behavior
Actual Behavior
Steps to Reproduce the Problem
Specifications
- Version:
- Platform:
- Subsystem:
Additional information Add any other context about the problem here.
,Expected behaviour : Getting AVD working with webcam of obs Actualy behaviour : Android Studio will ignore webcam1 and return "None" type Tested on Android Studio 2023 , 2024 on i Can confirm that windows 10 and windows 11 can't feed obs virtual cam data into Android studio by just changing ~/.android/avd/<your_device>.avd/config.ini possible workaround is to temprorary disable webcam0 and replace obs virtualcam with webcam0 that way might work? Freeload101 can you add a fix
Yeah I don't think that would work what you're looking for is some kind of program that will make a virtual webcam look like a hardware webcam..?
- Create your OBS virtual webcam
- Goto any "test your webcam" website
- If it does not show up there I would look for some kind of virtual video input manager there's probably a ton of them where you can combine like two webcams into a single virtual input and maybe even hopefully hardware so that it shows up on the website?
It's kind of at a scope for JAMBOREE traditionally when people are trying to do stuff with Android and webcams they're trying to bypass some sort of identity check and there's literally $100,000 bounties for that stuff not going to figure it out it's way above both our pay grades ;)
Let me know if you have any other suggestions thanks again