Commit Graph
19 Commits
Author SHA1 Message Date
pjgowtham 41424fcfbe ferrari: Report the face unlock no-face timeout as TIMEOUT
The face HAL ends an attempt that sees no face for 151 frames with
UNABLE_TO_PROCESS. SystemUI treats that as a hardware error and
retries up to four times, so a single lock screen wake keeps the front
camera cycling for about a minute, racing any other camera client.

  E face_aidl.FaceSession: No face times have reached 151 counts, so cancel!
  E face_aidl.FaceSession: onError(error=2, vendor=0)
  E FaceAuthenticateOptions:  unmapped FaceAuthUiEvent FACE_AUTH_TRIGGERED_RETRY_AFTER_HW_UNAVAILABLE

One such camera close stalled while Aperture opened the rear camera,
and the HAL's watchdog killed it:

  F DEBUG   : signal 11 (SIGSEGV), code 0 (SI_USER), fault addr --------
  F DEBUG   :       #08 pc 000000000003dfcc  /vendor/lib64/libcamera2ndk_vendor.so (ACameraDevice_close.cfi+36)
  F DEBUG   :       #09 pc 0000000000025e60  /odm/bin/hw/vendor.oplus.hardware.biometrics.face@1.0-service (CameraHelper::closeCameraNoLock()+316)

Report it as TIMEOUT, which is what it is.

Assisted-by: LLM
Change-Id: Ibbb5189c7181427d975e3c26695927ffbca2b9e6
2026-11-23 22:27:53 +05:30
pjgowtham 6401b33c1a ferrari: Enable Oplus camera extensions
Take the extensions, the camera unit SDK they drive and its sepolicy
from vendor/oplus/camera, and declare Night and Bokeh on the main
camera in camera_unit_config, which predates the SDK's
cameraExtensionConfig. Pin the Night preview sizes, as newer Oplus
devices do, since the SDK otherwise derives portrait oriented ones from
the screen and CameraX finds no output size.

The rear portrait preview is configured for two cameras, but an
extension session has a single stream, so APS rejects every frame
("dispatchInputData() undefined case!!") and the viewfinder stays black.
Configure it for one camera.

Front Night is left out: the HAL aborts on the capture request.

Assisted-by: LLM
Change-Id: Iecbc00963d94c3f13a01a91f218b2ea10d08e443
2026-11-23 22:27:53 +05:30
pjgowtham 4bb7af2fc9 ferrari: Treat Aperture as the system camera
The camera HAL gives multi-frame noise reduction only to the package
named in the PackageName Group's SystemCamera key. Every other client
gets a JPEG encoded from a single preview frame:

  IPE ... pipeline:JPEGEncodePreviewMctfOplus_IPE19_cam0

With Aperture listed, the same capture is blended from eight frames on
every lens:

  IPE ... pipeline:MfsrPrefilter_IPE0_cam0
  IPE ... pipeline:MfsrBlend_IPE1_cam0 (x7)
  IPE ... pipeline:MfsrPostFilter_IPE3_cam0

The key holds a single package, so the Oplus camera app loses it.

Assisted-by: LLM
Change-Id: I4c644c7895340a12b2f738f48792352baa12eeea
2026-11-23 22:27:53 +05:30
tonyfan 271e8669b6 ferrari: Ship face unlock service
Change-Id: I89226f7124948b7433778056547ae6bddacb43af
2026-11-06 08:20:59 +05:30
pjgowtham 83725e41d7 ferrari: Avoid shipping firmware
Let the devices be repairable for those who prefer it.

Change-Id: Id6b5d4a9bc894edd3ad08411c7c048ba56ee2b3b
2026-11-06 08:20:59 +05:30
pjgowtham aa711dc9fe ferrari: Initial tree update from RMX3301_15.0.0.1410(EX01)
Change-Id: I14581196331c7ba714c352c3fbca330683eedabf
2026-11-06 08:20:59 +05:30
pjgowtham 93ef56586d ferrari: Intial rebrand for realme GT 2 pro
Change-Id: I326aabe3c36b87106e567a028a59f37cf7c54603
2026-11-06 08:18:48 +05:30
Bruno Martins 07728a70f2 lemonadep: Drop stats HIDL dependency
Support for android.frameworks.stats HIDL HAL has been removed in CP2A.
Camera still works, so move on.

Change-Id: I9753714c7447cbd05a85a3fe537c949f6fc5c0ec
2026-06-28 15:23:00 +00:00
Michael Bestas c0be1e83e8 lemonadep: Depend on android.hardware.graphics.common-V7
Required for BP3A.

Change-Id: Id071b20aa56d5c2e2717215fa6bb6f16f91198ec
2025-11-21 01:43:15 +02:00
Michael Bestas c10ac4b947 lemonadep: Bump libAlgoProcess android.hardware.graphics.common dep
Change-Id: I6fa3a4fade0b600384e0f25bd5f14eb3d09d97a7
2025-03-09 23:41:17 +02:00
pjgowtham d0ec07ca13 lemonadep: Remove prebuilt audio HAL
Change-Id: I6e2c879d97c9dce7a5731b7b3a4a377583cb91a8
2025-02-07 04:44:31 +02:00
LuK1337 693922f228 lemonadep: Enable elfchecks for camera libs
Reference: I23190f0b83c9e28aa2624a7575544b0eaf5c83c8
Change-Id: I18b0b07bf3a435dd449106653e3ca458b4f07b69
2024-12-14 11:15:47 +01:00
LuK1337 f0980aad5d lemonadep: Unpin QTI camera postproc
Change-Id: I376cfa8b0ab91814a0b602d68e333164ff90c891
2024-11-11 19:04:41 +00:00
LuK1337 88bbf0277c fixup! lemonadep: Use common lib_fixups
Remove unused imports.

Change-Id: Ice4131b22bee3e3d8623089d4d7f29588da426b9
2024-11-06 12:03:10 +01:00
LuK1337 e4648ad0a6 lemonadep: Use common lib_fixups
Change-Id: I862e547f3375184729eb1a909bb7d6f676d45dfe
2024-11-06 11:58:39 +01:00
Michael Bestas 79bf0a2c12 lemonadep: ELF checks are enabled by default
Change-Id: I5740f4c8d359831b4cb794912c5d650f55c33f17
2024-11-05 23:18:08 +02:00
LuK1337 b5aaaf89c8 lemonadep: Use libgui_vendor instead of blobbed libgui1_vendor
Change-Id: I8a6fd0067dcd34391121e48e26225f5c727cef38
2024-10-25 18:47:48 +02:00
LuK1337 1e0e035f44 lemonadep: Setup ELF checks
Change-Id: Iacc8a942f4e09bf61f5b8e0f4ad8e70f0b43dfa8
2024-10-20 14:09:37 +02:00
LuK1337 8302d53270 lemonadep: Switch to py extract utils
Change-Id: I5618bf10c107df579a540e2393b222128961e670
2024-10-20 14:09:36 +02:00