OSDN Git Service

AAPT2: Fix processing of quotes in XML
authorAdam Lesinski <adamlesinski@google.com>
Fri, 30 Jun 2017 00:53:36 +0000 (17:53 -0700)
committerAdam Lesinski <adamlesinski@google.com>
Wed, 26 Jul 2017 20:41:34 +0000 (20:41 +0000)
commitc89568848886d952dfc0fefc020c3e5486ddf716
tree572b0c51df7dde08b781d62d043ccb809f9a2b38
parentd11e14b42812734068d11fbb11be6c3567072ceb
AAPT2: Fix processing of quotes in XML

When processing attributes in XML, quotes can't be used to mark a
section as whitespace preserving, so the assumption should be that the
entire string is whitespace preserving, which makes quote characters
literals.

Bug: 62840718
Bug: 62840406
Test: make aapt2_tests
Change-Id: I4afff02148b5b8e78833abf1f323c2f5325d6155
libs/androidfw/include/androidfw/StringPiece.h
tools/aapt2/flatten/XmlFlattener.cpp
tools/aapt2/flatten/XmlFlattener_test.cpp
tools/aapt2/test/Common.h
tools/aapt2/util/Maybe.h
tools/aapt2/util/Util.cpp
tools/aapt2/util/Util.h
tools/aapt2/util/Util_test.cpp
tools/aapt2/xml/XmlDom_test.cpp