blob: 1e0616e1cbee632fce31e4e120f122ff9458df2e [file] [log] [blame] [edit]
#
# Copyright (C) 2022 SHIFT GmbH
#
# SPDX-License-Identifier: Apache-2.0
#
# Inherit from full device.
$(call inherit-product, device/shift/axolotl/full_axolotl.mk)
# Inherit some common SHIFT stuff.
$(call inherit-product, vendor/shiftos/config/common_full.mk)
# Override product name for SHIFT.
PRODUCT_NAME := axolotl
#############################################################
PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := true
# Enforce native interfaces of product partition as VNDK
PRODUCT_PRODUCT_VNDK_VERSION := current
# Enforce java interfaces of product partition
PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE := true
#############################################################
# APEX
PRODUCT_COMPRESSED_APEX := true
MAINLINE_COMPRESS_APEX_ALL := $(PRODUCT_COMPRESSED_APEX)
# Automation/ATS
PRODUCT_PACKAGES += \
automation_setup \
ifeq ($(WITH_AUTOMATION_USERDATA),true)
PRODUCT_PACKAGES += automation_trigger
endif
# Build super partition
PRODUCT_BUILD_SUPER_PARTITION := true
# DRM
PRODUCT_PACKAGES += \
drmserver \
libdrmframework \
libdrmframework_jni \
PRODUCT_PROPERTY_OVERRIDES += \
drm.service.enabled=true \
media.mediadrmservice.enable=true \
# Enforce priv-app permissions
ifeq ($(TARGET_BUILD_VARIANT),eng)
PRODUCT_PROPERTY_OVERRIDES += ro.control_privapp_permissions=log
else
PRODUCT_PROPERTY_OVERRIDES += ro.control_privapp_permissions=enforce
endif
# GMS
ifeq ($(WITH_64_BIT_ONLY),false)
GMS_MAKEFILE := gms_eea_v2_type4c.mk
else
GMS_MAKEFILE := gms_eea_v2_type4c_64bit_only.mk
endif
MAINLINE_MODULES_MAKEFILE := mainline_modules.mk
# DRM - Widevine
include vendor/widevine/service.mk