Open llzz9595 opened 3 years ago
try to set ro.hardware.camera=goldfish
or ro.hardware.camera=ranchu
camera is running! cameraserver 64 1 0 09:30:52 136:0 00:00:00 android.hardware.camera.provider@2.4-service cameraserver 234 1 0 09:30:54 136:0 00:00:00 cameraserver u0_a118 9007 232 1 09:54:00 136:0 00:00:00 com.android.example.camera2.basic
but the docker has some error like this : 10-25 09:51:12.551 734 1205 E AHardwareBuffer: GraphicBuffer(w=4, h=4, lc=1) failed (Out of memory), handle=0x0
camera still not working
personally, I tested on redroid-9
, but redroid-11
should work out of the box.
I will look into this soon.
you may try some running under software rendering docker run ... redroid.gpu.mode=guest
10-25 11:04:53.930 1833 1833 V CAM_CameraController: Closing camera 10-25 11:04:53.931 1833 1862 W CAM2PORT_AndCamAgntImp: Releasing camera without any camera opened. 10-25 11:04:53.932 1833 1833 W CAM_Camera2OneCamMgr: No back-facing camera found. 10-25 11:04:53.932 1833 1833 W CAM_Camera2OneCamMgr: No external camera found. 10-25 11:04:53.932 1833 1833 W CAM_Camera2OneCamMgr: No front-facing camera found. 10-25 11:04:53.932 1833 1833 W CAM_Camera2OneCamMgr: No external camera found.
personally, I tested on
redroid-9
, butredroid-11
should work out of the box. I will look into this soon. you may try some running under software renderingdocker run ... redroid.gpu.mode=guest
It ran some error like this when i opened camera:
W ServiceManager: Permission failure: android.permission.SYSTEM_CAMERA from uid=10119 pid=23846
Work?
for goldfish
/ ranchu
emulator camera, need create a camera service to feed metadata / video stream; and change qemupipe
to some other IPC
mechanism (socket
etc,)
Is there an easy way to connect camera emulator to v4l2
(/dev/video0
)?
As I understand goldfish
is an emulator and included in redroid-11
, right?
redroid
is a totally different solution compared with goldfish
emulator. redroid
is a pure container solution, and can access all devices in Host directly.
Well, Camera is not emulated in redroid, but feasible. The goldfish camera Hal and v4l2 Hal in AOSP codebase are good samples.
Sent from my iPhone
On Dec 27, 2021, at 11:22 PM, vanokh @.***> wrote:
Is there an easy way to connect camera emulator to v4l2 (/dev/video0)? As I understand goldfish is an emulator and included in redroid-11, right?
— Reply to this email directly, view it on GitHubhttps://github.com/remote-android/redroid-doc/issues/52#issuecomment-1001597839, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAP5VMSHUJAWLBAGPOMOYBLUTB2XDANCNFSM5GUYRQPQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were assigned.Message ID: @.***>
personally, I tested on
redroid-9
, butredroid-11
should work out of the box. I will look into this soon. you may try some running under software renderingdocker run ... redroid.gpu.mode=guest
It ran some error like this when i opened camera:
W ServiceManager: Permission failure: android.permission.SYSTEM_CAMERA from uid=10119 pid=23846
@llzz9595 did you resolved this error? i'm facing the same thing
我添加了goldfish相关模块如下,但我发现android11 goldfish camera模块上不会生成camera.goldfish.so,camera依然无法起效。
docker容器报错: Could not get passthrough implementation for android.hardware.camera.provider@2.4::ICameraProvider/legacy/0.