Skip to content

Commit

Permalink
调整touch_dev/update_rawdata权限,修复反复报错
Browse files Browse the repository at this point in the history
命令来自vendor分区/vendor/etc/init/vendor.xiaomi.hw.touchfeature@1.0-service.rc
去除加载focaltech_fts.ko,貌似不影响触屏
禁用振动功能,提取系统使用的振动器驱动过程比较复杂,一时半会难修复
  • Loading branch information
ymdzq committed Jun 18, 2023
1 parent 7eb5c1e commit 1048668
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,15 @@ TW_BATTERY_SYSFS_WAIT_SECONDS := 5
TARGET_RECOVERY_QCOM_RTC_FIX := true

# Kernel modules
TW_LOAD_VENDOR_MODULES := "adsp_loader_dlkm.ko focaltech_fts.ko goodix_core.ko qti_battery_charger.ko"
TW_LOAD_VENDOR_MODULES := "adsp_loader_dlkm.ko goodix_core.ko qti_battery_charger.ko"

# Debug
TWRP_INCLUDE_LOGCAT := true
TARGET_USES_LOGD := true

# Haptics
TW_NO_HAPTICS := true

# Tool
TW_INCLUDE_REPACKTOOLS := true
TW_INCLUDE_RESETPROP := true
Expand Down
3 changes: 3 additions & 0 deletions recovery/root/init.recovery.qcom.rc
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ on fs
wait /dev/block/platform/soc/${ro.boot.bootdevice}
symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice
write /proc/sys/kernel/firmware_config/force_sysfs_fallback 1
# touch_dev
chown system system /sys/class/touch/touch_dev/update_rawdata
chmod 0664 /sys/class/touch/touch_dev/update_rawdata
# Mount firmware
mkdir /firmware
mount vfat /dev/block/bootdevice/by-name/modem${ro.boot.slot_suffix} /firmware ro
Expand Down

0 comments on commit 1048668

Please sign in to comment.