OSDN Git Service

AAPT: Fix printing of resource configurations
authorAdam Lesinski <adamlesinski@google.com>
Mon, 27 Jul 2015 23:53:14 +0000 (16:53 -0700)
committerAdam Lesinski <adamlesinski@google.com>
Tue, 28 Jul 2015 00:04:43 +0000 (17:04 -0700)
commit5b0f1be0a23011416697efaa7e9c050e466c44f5
tree118c1a6aaa6b061299a48f6f62dc245be69b1463
parent71bfb27013f983bc4a54f1924af61c07732f994e
AAPT: Fix printing of resource configurations

Print out proper, copied configuration. We add fields to ResTable_config
and if we don't copy and fill in defaults when reading old configurations,
we end up with garbage values. This can potentially cause a crash as well.

Bug:22773426
Change-Id: I64f5ebe73ee72453bcdad3a19e48f8e7ad58e9c2
libs/androidfw/ResourceTypes.cpp