Converting PRODUCT_COPY_FILES from mk to Android.bp format

452 views
Skip to first unread message

Kyle Cai

unread,
Sep 13, 2019, 12:44:42 PM9/13/19
to Android Building
Hi, I'm trying to convert something that was previously done in an .mk file to the .bp format. Previously in .mk file I have something like this: 

PRODUCT_COPY_FILES += \$(ANDROID_PARTNER_GMS_HOME)/etc/preferred-apps/google_go.xml:system/etc/preferred-apps/google.xml \

where I rename google_go.xml to google.xml after copy. 

After some digging looks like the below change should accomplish the same thing. 
prebuilt_etc {
name: "sysconfig_google_go",
product_specific: true,
sub_dir: "sysconfig",
src: "google_go.xml",
filename: "google.xml",
}

Can anyone help take a look if that looks good? I don't think I was able to find any similar examples on cs/ 

Thanks!
Reply all
Reply to author
Forward
0 new messages