|
|
|
## ADB Keys
|
|
|
|
# Android
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
vendor/extra/adb_keys:root/adb_keys
|
|
|
|
# Recovery
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
vendor/extra/adb_keys:recovery/root/adb_keys
|
|
|
|
|
|
|
|
## ATV
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
DocumentsUI
|
|
|
|
|
|
|
|
ifneq ($(PRODUCT_IS_ATV),true)
|
|
|
|
## Camera
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
Aperture
|
|
|
|
endif
|
|
|
|
|
|
|
|
## Custom Cameras
|
|
|
|
# river
|
|
|
|
ifneq ($(filter %river,$(TARGET_PRODUCT)),)
|
|
|
|
-include vendor/extra/oem-cameras/MotCamera2-denali/MotCamera2-denali.mk
|
|
|
|
endif
|
|
|
|
|
|
|
|
## Debugging
|
|
|
|
ifeq ($(filter %foster %foster_tab %sif %sphynx %nx %nx_tab %loki %shieldtablet %jetson,$(TARGET_PRODUCT)),)
|
|
|
|
ifneq ($(TARGET_BUILD_VARIANT),eng)
|
|
|
|
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += log.tag=I
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
## GMS
|
|
|
|
ifeq ($(filter %shieldtablet,$(TARGET_PRODUCT)),)
|
|
|
|
WITH_GMS := true
|
|
|
|
endif
|
|
|
|
ifneq ($(filter %gsi_car_arm64 %gsi_car_x86_64 %tv_arm64 %tv_x86_64,$(TARGET_PRODUCT)),)
|
|
|
|
WITH_GMS_CAR := true
|
|
|
|
endif
|
|
|
|
ifneq ($(filter %deadpool %dopinder %wade %radxa0 %m5 %odroidc4 %gsi_tv_arm %gsi_tv_arm64 %tv_arm %tv_arm64,$(TARGET_PRODUCT)),)
|
|
|
|
WITH_GMS_TV := true
|
|
|
|
endif
|
|
|
|
ifneq ($(filter %bonito %sargo %TP1803 %taimen %walleye %pro1 %lake %beckham %payton %evert %chef %DRG %river %ocean %sailfish %marlin %troika %kane %bacon %flox,$(TARGET_PRODUCT)),)
|
|
|
|
WITH_GMS_MINIMAL := true
|
|
|
|
endif
|
|
|
|
|
|
|
|
## ih8sn
|
|
|
|
PRODUCT_PACKAGES += ih8sn
|
|
|
|
|
|
|
|
ifneq ("$(wildcard vendor/extra/configs/ih8sn/ih8sn_$(subst lineage_,,$(TARGET_PRODUCT)).conf)","")
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
vendor/extra/configs/ih8sn/ih8sn_$(subst lineage_,,$(TARGET_PRODUCT)).conf:/system/etc/ih8sn.conf
|
|
|
|
else
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
vendor/extra/configs/ih8sn/ih8sn_generic.conf:/system/etc/ih8sn.conf
|
|
|
|
endif
|
|
|
|
|
|
|
|
## Media
|
|
|
|
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
|
|
|
|
ro.config.vc_call_vol_steps=7 \
|
|
|
|
ro.config.media_vol_steps=25
|
|
|
|
|
|
|
|
## OpenWeatherProvider
|
|
|
|
PRODUCT_PACKAGES += OpenWeatherProviderPrebuilt
|
|
|
|
|
|
|
|
## neofetch
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
vendor/extra/tools/neofetch:$(TARGET_COPY_OUT_SYSTEM_EXT)/bin/neofetch
|
|
|
|
|
|
|
|
## Overlays
|
|
|
|
PRODUCT_PACKAGE_OVERLAYS += vendor/extra/overlay
|
|
|
|
|
|
|
|
## Recovery
|
|
|
|
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += persist.sys.recovery_update=true
|
|
|
|
|
|
|
|
## Remove Dialer Apps
|
|
|
|
ifneq ($(filter %shieldtablet %yellowstone,$(TARGET_PRODUCT)),)
|
|
|
|
PRODUCT_PACKAGES += remove-dialer
|
|
|
|
endif
|
|
|
|
|
|
|
|
## Updater
|
|
|
|
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += lineage.updater.uri="https://updater-api.oddsolutions.us/api/v1/{device}/{type}/{incr}"
|
|
|
|
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += lineage.updater.allow_downgrading=true
|
|
|
|
|
|
|
|
## Signing
|
|
|
|
PRODUCT_DEFAULT_DEV_CERTIFICATE := vendor/certs/releasekey
|
|
|
|
|
|
|
|
ifeq ($(WITH_GMS),true)
|
|
|
|
ifneq ($(PRODUCT_IS_ATV),true)
|
|
|
|
-include vendor/google_pixel/product.mk
|
|
|
|
endif # PRODUCT_IS_ATV
|
|
|
|
endif # WITH_GMS
|