diff --git a/BoardConfig.mk b/BoardConfig.mk index 274c915..3b17ec8 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -152,7 +152,8 @@ TW_SCREEN_BLANK_ON_BOOT := true TW_EXCLUDE_APEX := true TW_EXCLUDE_DEFAULT_USB_INIT := true TW_INCLUDE_NTFS_3G := true -TW_NO_HAPTICS := true +TW_SUPPORT_INPUT_AIDL_HAPTICS := true +TW_SUPPORT_INPUT_AIDL_HAPTICS_FIX_OFF := true TW_USE_NEW_MINADBD := true TW_INPUT_BLACKLIST := "hbtp_vm" TW_EXCLUDE_DEFAULT_USB_INIT := true diff --git a/recovery/root/system/bin/vendor.qti.hardware.vibrator.service b/recovery/root/system/bin/vendor.qti.hardware.vibrator.service new file mode 100755 index 0000000..dea8824 Binary files /dev/null and b/recovery/root/system/bin/vendor.qti.hardware.vibrator.service differ diff --git a/recovery/root/vendor/etc/init/vendor.qti.hardware.vibrator.service.rc b/recovery/root/vendor/etc/init/vendor.qti.hardware.vibrator.service.rc new file mode 100644 index 0000000..d6d26da --- /dev/null +++ b/recovery/root/vendor/etc/init/vendor.qti.hardware.vibrator.service.rc @@ -0,0 +1,14 @@ +on boot + chmod 0666 /dev/qcom_haptic + chown root root /dev/qcom_haptic + start qti.vibrator + +service qti.vibrator /system/bin/vendor.qti.hardware.vibrator.service + class hal + user root + group root input + disabled + setenv LD_LIBRARY_PATH /vendor/lib64:/system/lib64:/sbin + setenv RICHTAP_DEVICE_PATH /dev/qcom_haptic + setenv ENV_RICHTAP_CONFIG_PATH /odm/etc/aac_richtap.config + seclabel u:r:recovery:s0 diff --git a/recovery/root/vendor/etc/vintf/manifest/vendor.qti.hardware.vibrator.service.xml b/recovery/root/vendor/etc/vintf/manifest/vendor.qti.hardware.vibrator.service.xml new file mode 100644 index 0000000..e61fc07 --- /dev/null +++ b/recovery/root/vendor/etc/vintf/manifest/vendor.qti.hardware.vibrator.service.xml @@ -0,0 +1,34 @@ + + + + android.hardware.vibrator + 2 + IVibrator/default + + diff --git a/recovery/root/vendor/lib64/libaacvibrator.so b/recovery/root/vendor/lib64/libaacvibrator.so new file mode 100644 index 0000000..6d7ddcd Binary files /dev/null and b/recovery/root/vendor/lib64/libaacvibrator.so differ diff --git a/recovery/root/vendor/lib64/libqtivibratoreffect.so b/recovery/root/vendor/lib64/libqtivibratoreffect.so new file mode 100644 index 0000000..af1ce65 Binary files /dev/null and b/recovery/root/vendor/lib64/libqtivibratoreffect.so differ diff --git a/recovery/root/vendor/lib64/libsoc_helper.so b/recovery/root/vendor/lib64/libsoc_helper.so new file mode 100644 index 0000000..afcd0b1 Binary files /dev/null and b/recovery/root/vendor/lib64/libsoc_helper.so differ diff --git a/recovery/root/vendor/lib64/vendor.aac.hardware.richtap.vibrator-V1-ndk_platform.so b/recovery/root/vendor/lib64/vendor.aac.hardware.richtap.vibrator-V1-ndk_platform.so new file mode 100644 index 0000000..f65e208 Binary files /dev/null and b/recovery/root/vendor/lib64/vendor.aac.hardware.richtap.vibrator-V1-ndk_platform.so differ diff --git a/recovery/root/vendor/lib64/vendor.qti.hardware.vibrator.impl.so b/recovery/root/vendor/lib64/vendor.qti.hardware.vibrator.impl.so new file mode 100644 index 0000000..0e0d288 Binary files /dev/null and b/recovery/root/vendor/lib64/vendor.qti.hardware.vibrator.impl.so differ diff --git a/recovery/root/vendor/odm/etc/aac_richtap.config b/recovery/root/vendor/odm/etc/aac_richtap.config new file mode 100644 index 0000000..80eb69e Binary files /dev/null and b/recovery/root/vendor/odm/etc/aac_richtap.config differ