From b3996b9e9b554ddf7a41e5c418063b6c756d171e Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Fri, 20 Jan 2023 22:18:13 +0100 Subject: [PATCH] sm8250-common: Register wise light as android.sensor.light Sadly a lot of apps aren't aware of config_displayLightSensorType. Change-Id: Ib1c2f0ba8305dbfe262722f2a1862dafaac973df --- extract-files.sh | 4 ++++ proprietary-files.txt | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/extract-files.sh b/extract-files.sh index 5301b5f..d358d54 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -86,6 +86,10 @@ function blob_fixup() { grep -q libcamera_metadata_shim.so "${2}" || "${PATCHELF}" --add-needed libcamera_metadata_shim.so "${2}" sed -i "s/com.oem.autotest/\x00om.oem.autotest/" "${2}" ;; + vendor/lib64/sensors.ssc.so) + sed -i "s/qti.sensor.wise_light/android.sensor.light\x00/" "${2}" + "${SIGSCAN}" -p "F1 E9 D3 84 52 49 3F A0 72" -P "F1 A9 00 80 52 09 00 A0 72" -f "${2}" + ;; vendor/lib64/vendor.qti.hardware.camera.postproc@1.0-service-impl.so) "${SIGSCAN}" -p "1F 0A 00 94" -P "1F 20 03 D5" -f "${2}" ;; diff --git a/proprietary-files.txt b/proprietary-files.txt index a2c46a0..ff65d11 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -1198,7 +1198,7 @@ vendor/lib64/libsnsapi.so vendor/lib64/libsnsdiaglog.so vendor/lib64/libssc.so vendor/lib64/libssc_default_listener.so -vendor/lib64/sensors.ssc.so +vendor/lib64/sensors.ssc.so|b0bb87ad34a618851bd3dc8a377b2dde1e4e2fe0|7435f65e41d94ddfe060a9f3000083f48333296d vendor/lib64/vendor.qti.hardware.sensorscalibrate@1.0.so # Snapdragon Computer Vision Engine