Files
dianlujitao 7595bc3432 sm8750-common: sensors: create an alias for the light sensor
The light sensor on stock is provided by libsensorserviceextimpl.so, and
appears to be a fusion of qti.sensor.high_pwm_rgb and qti.sensor.light_rear.

I have no idea how the fusion is performed, so provide a light sensor
for AOSP by simply aliasing qti.sensor.high_pwm_rgb.

Change-Id: I864a0d84b6a7f85ec2b4bc86bad910d4d7ca2db4
2025-09-06 00:41:44 +01:00

30 lines
649 B
Plaintext

//
// Copyright (C) 2025 The LineageOS Project
//
// SPDX-License-Identifier: Apache-2.0
//
cc_library_shared {
name: "sensors.qsh_wrapper",
defaults: ["hidl_defaults"],
srcs: [
"SensorsSubHal.cpp",
],
shared_libs: [
"android.hardware.sensors@2.0",
"android.hardware.sensors@2.0-ScopedWakelock",
"android.hardware.sensors@2.1",
"libbase",
"libhidlbase",
"libutils",
],
header_libs: [
"android.hardware.sensors@2.X-multihal.header",
"libhardware_headers",
],
cflags: [
"-DLOG_TAG=\"sensors.qsh_wrapper\"",
],
vendor: true,
}