android-emulator-container-scripts icon indicating copy to clipboard operation
android-emulator-container-scripts copied to clipboard

Camera (emulated mode) not working in Android Emulator

Open ashishnarmen opened this issue 4 years ago • 0 comments

I have run into an issue with the setting up the camera in emulated mode in the Android Emulator container. I have tried to pass emulator params and also tried to specify it in the AVD Configuration, but that did not work. Is it supported? Am I specifying the correct argument(s)? This is the command that I have used

docker run -d \
  -e ADBKEY="$(cat ~/.android/adbkey)" \
  -e EMULATOR_PARAMS="-camera-back emulated" \
  -e AVD_CONFIG="hw.camera.back=emulated" \
  --device /dev/kvm \
  --publish 8554:8554/tcp \
  --publish 5555:5555/tcp  \
  us-docker.pkg.dev/android-emulator-268719/images/29-google-x64:30.1.2

ashishnarmen avatar Jul 25 '21 03:07 ashishnarmen