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
This commit is contained in:
parent
93b1d9e9e4
commit
fdf2651b8f
6 changed files with 31 additions and 29 deletions
|
|
@ -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
|
||||
|
|
|
|||
13
device.mk
13
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
|
||||
|
|
|
|||
|
|
@ -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 <stdint.h>
|
||||
#include <compositionengine/UdfpsExtension.h>
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1463,7 +1463,7 @@
|
|||
<!-- The default refresh rate for a given device. If a non-zero value is set for
|
||||
config_defaultPeakRefreshRate, then config_defaultRefreshRate may be set to 0, in that case
|
||||
the value set for config_defaultPeakRefreshRate will act as the default peak frame rate -->
|
||||
<integer name="config_defaultRefreshRate">0</integer>
|
||||
<integer name="config_defaultRefreshRate">90</integer>
|
||||
|
||||
<!-- Preferred max refresh rate at keyguard, if supported by the display. -->
|
||||
<integer name="config_keyguardMaxRefreshRate">60</integer>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue