android_device_A-Team/A-Team.mk
2026-08-04 22:07:10 -05:00

135 lines
3.8 KiB
Makefile

#
# Copyright 2019-Present A-Team Digital Solutions
#
############
## A-Team ##
##################################################################
LOCAL_PATH := $(call my-dir)
A_TEAM_PATH := device/A-Team
# BootAnimation Resolution
TARGET_BOOT_ANIMATION_RES := 1080
# Device Maintainer
DEVICE_MAINTAINER := PizzaG
# A-Team KSU & Mods
PRODUCT_SOONG_NAMESPACES += \
[A-Team_Mods] \
[A-Team_KSU]
# A-Team Custom APN
ifeq ($(APN_VARIABLE), Custom)
PRODUCT_SOONG_NAMESPACES += \
[A-Team_Custom_APN]
else
PRODUCT_SOONG_NAMESPACES += \
[Default_APN]
endif
# A-Team Rom Apps
ifneq ($(GSI), true)
PRODUCT_SOONG_NAMESPACES += \
[A-Team_Apps]
endif
# A-Team Magisk Patching
ifeq ($(MAGISK), true)
PRODUCT_SOONG_NAMESPACES += \
[A-Team_Magisk]
endif
TARGET_KERNEL_SOURCE := kernel/motorola/$(DEVICE_KERNEL)
PRODUCT_SOONG_NAMESPACES += \
[$(DEVICE_NAME)_$(TARGET_KERNEL)_Kernel]
##################################################################
###########################
## A-Team Gapps Variants ##
##################################################################
# A-Team Gapps
ifeq ($(GAPPS_VARIANT), Gapps)
PRODUCT_SOONG_NAMESPACES += \
[A-Team_GAPPS]
#$(call inherit-product, vendor/gapps/products/gms.mk)
#$(call inherit-product, vendor/gms/products/gms.mk)
endif
# A-Team Micro-G
ifeq ($(GAPPS_VARIANT), Micro-G)
PRODUCT_SOONG_NAMESPACES += \
[A-Team_Micro-G]
#$(call inherit-product, vendor/microg/products/gms.mk)
endif
##################################################################
####################
## A-Team Moto Product Add-Ons ##
##################################################################
# Prebuilt App Build Fix
PRODUCT_BROKEN_VERIFY_USES_LIBRARIES := true
# Moto TimeWeather
PRODUCT_PACKAGES += \
TimeWeather
# Custom Wallpaper
PRODUCT_COPY_FILES += $(call find-copy-subdir-files,*,$(A_TEAM_PATH)/wallpapers,product/media/wallpapers)
PRODUCT_PRODUCT_PROPERTIES += \
ro.config.wallpaper=product/media/wallpapers/default_moto_wallpaper.jpg
# Copy A-Team Custom Script Files - /product/bin
PRODUCT_COPY_FILES += \
$(A_TEAM_PATH)/scripts/A-Team-PostBoot.sh:$(TARGET_COPY_OUT_PRODUCT)/bin/A-Team-PostBoot.sh \
$(A_TEAM_PATH)/scripts/A-Team-Setup.sh:$(TARGET_COPY_OUT_PRODUCT)/bin/A-Team-Setup.sh \
$(A_TEAM_PATH)/scripts/A-Team-Magisk.sh:$(TARGET_COPY_OUT_PRODUCT)/bin/A-Team-Magisk.sh
##################################################################
####################
## A-Team Moto System Add-Ons ##
##################################################################
# Copy A-Team Custom rc Files - /system/etc/init
PRODUCT_COPY_FILES += \
$(A_TEAM_PATH)/init/a-team.boot.rc:$(TARGET_COPY_OUT_SYSTEM)/etc/init/a-team.boot.rc
# Copy Busybox - /system/bin
PRODUCT_COPY_FILES += \
$(A_TEAM_PATH)/Busybox/arm64/busybox:$(TARGET_COPY_OUT_SYSTEM)/bin/busybox \
$(A_TEAM_PATH)/Busybox/arm64/ssl_helper:$(TARGET_COPY_OUT_SYSTEM)/bin/ssl_helper
# Clock
PRODUCT_COPY_FILES += \
$(A_TEAM_PATH)/Prerequisites/Clock.prop:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/Clock.prop
# Messages
PRODUCT_COPY_FILES += \
$(A_TEAM_PATH)/Prerequisites/com.google.android.apps.messaging.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/com.google.android.apps.messaging.xml
# System Prop Additions
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
persist.adb.notify=0 \
persist.sys.disable_rescue=true \
ro.a-team.rom_version=$(INTERNAL_VERSION)
##################################################################
#############################
## Disabled / Old / Unused ##
##################################################################
# A-Team Custom APN
#ifeq ($(CUSTOM_APN), true)
#PRODUCT_COPY_FILES += \
# $(A_TEAM_PATH)/Custom_APN/apns-conf.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/apns-conf.xml
#endif
##################################################################