diff --git a/device.mk b/device.mk index c906cc7..e0b7484 100644 --- a/device.mk +++ b/device.mk @@ -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 diff --git a/idc/sidekey_dev.idc b/idc/sidekey_dev.idc deleted file mode 100755 index ac6327a..0000000 --- a/idc/sidekey_dev.idc +++ /dev/null @@ -1,6 +0,0 @@ -# Device Type -touch.deviceType = touchScreen - -# Side touch -touch.isSideTouch = 1 - diff --git a/idc/touch_dev.idc b/idc/siw_touch_input.idc old mode 100755 new mode 100644 similarity index 66% rename from idc/touch_dev.idc rename to idc/siw_touch_input.idc index af96c85..56366f9 --- a/idc/touch_dev.idc +++ b/idc/siw_touch_input.idc @@ -2,4 +2,4 @@ touch.deviceType = touchScreen # Pressure -touch.pressure.scale = 0.015 +touch.pressure.scale = 0.012 diff --git a/rootdir/Android.mk b/rootdir/Android.mk new file mode 100644 index 0000000..9a8922d --- /dev/null +++ b/rootdir/Android.mk @@ -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) diff --git a/rootdir/etc/init.sony-device-aurora.rc b/rootdir/etc/init.sony-device-aurora.rc new file mode 100644 index 0000000..a95205c --- /dev/null +++ b/rootdir/etc/init.sony-device-aurora.rc @@ -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