spes: Initial Android 16 Build Preperation

Note: This is mostly fixed using AI use with caution!
This commit is contained in:
Yograt
2025-06-18 21:10:52 +07:00
parent 7da70ffc56
commit 183d171466
7 changed files with 16 additions and 31 deletions

View File

@@ -5,4 +5,4 @@
#
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/aosp_spes.mk
$(LOCAL_DIR)/lineage_spes.mk

View File

@@ -113,7 +113,7 @@ DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE := \
$(DEVICE_PATH)/configs/hidl/framework_compatibility_matrix.xml
DEVICE_MATRIX_FILE += $(DEVICE_PATH)/configs/hidl/compatibility_matrix.xml
DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/configs/hidl/manifest.xml
ifeq ($(PRODUCT_NAME), aosp_spes)
ifeq ($(PRODUCT_NAME), lineage_spes)
DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/configs/hidl/manifest-lineage.xml
DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE += \
$(DEVICE_PATH)/configs/hidl/framework_compatibility_matrix-lineage.xml

View File

@@ -1,4 +1,4 @@
<manifest version="2.0" type="device" target-level="5">
<manifest version="2.0" type="device" target-level="6">
<hal format="hidl">
<name>android.hardware.audio</name>
<transport>hwbinder</transport>

View File

@@ -4,6 +4,15 @@
# SPDX-License-Identifier: Apache-2.0
#
# Disable dexpreopt for crashrecovery module
PRODUCT_SYSTEM_SERVER_DEX_PREOPT_DISABLED_MODULES += service-crashrecovery
DONT_DEXPREOPT_BOOT_JARS += service-crashrecovery
DONT_DEXPREOPT_APEX_JARS += service-crashrecovery
# Remove from boot jars and apex jars
PRODUCT_BOOT_JARS := $(filter-out service-crashrecovery,$(PRODUCT_BOOT_JARS))
PRODUCT_APEX_SYSTEM_SERVER_JARS := $(filter-out com.android.crashrecovery:service-crashrecovery,$(PRODUCT_APEX_SYSTEM_SERVER_JARS))
# Enable updating of APEXes
$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
@@ -596,10 +605,6 @@ PRODUCT_PACKAGES += \
# Include debug tool
$(call inherit-product, hardware/samsung-ext/interfaces/debug-tools/debug.mk)
# Include Leica//Miui Camera
$(call inherit-product, vendor/xiaomi/miuicamera/config.mk)
$(call soong_config_set,camera,package_name,com.android.camera)
# Remove unnecessary system apps (e.g., AudioFX)
PRODUCT_PACKAGES += \
RemovePackages

View File

@@ -11,11 +11,11 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
# Inherit from spes/spesn device
$(call inherit-product, device/xiaomi/spes/device.mk)
# Inherit some common Pixel Project stuff.
$(call inherit-product, vendor/aosp/config/common_full_phone.mk)
# Inherit some common EvolutionX stuff.
$(call inherit-product, vendor/lineage/config/common_full_phone.mk)
# Product Specifics
PRODUCT_NAME := aosp_spes
PRODUCT_NAME := lineage_spes
PRODUCT_DEVICE := spes
PRODUCT_BRAND := Redmi
PRODUCT_MODEL := Redmi Note 11
@@ -26,16 +26,8 @@ PRODUCT_GMS_CLIENTID_BASE := android-xiaomi
# Boot Animaton
TARGET_BOOT_ANIMATION_RES := 1080
# The Pixel Project Stuff
CUSTOM_BUILD_TYPE := OFFICIAL
# EvolutionX Stuff
WITH_GMS := true
TARGET_SUPPORTS_QUICK_TAP := true
TARGET_SUPPORTS_GOOGLE_RECORDER := true
TARGET_INCLUDE_STOCK_ARCORE := true
TARGET_INCLUDE_STOCK_AICORE := true
TARGET_INCLUDE_LIVE_WALLPAPERS := true
CUSTOM_MAINTAINER := Yogratdesuyo
TARGET_ENABLE_BLUR := true
PRODUCT_BUILD_PROP_OVERRIDES += \
BuildDesc="spes_global-user 13 TKQ1.221114.001 V816.0.8.0.TGCMIXM release-keys" \
BuildFingerprint=Redmi/spes_global/spes:13/TKQ1.221114.001/V816.0.8.0.TGCMIXM:user/release-keys

View File

@@ -305,11 +305,8 @@ vendor/lib64/libofflinelog.so
vendor/lib64/libopencv.so
vendor/lib64/libopestriping.so
vendor/lib64/libsdk_sr.so
vendor/lib64/libsns_device_mode_stub.so
vendor/lib64/libsns_fastRPC_util.so
vendor/lib64/libsns_low_lat_stream_stub.so
vendor/lib64/libsns_registry_skel.so
vendor/lib64/libsnsapi.so
vendor/lib64/libsnsdiaglog.so
vendor/lib64/libswregistrationalgo.so
vendor/lib64/libswvdec.so
@@ -616,7 +613,6 @@ vendor/bin/hw/vendor.display.color@1.0-service
vendor/bin/ppd
vendor/etc/init/vendor.display.color@1.0-service.rc
vendor/lib64/libdisp-aba.so
vendor/lib64/libdpps.so
vendor/lib64/vendor.display.color@1.0.so
vendor/lib64/vendor.display.color@1.1.so
vendor/lib64/vendor.display.color@1.2.so
@@ -1205,10 +1201,8 @@ vendor/lib64/libnotifyaudiohal.so
vendor/lib64/libsensorcal.so
vendor/lib64/libsensorslog.so
vendor/lib64/libsns_device_mode_stub.so
vendor/lib64/libsns_fastRPC_util.so
vendor/lib64/libsns_low_lat_stream_stub.so
vendor/lib64/libsnsapi.so
vendor/lib64/libsnsdiaglog.so
vendor/lib64/libssc.so
vendor/lib64/libssc_default_listener.so
vendor/lib64/sensors.ssc.so

View File

@@ -8,7 +8,6 @@ VENDOR_BRANCH="vic"
KERNEL_BRANCH="15.0"
HARDWARE_BRANCH="15.0"
DEBUG_BRANCH="lineage-22"
LEICA_CAMERA_BRANCH="leica-5.0"
check_dir() {
if [ -d "$1" ]; then
@@ -51,9 +50,4 @@ if check_dir hardware/samsung-ext/interfaces; then
git clone https://github.com/spes-development/hardware_samsung-extra_interfaces -b $DEBUG_BRANCH hardware/samsung-ext/interfaces
fi
if check_dir vendor/xiaomi/miuicamera; then
echo -e "${GREEN}Cloning Leica Camera vendor sources from ItzDFPlayer (branch: ${YELLOW}$LEICA_CAMERA_BRANCH${GREEN})...${END}"
git clone https://gitlab.com/ItzDFPlayer/vendor_xiaomi_miuicamera -b $LEICA_CAMERA_BRANCH vendor/xiaomi/miuicamera
fi
echo -e "${YELLOW}All patches have been successfully applied; your device sources are now ready!${END}"