126 lines
3.9 KiB
Makefile
126 lines
3.9 KiB
Makefile
#
|
|
# Copyright 2019-Present A-Team Digital Solutions
|
|
#
|
|
############
|
|
## A-Team ROM Build Addon mk File
|
|
##################################################################
|
|
|
|
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 - Magisk Root - Mods - Custom Installer
|
|
ifeq ($(INSTALLER_VARIANT), custom)
|
|
PRODUCT_SOONG_NAMESPACES += \
|
|
[A-Team_Custom_ROM_Installer] \
|
|
[A-Team_KSU] \
|
|
[A-Team_Magisk] \
|
|
[A-Team_Mods]
|
|
# 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
|
|
# 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
|
|
endif
|
|
|
|
# A-Team Default Installer
|
|
ifeq ($(INSTALLER_VARIANT), default)
|
|
PRODUCT_SOONG_NAMESPACES += \
|
|
[A-Team_Default_ROM_Installer]
|
|
endif
|
|
|
|
# A-Team Custom APN
|
|
ifeq ($(APN_VARIANT), 1)
|
|
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
|
|
|
|
TARGET_KERNEL_SOURCE := kernel/motorola/$(DEVICE_SOC)
|
|
PRODUCT_SOONG_NAMESPACES += \
|
|
[$(DEVICE_DISPLAY_CODENAME)-$(DEVICE_KERNEL)_Kernel]
|
|
##################################################################
|
|
###########################
|
|
## A-Team Gapps ##
|
|
##################################################################
|
|
|
|
# A-Team Gapps
|
|
ifeq ($(GAPPS_VARIANT), gapps)
|
|
PRODUCT_SOONG_NAMESPACES += \
|
|
[A-Team_GAPPS]
|
|
# MindTheGapps
|
|
$(call inherit-product, vendor/gapps/arm64/arm64-vendor.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
|
|
##################################################################
|
|
####################
|
|
## A-Team Moto System Add-Ons ##
|
|
##################################################################
|
|
|
|
#PRODUCT_SOONG_NAMESPACES += \
|
|
# [A-Team_Busybox]
|
|
|
|
# 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 ##
|
|
##################################################################
|
|
##################################################################
|