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
(cherry picked from https://android-review.googlesource.com/q/commit:e1f9d9778f80c498b6c6747157006302224e652f)
Merged-In: Ib9f030e1e0ff6db55a6e07444943407f9ff1c1df
Change-Id: Ib9f030e1e0ff6db55a6e07444943407f9ff1c1df
diff --git a/data/etc/Android.bp b/data/etc/Android.bp
index 0300f8c..4a66c88 100644
--- a/data/etc/Android.bp
+++ b/data/etc/Android.bp
@@ -376,6 +376,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",