Fix UnsupportedAppUsage property serialization
The publicAlternatives field of the UnsupportedAppUsage annotation may
contain commas, which would interfere with the csv serialization into
metadata.csv. This change ensures that all fields containing commas are
encased by '|' characters (due to it being used as a quote character in
frameworks/base/tools/hiddenapi/merge_csv.py), and all other ocurrences
of '|' are escaped.
Bug: 130721457
Test: atest AnnotationPropertyWriterTest
Change-Id: I5bc0c68b460ea23b9408ecc4c997938d310005fe
2 files changed