Apps-only notice file
Bug: 225050939
Bug: 68860345
Bug: 151177513
Bug: 151953481
Bug: 213388645
Bug: 210912771
Test: m alllicensemetadata reportmissinglicenses
Change-Id: I5564c59686277398e05bb59b30d548b2ed678eab
diff --git a/core/main.mk b/core/main.mk
index d5dc49f..d3b5d5f 100644
--- a/core/main.mk
+++ b/core/main.mk
@@ -1765,13 +1765,13 @@
droid_targets: apps_only
-# Combine the NOTICE files for a apps_only build
-$(eval $(call combine-notice-files, html, \
- $(target_notice_file_txt), \
- $(target_notice_file_html_or_xml), \
- "Notices for files for apps:", \
- $(TARGET_OUT_NOTICE_FILES), \
- $(apps_only_installed_files)))
+# NOTICE files for a apps_only build
+$(eval $(call html-notice-rule,$(target_notice_file_html_or_xml),"Apps","Notices for files for apps:",$(unbundled_build_modules),$(PRODUCT_OUT)/ $(HOST_OUT)/))
+
+$(eval $(call text-notice-rule,$(target_notice_file_txt),"Apps","Notices for files for apps:",$(unbundled_build_modules),$(PRODUCT_OUT)/ $(HOST_OUT)/))
+
+$(call declare-0p-target,$(target_notice_file_txt))
+$(call declare-0p-target,$(target_notice_html_or_xml_gz))
else ifeq ($(TARGET_BUILD_UNBUNDLED),$(TARGET_BUILD_UNBUNDLED_IMAGE))
diff --git a/core/os_licensing.mk b/core/os_licensing.mk
index 8ab53a5..d8d3c78 100644
--- a/core/os_licensing.mk
+++ b/core/os_licensing.mk
@@ -1,3 +1,5 @@
+ifeq ($(TARGET_BUILD_APPS),)
+
.PHONY: systemlicense
systemlicense: $(call corresponding-license-metadata, $(SYSTEM_NOTICE_DEPS)) reportmissinglicenses
@@ -169,3 +171,5 @@
$(call declare-0p-target,$(installed_sysetm_dlkm_notice_xml_gz))
ALL_DEFAULT_INSTALLED_MODULES += $(installed_system_dlkm_notice_xml_gz)
endif
+
+endif # not TARGET_BUILD_APPS