Skip to content

Commit

Permalink
Switch to Samsung sensors service @2.1
Browse files Browse the repository at this point in the history
Fixes proximity sensors, with a kernel patch: rtd1250/android_kernel_samsung_sm6150@cc31728
  • Loading branch information
rtd1250 committed Jun 18, 2022
1 parent 1e825ee commit 3d02f7a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 23 deletions.
3 changes: 2 additions & 1 deletion device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,8 @@ PRODUCT_COPY_FILES += \

# Sensors
PRODUCT_PACKAGES += \
[email protected]
[email protected] \
[email protected]

# Sensor Configuration
PRODUCT_COPY_FILES += \
Expand Down
2 changes: 0 additions & 2 deletions proprietary-files.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1219,9 +1219,7 @@ vendor/lib/libsecnativefeature.so
vendor/lib64/libsecnativefeature.so

# Sensors
vendor/bin/hw/[email protected]
vendor/bin/factory.ssc
vendor/etc/init/[email protected]
vendor/etc/sensors/config/default_sensors.json
vendor/etc/sensors/config/lsm6dsm_0.json
vendor/etc/sensors/config/sns_amd.json
Expand Down
23 changes: 3 additions & 20 deletions rootdir/bin/init.qcom.sensors.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/vendor/bin/sh
# Copyright (c) 2015,2018 The Linux Foundation. All rights reserved.
# Copyright (c) 2020 The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -29,22 +29,5 @@
#
# Function to start sensors for SSC enabled platforms
#
start_sensors()
{
sscrpcd_status=`getprop init.svc.vendor.sensors`

chmod -h 775 /mnt/vendor/persist/sensors
chmod -h 664 /mnt/vendor/persist/sensors/sensors_settings
mkdir -p /mnt/vendor/persist/sensors/registry/registry
chown -h -R system.system /mnt/vendor/persist/sensors

start vendor.sensors.qti
start factory_ssc

# Only for SLPI
if [ -c /dev/msm_dsps -o -c /dev/sensors ] && [ -z "$sscrpcd_status" ]; then
start vendor.sensors
fi
}

start_sensors
cp /vendor/etc/sensors/scripts/* /data/vendor/sensors/scripts/
chmod a+rw /data/vendor/sensors/scripts/*

0 comments on commit 3d02f7a

Please sign in to comment.