From db07c59d96a95f1253dd315c9fad1750952ee17e Mon Sep 17 00:00:00 2001 From: Justin Yun Date: Mon, 24 Jun 2024 18:14:38 +0900 Subject: [PATCH] Include soong modules instead of using PRODUCT_COPY_FILES The xml files are defined as prebuilt_etc modules. Use those modules instead of copying them manually with PRODUCT_COPY_FILES. Bug: 314933937 Test: m aosp_cf_system_x86_64 Change-Id: I97569381a29ade620584b96b20908c514a07e981 --- target/product/handheld_system.mk | 4 +--- target/product/media_system.mk | 8 +++----- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/target/product/handheld_system.mk b/target/product/handheld_system.mk index fb55f5673a..3f3bd01aab 100644 --- a/target/product/handheld_system.mk +++ b/target/product/handheld_system.mk @@ -33,6 +33,7 @@ $(call inherit-product-if-exists, frameworks/base/data/keyboards/keyboards.mk) $(call inherit-product-if-exists, frameworks/webview/chromium/chromium.mk) PRODUCT_PACKAGES += \ + android.software.window_magnification.prebuilt.xml \ BasicDreams \ BlockedNumberProvider \ BluetoothMidiService \ @@ -88,9 +89,6 @@ PRODUCT_SYSTEM_SERVER_APPS += \ PRODUCT_PACKAGES += framework-audio_effects.xml -PRODUCT_COPY_FILES += \ - frameworks/native/data/etc/android.software.window_magnification.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.software.window_magnification.xml \ - PRODUCT_VENDOR_PROPERTIES += \ ro.carrier?=unknown \ ro.config.notification_sound?=OnTheHunt.ogg \ diff --git a/target/product/media_system.mk b/target/product/media_system.mk index 503c9b3531..af3857ebc1 100644 --- a/target/product/media_system.mk +++ b/target/product/media_system.mk @@ -21,6 +21,7 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/base_system.mk) PRODUCT_PACKAGES += \ + android.software.webview.prebuilt.xml \ com.android.future.usb.accessory \ com.android.mediadrm.signer \ com.android.media.remotedisplay \ @@ -39,12 +40,9 @@ PRODUCT_PACKAGES += \ PRODUCT_HOST_PACKAGES += \ fsck.f2fs \ -PRODUCT_COPY_FILES += \ - frameworks/native/data/etc/android.software.webview.xml:system/etc/permissions/android.software.webview.xml - ifneq (REL,$(PLATFORM_VERSION_CODENAME)) -PRODUCT_COPY_FILES += \ - frameworks/native/data/etc/android.software.preview_sdk.xml:system/etc/permissions/android.software.preview_sdk.xml +PRODUCT_PACKAGES += \ + android.software.preview_sdk.prebuilt.xml endif # The order here is the same order they end up on the classpath, so it matters.