[Miscellaneous Android Development] Teetoow:
First of all thank you very much for your work. This rom is just awesome comparing to the official one..

I just would like to ask you if there is a solution in order to get the camera working under Signal messenger. There is a black screen when I want to take a picture.

The logcat returns:

12-01 22:37:57.157 18998 18998 D DeferrableSurface: Surface created[total_surfaces=2, used_surfaces=0](androidx.camera.core.impl.ImmediateSurface@13dac40}
12-01 22:37:57.161 18998 29190 I OMXClient: IOmx service obtained
12-01 22:37:57.161 577 1423 I OMXMaster: makeComponentInstance(OMX.google.aac.encoder) in omx@1.0-service process
12-01 22:37:57.164 577 1423 E OMXNodeInstance: getExtensionIndex(0xe5c2b480:google.aac.encoder, OMX.google.android.index.storeMetaDataInBuffers) ERROR: UnsupportedIndex(0x8000101a)
12-01 22:37:57.173 441 825 D AudioALSAStreamManager: openInputStream(), devices = 0x80000004, format = 0x1, channels = 0xc, sampleRate = 48000, status = 182, acoustics = 0x0
12-01 22:37:57.173 441 825 D AudioALSAStreamIn: AudioALSAStreamIn()
12-01 22:37:57.173 441 825 D AudioALSAStreamIn: set(), devices = 0x80000004, format = 0x1, channels = 0xc, sampleRate = 48000, acoustics = 0x0, flags = 0
12-01 22:37:57.173 441 825 D AudioALSAStreamIn: CheckBesRecordInfo()
12-01 22:37:57.173 441 825 D AudioSpeechEnhanceInfo: GetBesRecScene() -1
12-01 22:37:57.173 441 825 D AudioSpeechEnhanceInfo: IsBesRecTuningEnable()- 0
12-01 22:37:57.173 441 825 D AudioSpeechEnhanceInfo: IsAPDMNRTuningEnable(), 0
12-01 22:37:57.173 441 825 D AudioSpeechEnhanceInfo: GetForceMagiASRState(), feature_support=1a097c57, 400, mForceMagiASR=0
12-01 22:37:57.173 441 825 D AudioSpeechEnhanceInfo: GetForceAECRecState(), mForceAECRec=0
12-01 22:37:57.173 441 825 D AudioALSAStreamIn: set() done, sampleRate = 48000, num_channels = 2, buffer_size=3840, tempDebugflag = 0
12-01 22:37:57.173 441 825 D AudioALSAStreamManager: -openInputStream(), in = 0xf2375600, status = 0x0, mStreamInVector.size() = 1
12-01 22:37:57.176 475 29198 I AudioFlinger: AudioFlinger's thread 0x77dc135180 tid=29198 ready to run
12-01 22:37:57.176 441 825 D AudioALSAStreamIn: standby()
12-01 22:37:57.177 441 825 D AudioALSAStreamIn: standby()
12-01 22:37:57.181 18998 18998 I VideoCapture: source: 1 audioSampleRate: 48000 channelConfig: 12 audioFormat: 2 bufferSize: 7680
12-01 22:37:57.182 18998 18998 D DeferrableSurface: Surface created[total_surfaces=3, used_surfaces=0](androidx.camera.core.SurfaceRequest$2@d714c6c}
12-01 22:37:57.183 18998 18998 D CameraOrientationUtil: getRelativeImageRotation: destRotationDegrees=0, sourceRotationDegrees=90, isOppositeFacing=true, result=90
12-01 22:37:57.183 18998 27874 D Camera2CameraImpl: {Camera@2c6cfea[id=0]} Use case ImageCapture:ImageCapture ACTIVE
12-01 22:37:57.183 18998 27874 D UseCaseAttachState: Active and attached use case: [] for camera: 0
12-01 22:37:57.184 18998 27874 D Camera2CameraImpl: {Camera@2c6cfea[id=0]} Use case androidx.camera.core.VideoCapture@3d50028 INACTIVE
12-01 22:37:57.184 18998 27874 D UseCaseAttachState: Active and attached use case: [] for camera: 0
12-01 22:37:57.184 18998 27874 D Camera2CameraImpl: {Camera@2c6cfea[id=0]} Use case Preview:Preview ACTIVE
12-01 22:37:57.184 18998 27874 D UseCaseAttachState: Active and attached use case: [] for camera: 0
12-01 22:37:57.184 18998 27874 D UseCaseAttachState: Active and attached use case: [] for camera: 0
12-01 22:37:57.185 18998 27874 D Camera2CameraImpl: {Camera@2c6cfea[id=0]} Use cases [ImageCapture:ImageCapture, androidx.camera.core.VideoCapture@3d50028, Preview:Preview] now ATTACHED
12-01 22:37:57.185 18998 27874 D UseCaseAttachState: All use case: [ImageCapture59600459, Preview246247745, VideoCapture64290856] for camera: 0
12-01 22:37:57.185 3107 3107 D KP2AAF : OnAccEvent
12-01 22:37:57.185 18998 27874 D UseCaseAttachState: Active and attached use case: [ImageCapture59600459, Preview246247745] for camera: 0
12-01 22:37:57.186 3107 3107 D KP2AAF : OnAccEvent
12-01 22:37:57.186 3107 3107 D KP2AAF : event: 32, package = org.thoughtcrime.securesms
12-01 22:37:57.186 3107 3107 D KP2AAF : event package is no launcher
12-01 22:37:57.186 18998 27874 D Camera2CameraImpl: {Camera@2c6cfea[id=0]} Resetting Capture Session
12-01 22:37:57.186 18998 27874 D Camera2CameraImpl: {Camera@2c6cfea[id=0]} Releasing session in state INITIALIZED
12-01 22:37:57.186 18998 27874 D CameraStateRegistry: tryOpenCamera(Camera@2c6cfea[id=0]) [Available Cameras: 1, Already Open: false (Previous state: CLOSED)] --> SUCCESS
12-01 22:37:57.186 18998 27874 D CameraStateRegistry: Recalculating open cameras:
12-01 22:37:57.186 18998 27874 D CameraStateRegistry: Camera State
12-01 22:37:57.186 18998 27874 D CameraStateRegistry: -------------------------------------------------------------------
12-01 22:37:57.186 18998 27874 D CameraStateRegistry: Camera@c0facbc[id=3] UNKNOWN
12-01 22:37:57.186 18998 27874 D CameraStateRegistry: Camera@1adf1b7[id=1] UNKNOWN
12-01 22:37:57.186 18998 27874 D CameraStateRegistry: Camera@2c6cfea[id=0] OPENING
12-01 22:37:57.186 18998 27874 D CameraStateRegistry: Camera@12fa790[id=2] UNKNOWN
12-01 22:37:57.186 18998 27874 D CameraStateRegistry: -------------------------------------------------------------------
12-01 22:37:57.186 18998 27874 D CameraStateRegistry: Open count: 1 (Max allowed: 1)
12-01 22:37:57.187 18998 27874 D Camera2CameraImpl: {Camera@2c6cfea[id=0]} Transitioning camera internal state: INITIALIZED --> OPENING
12-01 22:37:57.187 18998 27874 D Camera2CameraImpl: {Camera@2c6cfea[id=0]} Opening camera.
12-01 22:37:57.187 18998 27874 D UseCaseAttachState: All use case: [ImageCapture59600459, Preview246247745, VideoCapture64290856] for camera: 0
12-01 22:37:57.191 558 18498 I CameraService: CameraService::connect call (PID -1 "org.thoughtcrime.securesms", camera ID 0) for HAL version default and Camera API version 2
12-01 22:37:57.192 558 18498 I Camera2ClientBase: Camera 0: Opened. Client: org.thoughtcrime.securesms (PID 18998, UID 10139)
12-01 22:37:57.192 558 18498 I CameraDeviceClient: CameraDeviceClient 0: Opened
12-01 22:37:57.194 558 18498 I CameraService: onTorchStatusChangedLocked: Torch status changed for cameraId=0, newStatus=0
12-01 22:37:57.196 962 10376 D AudioSystem: +setParameters(): cameraFacing=back
12-01 22:37:57.197 441 825 D AudioALSAHardware: +setParameters(): cameraFacing=back
12-01 22:37:57.197 441 825 W AudioALSAHardware: setParameters(), still have param.size() = 1, remain param = "cameraFacing=back"
12-01 22:37:57.197 441 825 D AudioALSAHardware: -setParameters(): cameraFacing=back
12-01 22:37:57.198 1608 1608 I GoogleInputMethodService: GoogleInputMethodService.onFinishInput():3293
12-01 22:37:57.199 962 962 V SettingsProvider: Notifying for 0: content://settings/secure/flashlight_available
12-01 22:37:57.199 1608 1608 I GoogleInputMethodService: GoogleInputMethodService.onStartInput():1981
12-01 22:37:57.200 1608 1608 I DeviceUnlockedTag: DeviceUnlockedTag.notifyDeviceLockStatusChanged():79 Notify device unlocked.
12-01 22:37:57.201 473 496 I vendor.mediatek.hardware.power@2.0-impl: scnDisable hdl:124
12-01 22:37:57.202 18998 18998 D PreviewView: Surface requested by Preview.
12-01 22:37:57.203 473 496 I vendor.mediatek.hardware.power@2.0-impl: scnReg hdl:123
12-01 22:37:57.204 473 496 I vendor.mediatek.hardware.power@2.0-impl: scnReg hdl:125
12-01 22:37:57.204 473 496 I vendor.mediatek.hardware.power@2.0-impl: scnEnable hdl:123, timeout:1000
12-01 22:37:57.204 3107 3107 D KP2AAF : root package is no launcher
12-01 22:37:57.204 3107 3107 D KP2AAF : URL=androidapp://org.thoughtcrime.securesms
12-01 22:37:57.204 473 495 I libPowerHal: perfUserScnEnable - handle:123
12-01 22:37:57.204 473 496 I vendor.mediatek.hardware.power@2.0-impl: scnReg hdl:126
12-01 22:37:57.204 3107 3107 D KP2AAF : Cancel notif
12-01 22:37:57.204 473 496 I vendor.mediatek.hardware.power@2.0-impl: scnEnable hdl:125, timeout:0
12-01 22:37:57.204 579 920 D mtkcam-dev3: Set display idle delay to 100, handle 126
12-01 22:37:57.205 473 495 I libPowerHal: perfUserScnEnable - handle:125
12-01 22:37:57.206 473 495 I libPowerHal: cmdSetting - unknown cmd:79, p1:100, p2:0, p3:0, p4:0
12-01 22:37:57.206 473 496 I vendor.mediatek.hardware.power@2.0-impl: scnEnable hdl:126, timeout:0
12-01 22:37:57.206 473 495 I libPowerHal: perfUserScnEnable - handle:126
12-01 22:37:57.206 18998 18998 D TextureViewImpl: SurfaceTexture available. Size: 1920x1080
12-01 22:37:57.206 18998 18998 D TextureViewImpl: Surface set on Preview.
12-01 22:37:57.207 579 920 D MtkCam/Utils: [init] Success to get Daemon Service. mCameraClientPackageName:
12-01 22:37:57.210 558 18498 I CameraProviderManager: Camera device device@3.4/internal/0 torch status is now NOT_AVAILABLE
12-01 22:37:57.210 558 18498 I CameraService: onTorchStatusChangedLocked: Torch status changed for cameraId=0, newStatus=0
12-01 22:37:57.210 579 29203 D SeninfDrv: [init][init]: Entry count 0
12-01 22:37:57.211 558 18498 I CameraProviderManager: Camera device device@3.4/internal/3 torch status is now NOT_AVAILABLE
12-01 22:37:57.211 558 18498 I CameraService: onTorchStatusChangedLocked: Torch status changed for cameraId=3, newStatus=0
12-01 22:37:57.211 18998 18998 D PreviewView: Preview transformation info updated. TransformationInfo{cropRect=Rect(0, 0 - 1920, 1080), rotationDegrees=90, targetRotation=0}
12-01 22:37:57.211 18998 18998 D PreviewTransform: Transformation info set: TransformationInfo{cropRect=Rect(0, 0 - 1920, 1080), rotationDegrees=90, targetRotation=0} 1920x1080 false
12-01 22:37:57.212 579 29203 D SeninfDrv: [init]Efuse Data:0x1045018c= 0x6b58e6b4, 0x10450190= 0x6318841e, 0x104501bc= 0x7300c6b0, 0x104501c0= 0x73000000
12-01 22:37:57.212 579 29203 D SeninfDrv: [init][init]: Exit count 1
12-01 22:37:57.212 579 29203 D ImgSensorDrv: [init][init] imgsensor_drv
12-01 22:37:57.212 579 29202 D : [getAEManualPline] no manual pline matching, MinFps/MaxFps/SensorMode/SceneMode/ISOSpeed: 50/300/1/1/0
12-01 22:37:57.212 579 29203 D ImgSensorDrv: [featureControl][featureControl] Skip due to no FeatureId
12-01 22:37:57.212 579 29203 D SeninfDrv: [configMclk][Tg0clk]: pcEn=1 freq=24
12-01 22:37:57.212 579 29202 D : [getAEManualPline] no manual pline matching, MinFps/MaxFps/SensorMode/SceneMode/ISOSpeed: 50/300/1/1/0
12-01 22:37:57.212 579 29203 D SeninfDrv: [setMclk][setTg0Phase]pcEn(1), freq(24)
12-01 22:37:57.212 579 29203 D ImgSensorDrv: [featureControl][featureControl] Skip due to no FeatureId
12-01 22:37:57.212 579 29203 D SeninfDrv: [setMclkIODrivingCurrent]DrivingIdx(0), Reg(0x00000000)
12-01 22:37:57.212 579 668 D ULogGuard: Running: 4 threads, 0 requests; 1 guards in monitor. Timeout = 16000,60000 msec
12-01 22:37:57.212 579 29202 D LaserDrv: Device error opening : No such file or directory
12-01 22:37:57.212 579 29202 E ImgSensorDrv: [featureControl]Err( 1374):[featureControl] Err-ctrlCode (Bad address)
12-01 22:37:57.212 579 29202 D ImgSensorDrv: [sendCommand][sendCommand] cmd = 16423, FeatureId = 3125
12-01 22:37:57.212 579 29202 E ImgSensorDrv: [sendCommand]Err( 1152):[sendCommand] Err-ctrlCode (Bad address)
12-01 22:37:57.212 579 29202 E MtkCam/HalSensor: [sendCommand] [sendCommand] sendCommand fail! 4027
12-01 22:37:57.212 579 29202 E MtkCam/HalSensor: (sendCommand){#1302:vendor/mediatek/proprietary/hardware/mtkcam/drv/src/sensor/mt6771/../common/v1_1/HalSensor.cpp}
12-01 22:37:57.212 579 29202 E aaa_sensor_mgr: Err SENSOR_CMD_GET_CTRL_PIN_CAPABILITY, Sensor dev:8 ret:-14
12-01 22:37:57.212 579 29202 E aaa_sensor_mgr: (getSensorCtrlPinCapability){#910:vendor/mediatek/proprietary/hardware/mtkcam/aaa/source/isp_50/sensor_mgr/aaa_sensor_mgr.cpp}
12-01 22:37:57.212 579 29202 D flash_custom.cpp: cust_getFlashProjectPara_V3(): sensorDev(1), mainPartId(1), subPartId(1).
12-01 22:37:57.212 579 29202 D FlashUtils: copyTuningPara(): yTarget(188), policy(5).
12-01 22:37:57.218 578 578 I Gyroscope: batch: handle:3, flag:0,samplingPeriodNs:20000000 maxBatchReportLatencyNs:0
12-01 22:37:57.218 473 496 I vendor.mediatek.hardware.power@2.0-impl: powerHintAsync hint:8, data:0
12-01 22:37:57.219 336 336 I hwservicemanager: getTransport: Cannot find entry vendor.lineage.camera.motor@1.0::ICameraMotor/default in either framework or device manifest.
12-01 22:37:57.221 578 578 I Gyroscope: enable: handle:3, en:1
12-01 22:37:57.221 18998 27874 D Camera2CameraImpl: {Camera@2c6cfea[id=0]} Use case ImageCapture:ImageCapture ACTIVE
12-01 22:37:57.221 18998 27874 D UseCaseAttachState: Active and attached use case: [ImageCapture59600459, Preview246247745] for camera: 0
12-01 22:37:57.222 18998 27874 D Camera2CameraImpl: {Camera@2c6cfea[id=0]} Use case androidx.camera.core.VideoCapture@3d50028 INACTIVE
12-01 22:37:57.223 18998 27874 D UseCaseAttachState: Active and attached use case: [ImageCapture59600459, Preview246247745] for camera: 0
12-01 22:37:57.223 578 578 I Accelerometer: batch: handle:0, flag:0,samplingPeriodNs:20000000 maxBatchReportLatencyNs:0
12-01 22:37:57.224 578 578 I Accelerometer: enable: handle:0, en:1
12-01 22:37:57.224 18998 27874 D Camera2CameraImpl: {Camera@2c6cfea[id=0]} Use case Preview:Preview ACTIVE
12-01 22:37:57.224 18998 27874 D UseCaseAttachState: Active and attached use case: [ImageCapture59600459, Preview246247745] for camera: 0
12-01 22:37:57.226 18998 27874 I chatty : uid=10139(org.thoughtcrime.securesms) CameraX-core_ca identical 1 line
12-01 22:37:57.228 18998 27874 D UseCaseAttachState: Active and attached use case: [ImageCapture59600459, Preview246247745] for camera: 0
12-01 22:37:57.229 18998 27874 D Camera2CameraImpl: {Camera@2c6cfea[id=0]} CameraDevice.onOpened()
12-01 22:37:57.231 18998 27874 D Camera2CameraImpl: {Camera@2c6cfea[id=0]} Transitioning camera internal state: OPENING --> OPENED
12-01 22:37:57.231 18998 27874 D CameraStateRegistry: Recalculating open cameras:
12-01 22:37:57.231 18998 27874 D CameraStateRegistry: Camera State
12-01 22:37:57.231 18998 27874 D CameraStateRegistry: -------------------------------------------------------------------
12-01 22:37:57.231 18998 27874 D CameraStateRegistry: Camera@c0facbc[id=3] UNKNOWN
12-01 22:37:57.231 18998 27874 D CameraStateRegistry: Camera@1adf1b7[id=1] UNKNOWN
12-01 22:37:57.231 18998 27874 D CameraStateRegistry: Camera@2c6cfea[id=0] OPEN
12-01 22:37:57.231 18998 27874 D CameraStateRegistry: Camera@12fa790[id=2] UNKNOWN
12-01 22:37:57.231 18998 27874 D CameraStateRegistry: -------------------------------------------------------------------
12-01 22:37:57.231 18998 27874 D CameraStateRegistry: Open count: 1 (Max allowed: 1)
12-01 22:37:57.232 18998 27874 D UseCaseAttachState: All use case: [ImageCapture59600459, Preview246247745, VideoCapture64290856] for camera: 0
12-01 22:37:57.234 18998 27874 D SyncCaptureSessionBase: [androidx.camera.camera2.internal.SynchronizedCaptureSessionBaseImpl@ffde0b] getSurface...done
12-01 22:37:57.234 18998 27874 D DeferrableSurface: New surface in use[total_surfaces=3, used_surfaces=1](androidx.camera.core.impl.ImmediateSurface@9ee07d}
12-01 22:37:57.234 18998 27874 D DeferrableSurface: use count+1, useCount=1 androidx.camera.core.impl.ImmediateSurface@9ee07d
12-01 22:37:57.234 18998 27874 D DeferrableSurface: New surface in use[total_surfaces=3, used_surfaces=2](androidx.camera.core.SurfaceRequest$2@d714c6c}
12-01 22:37:57.234 18998 27874 D DeferrableSurface: use count+1, useCount=1 androidx.camera.core.SurfaceRequest$2@d714c6c
12-01 22:37:57.234 18998 27874 D DeferrableSurface: New surface in use[total_surfaces=3, used_surfaces=3](androidx.camera.core.impl.ImmediateSurface@13dac40}
12-01 22:37:57.234 18998 27874 D DeferrableSurface: use count+1, useCount=1 androidx.camera.core.impl.ImmediateSurface@13dac40
12-01 22:37:57.234 18998 27874 D CaptureSession: Opening capture session.
12-01 22:37:57.237 558 18498 W CameraDeviceClient: createSurfaceFromGbp: Camera 0 with consumer usage flag: 256: Forcing asynchronous mode for stream
12-01 22:37:57.239 558 18498 W CameraDeviceClient: createSurfaceFromGbp: Camera 0: Overriding format 0x1 to IMPLEMENTATION_DEFINED
12-01 22:37:57.244 558 18498 W H2BGraphicBufferProducer: getConsumerUsage is not fully supported
12-01 22:37:57.246 558 18498 W H2BGraphicBufferProducer: getConsumerUsage is not fully supported
12-01 22:37:57.256 579 922 W mtkcam-AppStreamMgr: [0-ConfigHandler::checkStream] framework stream dataspace:0x08c20000(V0_JFIF|STANDARD_BT601_625|TRANSFER_SMPTE_170M|RANGE_FULL) {.v3_2 = {.id = 1, .streamType = OUTPUT, .width = 3840, .height = 2160, .format = BLOB, .usage = CPU_READ_NEVER | CPU_READ_RARELY | CPU_READ_OFTEN | CPU_WRITE_NEVER (0x3), .dataSpace = UNKNOWN | STANDARD_UNSPECIFIED | STANDARD_BT601_625 | TRANSFER_UNSPECIFIED | TRANSFER_LINEAR | TRANSFER_SRGB | TRANSFER_SMPTE_170M | RANGE_UNSPECIFIED | RANGE_FULL | V0_JFIF (0x8c20000), .rotation = ROTATION_0}, .physicalCameraId = "", .bufferSize = 16885080}
12-01 22:37:57.256 579 922 W mtkcam-AppStreamMgr: [0-ConfigHandler::checkStream] framework stream dataspace:0x00000104(BT709) {.v3_2 = {.id = 2, .streamType = OUTPUT, .width = 1280, .height = 720, .format = RGBA_8888, .usage = CPU_READ_NEVER | CPU_READ_RARELY | CPU_READ_OFTEN | CPU_WRITE_NEVER | VIDEO_ENCODER (0x10003), .dataSpace = UNKNOWN | STANDARD_UNSPECIFIED | TRANSFER_UNSPECIFIED | RANGE_UNSPECIFIED | BT709 (0x104), .rotation = ROTATION_0}, .physicalCameraId = "", .bufferSize = 0}
12-01 22:37:57.256 579 922 E mtkcam-AppStreamMgr: [0-ConfigHandler::checkStream] unsupported size 1280x720 for format 0x1/rotation:0 - {.v3_2 = {.id = 2, .streamType = OUTPUT, .width = 1280, .height = 720, .format = RGBA_8888, .usage = CPU_READ_NEVER | CPU_READ_RARELY | CPU_READ_OFTEN | CPU_WRITE_NEVER | VIDEO_ENCODER (0x10003), .dataSpace = UNKNOWN | STANDARD_UNSPECIFIED | TRANSFER_UNSPECIFIED | RANGE_UNSPECIFIED | BT709 (0x104), .rotation = ROTATION_0}, .physicalCameraId = "", .bufferSize = 0} (checkStream){#403:vendor/mediatek/proprietary/hardware/mtkcam3/main/hal/device/3.x/app/AppStreamMgr.ConfigHandler.cpp}
12-01 22:37:57.256 579 922 E mtkcam-AppStreamMgr: [0-ConfigHandler::checkStreams] streams[id:2] has a bad status: -22(Invalid argument) (checkStreams){#436:vendor/mediatek/proprietary/hardware/mtkcam3/main/hal/device/3.x/app/AppStreamMgr.ConfigHandler.cpp}
12-01 22:37:57.256 579 922 E mtkcam-AppStreamMgr: [0-ConfigHandler::beginConfigureStreams] checkStreams failed - StreamConfiguration={.streams = [3]{{.v3_2 = {.id = 0, .streamType = OUTPUT, .width = 1920, .height = 1080, .format = IMPLEMENTATION_DEFINED, .usage = CPU_READ_NEVER | CPU_WRITE_NEVER | GPU_TEXTURE (0x100), .dataSpace = UNKNOWN | STANDARD_UNSPECIFIED | TRANSFER_UNSPECIFIED | RANGE_UNSPECIFIED (0), .rotation = ROTATION_0}, .physicalCameraId = "", .bufferSize = 0}, {.v3_2 = {.id = 1, .streamType = OUTPUT, .width = 3840, .height = 2160, .format = BLOB, .usage = CPU_READ_NEVER | CPU_READ_RARELY | CPU_READ_OFTEN | CPU_WRITE_NEVER (0x3), .dataSpace = UNKNOWN | STANDARD_UNSPECIFIED | STANDARD_BT601_625 | TRANSFER_UNSPECIFIED | TRANSFER_LINEAR | TRANSFER_SRGB | TRANSFER_SMPTE_170M | RANGE_UNSPECIFIED | RANGE_FULL | V0_JFIF (0x8c20000), .rotation = ROTATION_0}, .physicalCameraId = "", .bufferSize = 16885080}, {.v3_2 = {.id = 2, .streamType = OUTPUT, .width = 1280, .height = 720, .format = RGBA_8888, .usage = CPU_READ_NEVER | CPU_READ_RARELY | CPU_READ_OFT
12-01 22:37:57.256 579 922 E mtkcam-dev3: [0-session::onConfigureStreamsLocked] fail to beginConfigureStreams (onConfigureStreamsLocked){#801:vendor/mediatek/proprietary/hardware/mtkcam3/main/hal/device/3.x/device/CameraDevice3SessionImpl.cpp}
12-01 22:37:57.256 558 18498 E Camera3-Device: Camera 0: configureStreamsLocked: Set of requested inputs/outputs not supported by HAL
12-01 22:37:57.256 558 18498 E CameraDeviceClient: endConfigure: Camera 0: Unsupported set of inputs/outputs provided
12-01 22:37:57.257 18998 27874 W CameraDevice-JV-0: Stream configuration failed due to: endConfigure:495: Camera 0: Unsupported set of inputs/outputs provided
12-01 22:37:57.257 18998 27874 E CameraCaptureSession: Session 0: Failed to create capture session; configuration failed
12-01 22:37:57.257 18998 27874 D DeferrableSurface: use count-1, useCount=0 closed=false androidx.camera.core.impl.ImmediateSurface@9ee07d
12-01 22:37:57.257 18998 27874 D DeferrableSurface: Surface no longer in use[total_surfaces=3, used_surfaces=2](androidx.camera.core.impl.ImmediateSurface@9ee07d}
12-01 22:37:57.257 18998 27874 D DeferrableSurface: use count-1, useCount=0 closed=false androidx.camera.core.SurfaceRequest$2@d714c6c
12-01 22:37:57.257 18998 27874 D DeferrableSurface: Surface no longer in use[total_surfaces=3, used_surfaces=1](androidx.camera.core.SurfaceRequest$2@d714c6c}
12-01 22:37:57.257 18998 27874 D DeferrableSurface: use count-1, useCount=0 closed=false androidx.camera.core.impl.ImmediateSurface@13dac40
12-01 22:37:57.257 18998 27874 D DeferrableSurface: Surface no longer in use[total_surfaces=3, used_surfaces=0](androidx.camera.core.impl.ImmediateSurface@13dac40}
12-01 22:37:57.258 18998 27874 E CaptureSession: CameraCaptureSession.onConfigureFailed() RELEASED
12-01 22:37:57.258 18998 27874 E SequentialExecutor: Exception while executing runnable CallbackListener,androidx.camera.camera2.internal.Camera2CameraImpl$2@f009794
12-01 22:37:57.258 18998 27874 E SequentialExecutor: java.lang.RuntimeException: java.lang.IllegalStateException: onConfigureFailed
12-01 22:37:57.258 18998 27874 E SequentialExecutor: at androidx.camera.camera2.internal.Camera2CameraImpl$2.onFailure(Camera2CameraImpl.java:989)
12-01 22:37:57.258 18998 27874 E SequentialExecutor: at androidx.camera.core.impl.utils.futures.Futures$CallbackListener.run(Futures.java:338)
12-01 22:37:57.258 18998 27874 E SequentialExecutor: at androidx.camera.core.impl.utils.executor.SequentialExecutor$QueueWorker.workOnQueue(SequentialExecutor.java:229)
12-01 22:37:57.258 18998 27874 E SequentialExecutor: at androidx.camera.core.impl.utils.executor.SequentialExecutor$QueueWorker.run(SequentialExecutor.java:171)
12-01 22:37:57.258 18998 27874 E SequentialExecutor: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
12-01 22:37:57.258 18998 27874 E SequentialExecutor: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
12-01 22:37:57.258 18998 27874 E SequentialExecutor: at java.lang.Thread.run(Thread.java:919)
12-01 22:37:57.258 18998 27874 E SequentialExecutor: Caused by: java.lang.IllegalStateException: onConfigureFailed
12-01 22:37:57.258 18998 27874 E SequentialExecutor: at androidx.camera.camera2.internal.SynchronizedCaptureSessionBaseImpl$1.onConfigureFailed(SynchronizedCaptureSessionBaseImpl.java:237)
12-01 22:37:57.258 18998 27874 E SequentialExecutor: at android.hardware.camera2.impl.CallbackProxies$SessionStateCallbackProxy.lambda$onConfigureFailed$1$CallbackProxies$SessionStateCallbackProxy(CallbackProxies.java:64)
12-01 22:37:57.258 18998 27874 E SequentialExecutor: at android.hardware.camera2.impl.-$$Lambda$CallbackProxies$SessionStateCallbackProxy$gvbTsp9UPpKJAbdycdci_ZW5BeI.run(Unknown Source:4)
12-01 22:37:57.258 18998 27874 E SequentialExecutor: ... 5 more

Maybe I'm wrong but it seems it bugs because signal tried to configure only specific video resolutions which are not supported by the codec used (it worked with the official rom).

And last but not least is it possible to get automatic brightness setting working ? It doesn't change automatically the brightness.

Thanks for your answer.