Skip to content

Commit e25547b

Browse files
Adam LesinskiAndroid (Google) Code Review
authored andcommitted
Merge "AAPT: Dump an APK's split name attribute" into lmp-dev
2 parents 99421ae + 25d35a9 commit e25547b

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)