aurora: Import touch config + init script from 52.1.A.3.49

Change-Id: I4909ed433c8b50c32d0b865bc1bb43109acc6a7e
This commit is contained in:
Danny Trunk 2021-10-19 19:01:50 +02:00 • committed by sjllls
commit 8864c355e5
5 changed files with 48 additions and 9 deletions

View file

@ -41,10 +41,13 @@ PRODUCT_COPY_FILES += \
PRODUCT_PACKAGES += \
vendor.qti.hardware.cryptfshw@1.0-service-qti.qsee
# Init scripts
PRODUCT_PACKAGES += \
init.sony-device-aurora.rc
# Input
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/idc/sidekey_dev.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/sidekey_dev.idc \
$(LOCAL_PATH)/idc/touch_dev.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/touch_dev.idc
$(LOCAL_PATH)/idc/siw_touch_input.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/siw_touch_input.idc
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/keylayout/gpio-keys.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/gpio-keys.kl

5
idc/sidekey_dev.idc → idc/siw_touch_input.idc Executable file → Normal file
View file

@ -1,6 +1,5 @@
# Device Type
touch.deviceType = touchScreen
# Side touch
touch.isSideTouch = 1
# Pressure
touch.pressure.scale = 0.012

9
rootdir/Android.mk Normal file
View file

@ -0,0 +1,9 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := init.sony-device-aurora.rc
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := etc/init.sony-device-aurora.rc
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init
include $(BUILD_PREBUILT)

View file

@ -0,0 +1,33 @@
# Product aurora configuration
#
# Touch boot
on early-boot
write /sys/devices/virtual/input/siw_touch_input/init_late_session 1
on property:dev.bootcomplete=1
chown system system /sys/devices/virtual/input/siw_touch_input/firmware
chmod 0600 /sys/devices/virtual/input/siw_touch_input/firmware
restorecon /sys/devices/virtual/input/siw_touch_input/firmware
chown system system /sys/devices/common_touch/touch/glove_mode
chmod 0600 sys/devices/common_touch/touch/glove_mode
restorecon sys/devices/common_touch/touch/glove_mode
chown system system /sys/devices/common_touch/touch/cover_mode
chmod 0600 sys/devices/common_touch/touch/cover_mode
restorecon sys/devices/common_touch/touch/cover_mode
# Touch
on property:dev.bootcomplete=1 && property:vendor.cover_state=*
write /sys/devices/common_touch/touch/cover_status ${vendor.cover_state}
on property:vendor.backlight_on=*
write /sys/devices/common_touch/touch/irq_enable ${vendor.backlight_on}
# Set value in property to sysfs for SuperStamina
on property:sys.lcd_fpks=* && property:vendor.backlight_on=1
write /sys/devices/dsi_panel_driver/fps_mode ${sys.lcd_fpks}
on post-fs-data
# SONY: Camera
mkdir /data/misc/camera 0770 cameraserver camera