Java-Android-Magisk-Burp-Objection-Root-Emulator-Easy icon indicating copy to clipboard operation
Java-Android-Magisk-Burp-Objection-Root-Emulator-Easy copied to clipboard

Enable Webcam for AVD

Open freeload101 opened this issue 2 years ago • 6 comments

Something like this ..

To configure a webcam for the Android emulator in Android Studio:

  1. 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]

  2. 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]

  1. Restart the Android emulator. The camera preview should now show the OBS studio output instead of the default camera.

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

freeload101 avatar Nov 22 '23 02:11 freeload101

https://github.com/freeload101/Java-Android-Magisk-Burp-Objection-Root-Emulator-Easy/blob/21878c044ccad1313c7d218a2a7506e02dc8e821/JAMBOREE.ps1#L798

freeload101 avatar Nov 28 '23 15:11 freeload101

doesn't work with me

zakodai avatar Aug 24 '24 16:08 zakodai

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.

freeload101 avatar Aug 26 '24 12:08 freeload101

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.

freeload101 avatar Aug 26 '24 12:08 freeload101

,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

Al-mualim avatar Sep 06 '24 13:09 Al-mualim

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

freeload101 avatar Sep 17 '24 08:09 freeload101