Initial upload
This commit is contained in:
parent
5cf1088c7b
commit
b29adbd26f
9 changed files with 562 additions and 0 deletions
125
device.mk
Normal file
125
device.mk
Normal file
|
|
@ -0,0 +1,125 @@
|
|||
#
|
||||
# Copyright (C) 2023 The Android Open Source Project
|
||||
# Copyright (C) 2023 SebaUbuntu's TWRP device tree generator
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
# Soong namespaces
|
||||
PRODUCT_SOONG_NAMESPACES += \
|
||||
$(LOCAL_PATH)
|
||||
|
||||
# API
|
||||
BOARD_SHIPPING_API_LEVEL := 31
|
||||
BOARD_API_LEVEL := 31
|
||||
PRODUCT_SHIPPING_API_LEVEL := 31
|
||||
SHIPPING_API_LEVEL := 31
|
||||
|
||||
# A/B
|
||||
AB_OTA_POSTINSTALL_CONFIG += \
|
||||
RUN_POSTINSTALL_system=true \
|
||||
POSTINSTALL_PATH_system=system/bin/otapreopt_script \
|
||||
FILESYSTEM_TYPE_system=ext4 \
|
||||
POSTINSTALL_OPTIONAL_system=true
|
||||
|
||||
AB_OTA_POSTINSTALL_CONFIG += \
|
||||
RUN_POSTINSTALL_vendor=true \
|
||||
POSTINSTALL_PATH_vendor=bin/checkpoint_gc \
|
||||
FILESYSTEM_TYPE_vendor=ext4 \
|
||||
POSTINSTALL_OPTIONAL_vendor=true
|
||||
|
||||
# Boot control HAL
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.boot@1.2-impl-qti \
|
||||
android.hardware.boot@1.2-impl-qti.recovery \
|
||||
android.hardware.boot@1.2-service
|
||||
|
||||
PRODUCT_PACKAGES_DEBUG += \
|
||||
bootctl
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
otapreopt_script \
|
||||
checkpoint_gc \
|
||||
update_engine \
|
||||
update_engine_client \
|
||||
update_verifier \
|
||||
update_engine_sideload
|
||||
|
||||
# Crypto
|
||||
PRODUCT_PACKAGES += \
|
||||
qcom_decrypt \
|
||||
qcom_decrypt_fbe
|
||||
|
||||
# Dynamic partitions
|
||||
PRODUCT_USE_DYNAMIC_PARTITIONS := true
|
||||
|
||||
# F2FS utilities
|
||||
PRODUCT_PACKAGES += \
|
||||
sg_write_buffer \
|
||||
f2fs_io \
|
||||
check_f2fs \
|
||||
mtpfs
|
||||
|
||||
# Fastbootd
|
||||
PRODUCT_PACKAGES += \
|
||||
fastbootd \
|
||||
android.hardware.fastboot@1.1-impl-mock
|
||||
|
||||
# FUSE
|
||||
PRODUCT_PRODUCT_PROPERTIES += \
|
||||
persist.sys.fuse.passthrough.enable=true
|
||||
|
||||
# Host Adb
|
||||
PRODUCT_HOST_PACKAGES += \
|
||||
adbd \
|
||||
mtpd
|
||||
|
||||
# HACK: Set vendor patch level
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
ro.bootimage.build.date.utc=0 \
|
||||
ro.build.date.utc=0
|
||||
|
||||
# OEM otacert
|
||||
PRODUCT_EXTRA_RECOVERY_KEYS += \
|
||||
$(LOCAL_PATH)/security/ota
|
||||
|
||||
# Take a few libraries from sources
|
||||
TARGET_RECOVERY_DEVICE_MODULES += \
|
||||
android.hardware.vibrator-V2-ndk_platform.so \
|
||||
android.hidl.allocator@1.0 \
|
||||
android.hidl.memory@1.0 \
|
||||
android.hidl.memory.token@1.0 \
|
||||
libdmabufheap \
|
||||
libhidlmemory \
|
||||
libion \
|
||||
libnetutils \
|
||||
libxml2 \
|
||||
vendor.display.config@1.0 \
|
||||
vendor.display.config@2.0 \
|
||||
libdisplayconfig.qti
|
||||
|
||||
RECOVERY_LIBRARY_SOURCE_FILES += \
|
||||
$(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.vibrator-V2-ndk_platform.so \
|
||||
$(TARGET_OUT_SHARED_LIBRARIES)/android.hidl.allocator@1.0.so \
|
||||
$(TARGET_OUT_SHARED_LIBRARIES)/android.hidl.memory@1.0.so \
|
||||
$(TARGET_OUT_SHARED_LIBRARIES)/android.hidl.memory.token@1.0.so \
|
||||
$(TARGET_OUT_SHARED_LIBRARIES)/libdmabufheap.so \
|
||||
$(TARGET_OUT_SHARED_LIBRARIES)/libhidlmemory.so \
|
||||
$(TARGET_OUT_SHARED_LIBRARIES)/libion.so \
|
||||
$(TARGET_OUT_SHARED_LIBRARIES)/libnetutils.so \
|
||||
$(TARGET_OUT_SHARED_LIBRARIES)/libxml2.so \
|
||||
$(TARGET_OUT_SYSTEM_EXT_SHARED_LIBRARIES)/vendor.display.config@1.0.so \
|
||||
$(TARGET_OUT_SYSTEM_EXT_SHARED_LIBRARIES)/vendor.display.config@2.0.so \
|
||||
$(TARGET_OUT_SYSTEM_EXT_SHARED_LIBRARIES)/libdisplayconfig.qti.so
|
||||
|
||||
# TZDATA
|
||||
PRODUCT_PACKAGES += \
|
||||
tzdata_twrp
|
||||
# Virtual ab device
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
ro.virtual_ab.enabled=true
|
||||
|
||||
# Namespace definition for librecovery_updater
|
||||
SOONG_CONFIG_NAMESPACES += ufsbsg
|
||||
SOONG_CONFIG_ufsbsg += ufsframework
|
||||
SOONG_CONFIG_ufsbsg_ufsframework := bsg
|
||||
Loading…
Reference in a new issue