Skip to content

Feature Request: libcamera support #519

@rothn

Description

@rothn

Is your feature request related to a problem? Please describe.
Waydroid currently supports mainline Linux cameras by passing low-level V4L2 camera devices through to Android, which sets them up as extremely limited external webcams. This is not ideal, e.g. for Android apps that use the front-facing camera to capture QR codes.

Describe the solution you'd like

  • Include libcamera as an optional dependency
  • Install the compiled libcamera Android HAL in the container
  • Set "ro.hardware.camera=<libcamera-so-path>" instead of "ro.hardware.camera=v4l2" on supported hardware

Describe alternatives you've considered

  • One-off camera implementations per platform: Infeasible due to required effort, but support would be betteer
  • Vanilla v4l2-- Generally unusable because lacks color calibration support, autofocus, etc. found in complex cameras (e.g., PinePhone Pro, Librem 5)

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions