When dealing with Bookmark requirement , due to one of the customer needs
Spain OSP 21403
"Orange - http://m.orange.es/?utm_source=orange&utm_medium=settings&utm_campaign=favoritos
Need to add entries in xml:
<string-array name="bookmarksSpain">
<item>Orange</item>
<item>http://m.orange.es/?utm_source=orange&utm_medium=settings&utm_campaign=favoritos</item>
<item>TV y Cine</item>
<item>http://m.orange.es/tv</item>
<item>Videojuegos</item>
<item>http://m.orange.es/juegos</item>
<item>Música</item>
<item>http://m.orange.es/musica</item>
</string-array>
Such compilation will report an error,
FAILED: out/soong/.intermediates/packages/providers/PartnerBookmarksProvider/PartnerBookmarksProvider/android_common/aapt2/packages/providers/PartnerBookmarksProvider/res/values_bookmarks_icons.arsc.flat out/soong/.intermediates/packages/providers/PartnerBookmarksProvider/PartnerBookmarksProvider/android_common/aapt2/packages/providers/PartnerBookmarksProvider/res/values_strings.arsc.flat
out/soong/host/linux-x86/bin/aapt2 compile -o out/soong/.intermediates/packages/providers/PartnerBookmarksProvider/PartnerBookmarksProvider/android_common/aapt2/packages/providers/PartnerBookmarksProvider/res --pseudo-localize --legacy packages/providers/PartnerBookmarksProvider/res/values/bookmarks_icons.xml packages/providers/PartnerBookmarksProvider/res/values/strings.xml
packages/providers/PartnerBookmarksProvider/res/values/strings.xml:0: error: xml parser error: not well-formed (invalid token).
packages/providers/PartnerBookmarksProvider/res/values/strings.xml: error: file failed to compile.
14:48:38 ninja failed with: exit status 1
Found Orange- http: //m.orange.es/? utm_source= orange &utm_medium=settings& utm_campaign= favoritos Bookmarks contain special characters &, need to use escape characters, modified in xml as follows:
<item>http://m.orange.es/?utm_source=orange&utm_medium=settings&utm_campaign=favoritos</item>
Can be compiled