Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mominqimiang committed Mar 27, 2024
1 parent c6908f7 commit 276240d
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 46 deletions.
4 changes: 0 additions & 4 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,6 @@ TW_EXTRA_LANGUAGES := true
TW_DEFAULT_LANGUAGE := zh_CN
TW_INPUT_BLACKLIST := "hbtp_vm"
TW_DEVICE_VERSION := Redmi K60 Ultra | mominqimiang
TW_LOAD_VENDOR_MODULES := "haptic.ko"
TW_SUPPORT_INPUT_AIDL_HAPTICS := true
TW_SUPPORT_INPUT_AIDL_HAPTICS_FQNAME := "IVibrator/vibratorfeature"
TW_SUPPORT_INPUT_AIDL_HAPTICS_FIX_OFF := true
TW_CUSTOM_CPU_TEMP_PATH := "/sys/class/thermal/thermal_zone80/temp"
TARGET_USE_CUSTOM_LUN_FILE_PATH := /config/usb_gadget/g1/functions/mass_storage.usb0/lun.%d/file
TW_BATTERY_SYSFS_WAIT_SECONDS := 6
Expand Down
2 changes: 0 additions & 2 deletions device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,12 @@ AB_OTA_POSTINSTALL_CONFIG += \
# Additional Target Libraries
TARGET_RECOVERY_DEVICE_MODULES += \
[email protected] \
android.hardware.vibrator-V1-ndk_platform \
[email protected] \
libion \
libxml2

TW_RECOVERY_ADDITIONAL_RELINK_LIBRARY_FILES += \
$(TARGET_OUT_SHARED_LIBRARIES)/[email protected] \
$(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.vibrator-V1-ndk_platform.so \
$(TARGET_OUT_SHARED_LIBRARIES)/[email protected] \
$(TARGET_OUT_SHARED_LIBRARIES)/libion.so \
$(TARGET_OUT_SHARED_LIBRARIES)/libxml2.so
Expand Down
35 changes: 0 additions & 35 deletions recovery/root/init.recovery.mt6985.rc
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import /keymint.service.mitee.rc
import /tee-supplicant.rc
import /miteelog.rc
import /xiaomi.haptic.hal.rc

on init
setprop sys.usb.configfs 1
Expand Down Expand Up @@ -52,25 +51,6 @@ on post-fs
exec u:r:update_engine:s0 root root -- /system/bin/mtk_plpath_utils
start mtk.plpath.utils.link

on post-fs-data
chown system system /sys/bus/i2c/drivers/aw8697_haptic/2-005a/f0_save
chown system system /sys/bus/i2c/drivers/aw8697_haptic/2-005a/osc_save
chown system system /sys/bus/i2c/drivers/aw8697_haptic/3-005a/osc_save
chown system system /sys/bus/i2c/drivers/aw8697_haptic/2-005a/custom_wave
chmod 0666 /sys/bus/i2c/drivers/aw8697_haptic/2-005a/custom_wave
chown system system /sys/bus/i2c/drivers/aw8697_haptic/2-005a/custom_wave
chmod 0666 /sys/bus/i2c/drivers/aw8697_haptic/2-005a/custom_wave
chown system system /sys/bus/i2c/drivers/aw8697_haptic/3-005a/custom_wave
chmod 0666 /sys/bus/i2c/drivers/aw8697_haptic/3-005a/custom_wave
chmod 0666 /sys/class/qcom-haptics/lra_calibration
chown system system /sys/bus/i2c/drivers/aw8697_haptic/0-005a/custom_wave
chmod 0666 /sys/bus/i2c/drivers/aw8697_haptic/0-005a/custom_wave
chmod 0666 /sys/class/qcom-haptics/lra_impedance
chown system system /sys/bus/i2c/drivers/awinic_haptic/1-005a/f0_save
chown system system /sys/bus/i2c/drivers/awinic_haptic/1-005a/osc_save
chown system system /sys/bus/i2c/drivers/awinic_haptic/1-005a/custom_wave
chmod 0666 /sys/bus/i2c/drivers/awinic_haptic/1-005a/custom_wave

service mtk.plpath.utils.link /system/bin/mtk_plpath_utils
class main
user root
Expand All @@ -79,11 +59,6 @@ service mtk.plpath.utils.link /system/bin/mtk_plpath_utils
oneshot
seclabel u:r:recovery:s0

service vibratorfeature-hal-service /vendor/bin/hw/vendor.xiaomi.hardware.vibratorfeature.service
class hal
user system
group system input
seclabel u:r:recovery:s0

service vendor.gatekeeper-1-0 /vendor/bin/hw/[email protected]
interface [email protected]::IGatekeeper default
Expand All @@ -106,13 +81,6 @@ service vendor.gatekeeper-1-0 /vendor/bin/hw/[email protected]
disabled
oneshot
seclabel u:r:recovery:s0

service haptic_hal /system/bin/haptic_hal.sh
user root
group root
disabled
oneshot
seclabel u:r:recovery:s0

on property:crypto.ready=1
start vendor.keymint-mitee
Expand Down Expand Up @@ -146,9 +114,6 @@ on property:crypto.ready=0
stop tee-supplicant
stop miteelog

on property:twrp.modules.loaded=true
start haptic_hal

on boot
start health-hal-2-1
start mifs_hal
Expand Down
5 changes: 0 additions & 5 deletions recovery/root/xiaomi.haptic.hal.rc

This file was deleted.

0 comments on commit 276240d

Please sign in to comment.