Merge "Implement #2964234: Add support for <uses-package> element to aapt" into gingerbread

This commit is contained in:
Dianne Hackborn
2010-09-02 17:34:31 -07:00
committed by Android (Google) Code Review

View File

@@ -853,6 +853,15 @@ int doDump(Bundle* bundle)
error.string());
goto bail;
}
} else if (tag == "uses-package") {
String8 name = getAttribute(tree, NAME_ATTR, &error);
if (name != "" && error == "") {
printf("uses-package:'%s'\n", name.string());
} else {
fprintf(stderr, "ERROR getting 'android:name' attribute: %s\n",
error.string());
goto bail;
}
} else if (tag == "original-package") {
String8 name = getAttribute(tree, NAME_ATTR, &error);
if (name != "" && error == "") {