From fdf2651b8f3e711b4d3997ac6597c31801814ab3 Mon Sep 17 00:00:00 2001 From: mertsan2007 Date: Sun, 19 Jul 2026 17:52:57 +0000 Subject: [PATCH] a32: Clean up tree, update fingerprint and optimize performance - Drop prebuilts tree and move required prebuilts to device tree - Update build fingerprint to A325FXXSCDXL2 - Import and utilize previously unused blobs - Fix a compilation error during the build - Implement minor tweaks for better performance --- BoardConfig.mk | 26 ++++++++----------- device.mk | 13 ++++------ fingerprint/UdfpsExtension.cpp | 13 ++++++++-- lineage_a32.mk | 4 +-- .../res/values/config.xml | 2 +- vendor.prop | 2 +- 6 files changed, 31 insertions(+), 29 deletions(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index 105ce2e..09f6145 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -5,7 +5,6 @@ # DEVICE_PATH := device/samsung/a32 -TARGET_BROKEN_MISSING_PRODUCT_PACKAGES := true BUILD_BROKEN_DUP_RULES := true BUILD_BROKEN_PREBUILT_ELF_FILES := true @@ -44,7 +43,7 @@ BOARD_SECOND_OFFSET := 0xbff88000 BOARD_RAMDISK_USE_LZ4 := true BOARD_BOOTIMG_HEADER_VERSION := 2 -BOARD_PREBUILT_DTBOIMAGE := $(DEVICE_PATH)-kernel/dtbo.img +BOARD_PREBUILT_DTBOIMAGE := $(DEVICE_PATH)/prebuilts/dtbo.img BOARD_INCLUDE_DTB_IN_BOOTIMG := true BOARD_KERNEL_CMDLINE := bootopt=64S3,32N2,64N2 androidboot.selinux=permissive @@ -75,18 +74,15 @@ TARGET_KERNEL_CLANG_COMPILE := true TARGET_KERNEL_CLANG_VERSION := r383902 BOARD_KERNEL_IMAGE_NAME := Image.gz -#BOARD_VENDOR_KERNEL_MODULES += \ -# /home/vigus/los21/device/samsung/a32/prebuilts/modules/bt_drv_connac1x.ko \ -# /home/vigus/los21/device/samsung/a32/prebuilts/modules/connfem.ko \ # /home/vigus/los21/device/samsung/a32/prebuilts/modules/fmradio_drv_mt6631.ko \ -# /home/vigus/los21/device/samsung/a32/prebuilts/modules/fpsgo.ko \ -# /home/vigus/los21/device/samsung/a32/prebuilts/modules/gps_drv.ko \ -# /home/vigus/los21/device/samsung/a32/prebuilts/modules/met.ko \ -# /home/vigus/los21/device/samsung/a32/prebuilts/modules/udc_lib.ko \ -# /home/vigus/los21/device/samsung/a32/prebuilts/modules/wlan_drv_gen4m.ko \ -# /home/vigus/los21/device/samsung/a32/prebuilts/modules/wmt_chrdev_wifi.ko \ -# /home/vigus/los21/device/samsung/a32/prebuilts/modules/wmt_drv.ko - +BOARD_VENDOR_KERNEL_MODULES += \ + /home/vigus/los21/device/samsung/a32/prebuilts/modules/fpsgo.ko \ + /home/vigus/los21/device/samsung/a32/prebuilts/modules/gps_drv.ko \ + /home/vigus/los21/device/samsung/a32/prebuilts/modules/met.ko \ + /home/vigus/los21/device/samsung/a32/prebuilts/modules/udc_lib.ko \ + /home/vigus/los21/device/samsung/a32/prebuilts/modules/connfem.ko \ + /home/vigus/los21/device/samsung/a32/prebuilts/modules/wmt_chrdev_wifi.ko \ + /home/vigus/los21/device/samsung/a32/prebuilts/modules/wmt_drv.ko #BOARD_VENDOR_KERNEL_MODULES += $(wildcard $(DEVICE_PATH)-kernel/vendor-modules/*.ko) TARGET_KERNEL_LLVM_BINUTILS := false @@ -152,8 +148,8 @@ SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy/public BOARD_VENDOR_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy/vendor # UDFPS -#TARGET_SEC_FP_REQUEST_FORCE_CALIBRATE := true -#TARGET_SURFACEFLINGER_UDFPS_LIB := //$(DEVICE_PATH):libudfps_extension.a32 +TARGET_SEC_FP_REQUEST_FORCE_CALIBRATE := true +TARGET_SURFACEFLINGER_UDFPS_LIB := //$(DEVICE_PATH):libudfps_extension.a32 # Verified Boot BOARD_AVB_ENABLE := true diff --git a/device.mk b/device.mk index b8f84c9..f930592 100644 --- a/device.mk +++ b/device.mk @@ -330,9 +330,8 @@ PRODUCT_COPY_FILES += \ PRODUCT_PACKAGES += \ android.hardware.radio.config@1.2.vendor \ android.hardware.radio.deprecated@1.0.vendor \ - android.hardware.radio@1.6.vendor - -# secril_config_svc + android.hardware.radio@1.6.vendor \ + secril_config_svc # Radio (IMS) PRODUCT_BOOT_JARS += \ @@ -377,11 +376,9 @@ PRODUCT_COPY_FILES += \ $(call find-copy-subdir-files,*,$(LOCAL_PATH)/configs/seccomp_policy,$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy) # Sensors -#PRODUCT_PACKAGES += \ -# android.hardware.sensors-service.samsung-multihal - PRODUCT_PACKAGES += \ android.frameworks.sensorservice@1.0.vendor \ + android.hardware.sensors-service.samsung-multihal \ android.hardware.sensors@1.0.vendor PRODUCT_COPY_FILES += \ @@ -398,7 +395,7 @@ PRODUCT_SOONG_NAMESPACES += \ hardware/lineage/interfaces/power-libperfmgr \ hardware/mediatek \ hardware/mediatek/libmtkperf_client \ - hardware/samsung_ext + hardware/samsung # Thermal PRODUCT_PACKAGES += \ @@ -410,8 +407,8 @@ PRODUCT_PACKAGES += \ android.hardware.usb@1.3.vendor # Vibrator -# android.hardware.vibrator-service.samsung \ PRODUCT_PACKAGES += \ + android.hardware.vibrator-service.samsung \ vibrator.default # ViPER5AndroidFX diff --git a/fingerprint/UdfpsExtension.cpp b/fingerprint/UdfpsExtension.cpp index 8a3445d..912ea05 100644 --- a/fingerprint/UdfpsExtension.cpp +++ b/fingerprint/UdfpsExtension.cpp @@ -5,15 +5,16 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the Licese is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ +#include #include uint32_t getUdfpsZOrder(uint32_t z, bool touched) { @@ -27,3 +28,11 @@ uint64_t getUdfpsUsageBits(uint64_t usageBits, bool touched) { } return usageBits; } + +// This is the new function required for LineageOS 21 (Android 14) +uint32_t getUdfpsDimZOrder(uint32_t z) { + // This ensures the dim layer is stacked correctly + // on top of other surfaces. + return z | 0x10000000; +} + diff --git a/lineage_a32.mk b/lineage_a32.mk index 26fcb9b..ecbe0de 100644 --- a/lineage_a32.mk +++ b/lineage_a32.mk @@ -25,6 +25,6 @@ PRODUCT_GMS_CLIENTID_BASE := android-samsung-ss PRODUCT_BUILD_PROP_OVERRIDES += \ TARGET_DEVICE=a32 \ PRODUCT_NAME=a32xx \ - PRIVATE_BUILD_DESC="a32xx-user 13 TP1A.220624.014 A325FXXS7DXA2 release-keys" + PRIVATE_BUILD_DESC="a32xx-user 13 TP1A.220624.014 A325FXXSCDXL2 release-keys" -BUILD_FINGERPRINT := samsung/a32xx/a32:13/TP1A.220624.014/A325FXXS7DXA2:user/release-keys +BUILD_FINGERPRINT := samsung/a32xx/a32:13/TP1A.220624.014/A325FXXSCDXL2:user/release-keys diff --git a/rro_overlays/FrameworksResOverlayA32/res/values/config.xml b/rro_overlays/FrameworksResOverlayA32/res/values/config.xml index c09c7de..ac77b2a 100644 --- a/rro_overlays/FrameworksResOverlayA32/res/values/config.xml +++ b/rro_overlays/FrameworksResOverlayA32/res/values/config.xml @@ -1463,7 +1463,7 @@ - 0 + 90 60 diff --git a/vendor.prop b/vendor.prop index 9248752..a83bb14 100644 --- a/vendor.prop +++ b/vendor.prop @@ -261,7 +261,7 @@ debug.sf.early.app.duration=20000000 debug.sf.earlyGl.sf.duration=27600000 debug.sf.earlyGl.app.duration=20000000 debug.sf.hwc.min.duration=23000000 -debug.sf.enable_gl_backpressure=1 +debug.sf.enable_gl_backpressure=0 debug.sf.auto_latch_unsignaled=0 # TEE