omni: Copy backup scripts only with Weekly build
Change-Id: I7ad07c85c4eb9e8fea8c9a13bcb009d68ab7d4c7
diff --git a/config/common.mk b/config/common.mk
index 61e0ba3..a4c4e7e 100644
--- a/config/common.mk
+++ b/config/common.mk
@@ -44,6 +44,7 @@
ro.control_privapp_permissions=enforce
# Backup Tool
+ifeq ($(ROM_BUILDTYPE),WEEKLY)
ifneq ($(strip $(AB_OTA_PARTITIONS) $(AB_OTA_POSTINSTALL_CONFIG)),)
PRODUCT_COPY_FILES += \
vendor/omni/prebuilt/common/bin/backuptool_ab.sh:$(TARGET_COPY_OUT_SYSTEM)/bin/backuptool_ab.sh \
@@ -55,6 +56,7 @@
vendor/omni/prebuilt/common/bin/backuptool.sh:$(TARGET_COPY_OUT_SYSTEM)/bin/backuptool.sh \
vendor/omni/prebuilt/common/bin/backuptool.functions:$(TARGET_COPY_OUT_SYSTEM)/bin/backuptool.functions
endif
+endif
# Backup Services whitelist
PRODUCT_COPY_FILES += \