Initialize local repository (thanks to apon77 for repo init script)
repo init --depth=1 --no-repo-verify -u https://github.com/keesu/Spes_android -b twelve -g default,-mips,-darwin,-notdefaultSync up with this command:
repo sync -c --no-clone-bundle --no-tags --optimized-fetch --prune --force-sync -j$(nproc --all)Inherit Lineage vendor common stuffs
$(call inherit-product, vendor/lineage/config/common_full_phone.mk)Adapt your device tree according to our fwb/hardware/vendor changes and use these flags to configure certain ROM properties
# maintainer flag (one word only/no spacing)
RICE_MAINTAINER := maintainer
# chipset flag (one word only/no spacing)
RICE_CHIPSET := chipset
# gapps build flag, if not defined build type is vanilla
WITH_GMS := true/false
# Sushi Bootanimation (only 720/1080p/1440 supported. if not defined, bootanimation is google bootanimation)
SUSHI_BOOTANIMATION := 720/1080/1440
# Graphene Camera
TARGET_BUILD_GRAPHENEOS_CAMERA := true/false
# disable/enable blur support, default is false
TARGET_ENABLE_BLUR := true/false
# UDFPS ICONS/ANIMATIONS
TARGET_HAS_UDFPS := true/false
# Quick tap feature
TARGET_SUPPORTS_QUICK_TAP := true/false
# Face Unlock
TARGET_FACE_UNLOCK_SUPPORTED := true/false
# Memory properties
# Tune these properties according to device perfconfigstore.xml(if available)/device capabilities.
# These props are overridable
PRODUCT_PRODUCT_PROPERTIES += \
persist.sys.fw.bg_apps_limit?=48 \
persist.sys.fw.use_trim_settings?=true \
persist.sys.fw.empty_app_percent?=50 \
persist.sys.fw.trim_empty_percent?=100 \
persist.sys.fw.trim_cache_percent?=100 \
persist.sys.fw.trim_enable_memory?=2147483648 \
persist.sys.fw.bservice_age?=120000 \
persist.sys.fw.bservice_limit?=6 \
persist.sys.fw.bservice_enable?=true Set up environment
. build/envsetup.shBuild the code
brunch "device_codename"