caimito: Copy touch modules to vendor_kernel_boot

Makes touch work in recovery
syna_touch requires qbt_handler, heatmap & goog_touch_interface symbols

Co-authored-by: Nicholas Lim <nicknitewolf@lineageos.org>
Co-authored-by: LuK1337 <priv.luk@gmail.com>
Change-Id: Iaa5a158af827732b13ab79b60bed2f319ce56391
This commit is contained in:
Michael Bestas 2022-08-13 04:25:09 +03:00
parent 8fe73d6dee
commit 73eb901c0d
No known key found for this signature in database
12 changed files with 74 additions and 0 deletions

View file

@ -3,3 +3,9 @@
# SPDX-FileCopyrightText: 2021-2024 The Calyx Institute # SPDX-FileCopyrightText: 2021-2024 The Calyx Institute
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
# Kernel modules
BOARD_VENDOR_KERNEL_RAMDISK_KERNEL_MODULES_BLOCKLIST_FILE := $(DEVICE_PATH)/modules.blocklist.vendor_kernel_boot
BOARD_VENDOR_KERNEL_RAMDISK_KERNEL_MODULES_LOAD_RAW := $(strip $(shell cat $(DEVICE_PATH)/modules.load.vendor_kernel_boot))
BOARD_VENDOR_KERNEL_RAMDISK_KERNEL_MODULES_LOAD += $(BOARD_VENDOR_KERNEL_RAMDISK_KERNEL_MODULES_LOAD_RAW)
BOARD_VENDOR_KERNEL_RAMDISK_KERNEL_MODULES += $(addprefix $(KERNEL_MODULE_DIR)/, $(notdir $(BOARD_VENDOR_KERNEL_RAMDISK_KERNEL_MODULES_LOAD_RAW)))

11
caiman/Android.bp Normal file
View file

@ -0,0 +1,11 @@
//
// SPDX-FileCopyrightText: 2024 The LineageOS Project
// SPDX-License-Identifier: Apache-2.0
//
prebuilt_etc {
name: "init.recovery.caiman.touch.rc",
src: "init.recovery.touch.rc",
sub_dir: "init",
recovery: true,
}

View file

@ -12,3 +12,7 @@ PRODUCT_PACKAGES += \
PixelDisplayServiceOverlayCaiman PixelDisplayServiceOverlayCaiman
TARGET_VENDOR_PROP += $(DEVICE_PATH)/$(DEVICE_CODENAME)/vendor.prop TARGET_VENDOR_PROP += $(DEVICE_PATH)/$(DEVICE_CODENAME)/vendor.prop
# Init
PRODUCT_PACKAGES += \
init.recovery.caiman.touch.rc

View file

@ -0,0 +1,5 @@
on init
insmod /lib/modules/qbt_handler.ko
insmod /lib/modules/heatmap.ko
insmod /lib/modules/goog_touch_interface.ko
insmod /lib/modules/syna_touch.ko

11
komodo/Android.bp Normal file
View file

@ -0,0 +1,11 @@
//
// SPDX-FileCopyrightText: 2024 The LineageOS Project
// SPDX-License-Identifier: Apache-2.0
//
prebuilt_etc {
name: "init.recovery.komodo.touch.rc",
src: "init.recovery.touch.rc",
sub_dir: "init",
recovery: true,
}

View file

@ -12,3 +12,7 @@ PRODUCT_PACKAGES += \
PixelDisplayServiceOverlayKomodo PixelDisplayServiceOverlayKomodo
TARGET_VENDOR_PROP += $(DEVICE_PATH)/$(DEVICE_CODENAME)/vendor.prop TARGET_VENDOR_PROP += $(DEVICE_PATH)/$(DEVICE_CODENAME)/vendor.prop
# Init
PRODUCT_PACKAGES += \
init.recovery.komodo.touch.rc

View file

@ -0,0 +1,5 @@
on init
insmod /lib/modules/qbt_handler.ko
insmod /lib/modules/heatmap.ko
insmod /lib/modules/goog_touch_interface.ko
insmod /lib/modules/syna_touch.ko

View file

@ -0,0 +1,4 @@
blocklist qbt_handler
blocklist heatmap
blocklist goog_touch_interface
blocklist syna_touch

View file

@ -0,0 +1,4 @@
extra/private/google-modules/fingerprint/qcom/qfs4008/qbt_handler.ko
extra/private/google-modules/touch/common/heatmap.ko
extra/private/google-modules/touch/common/goog_touch_interface.ko
extra/private/google-modules/touch/synaptics/syna_gtd/syna_touch.ko

11
tokay/Android.bp Normal file
View file

@ -0,0 +1,11 @@
//
// SPDX-FileCopyrightText: 2024 The LineageOS Project
// SPDX-License-Identifier: Apache-2.0
//
prebuilt_etc {
name: "init.recovery.tokay.touch.rc",
src: "init.recovery.touch.rc",
sub_dir: "init",
recovery: true,
}

View file

@ -12,3 +12,7 @@ PRODUCT_PACKAGES += \
PixelDisplayServiceOverlayTokay PixelDisplayServiceOverlayTokay
TARGET_VENDOR_PROP += $(DEVICE_PATH)/$(DEVICE_CODENAME)/vendor.prop TARGET_VENDOR_PROP += $(DEVICE_PATH)/$(DEVICE_CODENAME)/vendor.prop
# Init
PRODUCT_PACKAGES += \
init.recovery.tokay.touch.rc

View file

@ -0,0 +1,5 @@
on init
insmod /lib/modules/qbt_handler.ko
insmod /lib/modules/heatmap.ko
insmod /lib/modules/goog_touch_interface.ko
insmod /lib/modules/syna_touch.ko