Define android.software.credentials.xml as prebuilt_etc
Instead of using PRODUCT_COPY_FILES to copy a source file to install,
define a prebuilt_etc module and add it to the PRODUCT_PACKAGES.
android.software.credentials.xml is to be installed in system for
GSI.
Bug: 345373198
Test: See if android.software.credentials.xml is installed in
system/etc/permissions
Change-Id: Ib9f030e1e0ff6db55a6e07444943407f9ff1c1df
diff --git a/data/etc/Android.bp b/data/etc/Android.bp
index b63d14b..ab09de1 100644
--- a/data/etc/Android.bp
+++ b/data/etc/Android.bp
@@ -370,6 +370,14 @@
defaults: ["frameworks_native_data_etc_defaults"],
}
+// installed in system for GSI
+prebuilt_etc {
+ name: "android.software.credentials.prebuilt.xml",
+ relative_install_path: "permissions",
+ src: "android.software.credentials.xml",
+ filename_from_src: true,
+}
+
prebuilt_etc {
name: "android.software.device_id_attestation.prebuilt.xml",
src: "android.software.device_id_attestation.xml",