]> git.saurik.com Git - android/aapt.git/blobdiff - Command.cpp
am 4e1658af: Merge "Avoid pre-processing images when they won\'t be used" into ginger...
[android/aapt.git] / Command.cpp
index b0f086bf6bc2df6eea9d5f81ac21bef633641028..f71ebb98344f289a7801ddc1058269c4f76cb2a2 100644 (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 == "") {