include focaltech setting from gs-common

Bug: 256521567
Test: adb bugreport
Change-Id: Ic57d0f0e32afbc8b706f60004509f38e7855c032
This commit is contained in:
Adam Shih 2022-11-18 13:07:27 +08:00
parent 0be2bc49ae
commit 0a6a3e1f89
3 changed files with 1 additions and 28 deletions

View file

@ -87,27 +87,6 @@ on property:ro.boot.hardware.revision=PROTO1.0
on property:ro.boot.hardware.revision=PROTO1.1 on property:ro.boot.hardware.revision=PROTO1.1
setprop vendor.thermal.config "thermal_info_config_proto.json" setprop vendor.thermal.config "thermal_info_config_proto.json"
# Touch
on property:vendor.device.modules.ready=1
chown system system /proc/focaltech_touch/Channel_Num
chown system system /proc/focaltech_touch/FW_Version
chown system system /proc/focaltech_touch/INT_PIN
chown system system /proc/focaltech_touch/force_active
chown system system /proc/focaltech_touch/Reset_Pin
chown system system /proc/focaltech_touch/fw_grip
chown system system /proc/focaltech_touch/fw_palm
chown system system /proc/focaltech_touch/heatmap_onoff
chown system system /proc/focaltech_touch/mf_mode
chown system system /proc/focaltech_touch/selftest/Baseline
chown system system /proc/focaltech_touch/selftest/Noise
chown system system /proc/focaltech_touch/selftest/Panel_Differ
chown system system /proc/focaltech_touch/selftest/Rawdata
chown system system /proc/focaltech_touch/selftest/Rawdata_Uniformity
chown system system /proc/focaltech_touch/selftest/Scap_CB
chown system system /proc/focaltech_touch/selftest/Scap_Rawdata
chown system system /proc/focaltech_touch/selftest/Short
chown system system /proc/focaltech_touch/selftest/Strength
# Override SF and RE uclamps to 0 on boot after being set elsewhere, for adpf cpu hints # Override SF and RE uclamps to 0 on boot after being set elsewhere, for adpf cpu hints
on property:sys.boot_completed=1 on property:sys.boot_completed=1
trigger override-sf-uclamp trigger override-sf-uclamp

View file

@ -6,13 +6,6 @@ on property:vendor.device.modules.ready=1
# Start the twoshay touch service # Start the twoshay touch service
start twoshay start twoshay
# Toggle glove_mode according to touch_sensitivity_mode
on property:persist.vendor.touch_sensitivity_mode=0 && property:sys.boot_completed=1
write /proc/focaltech_touch/high_sensitivity 0
on property:persist.vendor.touch_sensitivity_mode=1 && property:sys.boot_completed=1
write /proc/focaltech_touch/high_sensitivity 1
# For Japan sku, always enforce camera shutter sound # For Japan sku, always enforce camera shutter sound
# Since this property is read by the audio server in system service, # Since this property is read by the audio server in system service,
# it should be written by the system init. # it should be written by the system init.

View file

@ -30,6 +30,7 @@ include device/google/pantah/audio/panther/audio-tables.mk
include device/google/gs201/device-shipping-common.mk include device/google/gs201/device-shipping-common.mk
include hardware/google/pixel/vibrator/cs40l26/device.mk include hardware/google/pixel/vibrator/cs40l26/device.mk
include device/google/gs-common/bcmbt/bluetooth.mk include device/google/gs-common/bcmbt/bluetooth.mk
include device/google/gs-common/touch/focaltech/focaltech.mk
# go/lyric-soong-variables # go/lyric-soong-variables
$(call soong_config_set,lyric,camera_hardware,panther) $(call soong_config_set,lyric,camera_hardware,panther)