My structure of the device folder is like this:
device/google/clockwork/overlay/packages/apps/CarrierConfig/res/xml/vendor.xml
device/htc/soulshark/overlay/packages/apps/CarrierConfig/res/xml/vendor.xml
and the two xml look like this:
--------------------------------------------------------------------------------------
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<carrier_config_list>
<carrier_config mcc="310" mnc="004">
<boolean name="carrier_volte_available_bool" value="true" />
</carrier_config_list>
--------------------------------------------------------------------------------------
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<carrier_config_list>
<carrier_config mcc="310" mnc="004">
<boolean name="support_td_scdma" value="true" />
</carrier_config>
</carrier_config_list>
--------------------------------------------------------------------------------------
and I got two mk files:
clockwork.mk in device/google/clockwork/, and use DEVICE_PACKAGE_OVERLAYS
+= device/google/clockwork/overlay
soulshark.mk in device/htc/soulshark/, and use DEVICE_PACKAGE_OVERLAYS +=
device/htc/soulshark/overlay
but in the end the app only accept one xml file, while I want the final xml
be a merged one :
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<carrier_config_list>
<carrier_config mcc="310" mnc="004">
<boolean name="carrier_volte_available_bool" value="true" />
<boolean name="support_td_scdma" value="true" />
</carrier_config>
</carrier_config_list>
I used aapt package -u -z -M
packages/apps/CarrierConfig/AndroidManifest.xml -S
device/google/clockwork/overlay/packages/apps/CarrierConfig/res -S
device/htc/soulshark/overlay/packages/apps/CarrierConfig/res -S
packages/apps/CarrierConfig/res --product default -I
out/target/common/obj/APPS/framework-res_intermediates/package-export.apk
--auto-add-overlay -v -F test.apk
, and it takes the first resource no matter how many -S I added.
So, is there any way I can merge the resources into one xml? (I remember
once the DEVICE_PACKAGE_OVERLAYS will merge xmls, but I'm not sure)
--
--
You received this message because you are subscribed to the "Android Building"
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en
---
You received this message because you are subscribed to the Google Groups
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.