Print unicode data using java-encoding with -l xml
We would simply dump unicode bytes as-is in XML mode for dexdump. This
is often incorrect since xml is surprisingly picky about what chars
are valid. To avoid this whole headache simply encode all unicode
chars as you could for java strings. Also encode '\' as '\\' to avoid
ambiguity.
Test: manual
Test: dexdump -l xml out/target/product/blueline/testcases/CtsWebkitTestCases/arm64/CtsWebkitTestCases.apk | xmllint -
Bug: 161925303
Change-Id: Idc32d8257a98e173c6902c74c3788036f8683f16
1 file changed