summaryrefslogtreecommitdiff
path: root/tools/aapt/Command.cpp
diff options
context:
space:
mode:
authorAdam Lesinski <adamlesinski@google.com>2014-08-11 09:41:56 -0700
committerAdam Lesinski <adamlesinski@google.com>2014-08-12 22:17:25 +0000
commit25d35a9d68fed6304352d0bfc2e0d581ed47f8b5 (patch)
treed6e2d8af132bef8bad1376ce322e59a23676a13e /tools/aapt/Command.cpp
parent33fe1ed56d7d7b781046d28d7e1aebe42894623e (diff)
AAPT: Dump an APK's split name attribute
Bug:16919497 Change-Id: I109e21bff9e4a64a10f48dce7f2d41102b32ee1d
Diffstat (limited to 'tools/aapt/Command.cpp')
-rw-r--r--tools/aapt/Command.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/aapt/Command.cpp b/tools/aapt/Command.cpp
index ccbdadd9418c..41102fe7491d 100644
--- a/tools/aapt/Command.cpp
+++ b/tools/aapt/Command.cpp
@@ -1163,8 +1163,15 @@ int doDump(Bundle* bundle)
fprintf(stderr, "ERROR getting 'android:versionName' attribute: %s\n", error.string());
goto bail;
}
- printf("versionName='%s'\n",
+ printf("versionName='%s'",
ResTable::normalizeForOutput(versionName.string()).string());
+
+ String8 splitName = getAttribute(tree, NULL, "split", NULL);
+ if (!splitName.isEmpty()) {
+ printf(" split='%s'", ResTable::normalizeForOutput(
+ splitName.string()).string());
+ }
+ printf("\n");
} else if (depth == 2) {
withinApplication = false;
if (tag == "application") {