rtwo: recovery: enable AIDL haptics
Add the official Android 13 rtwo QTI/RichTap vibrator service, libraries, calibration data, init service, and VINTF manifest. Enable TWRP input AIDL haptics with the fix-off workaround.
This commit is contained in:
parent
f7308b21d0
commit
29d008ba34
10 changed files with 50 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
BIN
recovery/root/system/bin/vendor.qti.hardware.vibrator.service
Executable file
BIN
recovery/root/system/bin/vendor.qti.hardware.vibrator.service
Executable file
Binary file not shown.
14
recovery/root/vendor/etc/init/vendor.qti.hardware.vibrator.service.rc
vendored
Normal file
14
recovery/root/vendor/etc/init/vendor.qti.hardware.vibrator.service.rc
vendored
Normal file
|
|
@ -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
|
||||
34
recovery/root/vendor/etc/vintf/manifest/vendor.qti.hardware.vibrator.service.xml
vendored
Normal file
34
recovery/root/vendor/etc/vintf/manifest/vendor.qti.hardware.vibrator.service.xml
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
<!-- Copyright (c) 2020-2021 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:
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above
|
||||
copyright notice, this list of conditions and the following
|
||||
disclaimer in the documentation and/or other materials provided
|
||||
with the distribution.
|
||||
* Neither the name of The Linux Foundation nor the names of its
|
||||
contributors may be used to endorse or promote products derived
|
||||
from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
-->
|
||||
<manifest version="1.0" type="device">
|
||||
<hal format="aidl">
|
||||
<name>android.hardware.vibrator</name>
|
||||
<version>2</version>
|
||||
<fqname>IVibrator/default</fqname>
|
||||
</hal>
|
||||
</manifest>
|
||||
BIN
recovery/root/vendor/lib64/libaacvibrator.so
vendored
Normal file
BIN
recovery/root/vendor/lib64/libaacvibrator.so
vendored
Normal file
Binary file not shown.
BIN
recovery/root/vendor/lib64/libqtivibratoreffect.so
vendored
Normal file
BIN
recovery/root/vendor/lib64/libqtivibratoreffect.so
vendored
Normal file
Binary file not shown.
BIN
recovery/root/vendor/lib64/libsoc_helper.so
vendored
Normal file
BIN
recovery/root/vendor/lib64/libsoc_helper.so
vendored
Normal file
Binary file not shown.
BIN
recovery/root/vendor/lib64/vendor.aac.hardware.richtap.vibrator-V1-ndk_platform.so
vendored
Normal file
BIN
recovery/root/vendor/lib64/vendor.aac.hardware.richtap.vibrator-V1-ndk_platform.so
vendored
Normal file
Binary file not shown.
BIN
recovery/root/vendor/lib64/vendor.qti.hardware.vibrator.impl.so
vendored
Normal file
BIN
recovery/root/vendor/lib64/vendor.qti.hardware.vibrator.impl.so
vendored
Normal file
Binary file not shown.
BIN
recovery/root/vendor/odm/etc/aac_richtap.config
vendored
Normal file
BIN
recovery/root/vendor/odm/etc/aac_richtap.config
vendored
Normal file
Binary file not shown.
Loading…
Reference in a new issue