Skip to content

Commit 25d35a9

Browse files
author
Adam Lesinski
committed
AAPT: Dump an APK's split name attribute
Bug:16919497 Change-Id: I109e21bff9e4a64a10f48dce7f2d41102b32ee1d
1 parent 33fe1ed commit 25d35a9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tools/aapt/Command.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1163,8 +1163,15 @@ int doDump(Bundle* bundle)
11631163
fprintf(stderr, "ERROR getting 'android:versionName' attribute: %s\n", error.string());
11641164
goto bail;
11651165
}
1166-
printf("versionName='%s'\n",
1166+
printf("versionName='%s'",
11671167
ResTable::normalizeForOutput(versionName.string()).string());
1168+
1169+
String8 splitName = getAttribute(tree, NULL, "split", NULL);
1170+
if (!splitName.isEmpty()) {
1171+
printf(" split='%s'", ResTable::normalizeForOutput(
1172+
splitName.string()).string());
1173+
}
1174+
printf("\n");
11681175
} else if (depth == 2) {
11691176
withinApplication = false;
11701177
if (tag == "application") {

0 commit comments

Comments
 (0)