budtmo / docker-android

Android in docker solution with noVNC supported and video recording
Other
9.56k stars 1.27k forks source link

[🚀 Feature Request ]: Documentation for how the current camera system works/support for image injection #376

Closed Loeing closed 1 year ago

Loeing commented 1 year ago

Idea

The current camera system differs from the vanilla Android SDK. Rather than being presented with a virtual room that can be navigated there is the pixelated image of a house. It would be useful to know how this system works. All the resource files for the classical way to present the virtual camera exist in the container under /opt/android/emulator/resources but don't seem to be utilized.

Probelm to solve

In the Vanilla version of the SDK it is possible to do image injection via posters (as demonstrated in #128 ) the currently adding a poster does nothing as the container does not appear to be utilizing the virtual room. Support for this feature would be very welcome.

Additional Note

No response

Loeing commented 1 year ago

After poring over the android emulator man pages/ and config.ini files, it's become apparent that you can get the virtual scene to show up in the emulator by passing in a -camera-back virtualscene argument. As far as Docker Android is concerned this just means adding -camera-back virtualscene and/or -camera-front virtualscene to the EMULATOR_ADDTIONAL_ARGS environment variable. You should then be able to do camera injection as normal. Be warned: doing this seems to override the skin somehow and you're likely to end up with a virtual pixel. No idea why that happens.