sm8350-common: Disable UFFD GC

Unable to determine UFFD GC flag for kernel version "5.4.268-qgki".
You can fix this by explicitly setting PRODUCT_ENABLE_UFFD_GC to "true"
or
"false" based on the kernel version.
1. Set PRODUCT_ENABLE_UFFD_GC to "true" if the kernel supports
userfaultfd(2)
   and MREMAP_DONTUNMAP.
2. Set PRODUCT_ENABLE_UFFD_GC to "false" otherwise.

Change-Id: Ie77d9a86a7fe94e4cade1868ffea27194f724e03
This commit is contained in:
Chirayu Desai 2024-06-13 22:02:20 +05:30 committed by Giovanni Ricca
parent 41d4ea3a7c
commit 9ee014a60e
No known key found for this signature in database

View File

@ -273,6 +273,9 @@ PRODUCT_PACKAGES += \
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.consumerir.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.consumerir.xml frameworks/native/data/etc/android.hardware.consumerir.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.consumerir.xml
# Kernel
PRODUCT_ENABLE_UFFD_GC := false
# Keymaster # Keymaster
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
android.hardware.keymaster@4.1.vendor android.hardware.keymaster@4.1.vendor