dre: 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 Albert Tang
parent bb1d8db952
commit 4c5783bf01

View file

@ -273,6 +273,9 @@ PRODUCT_PACKAGES += \
ipacm \ ipacm \
IPACM_cfg.xml IPACM_cfg.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