]> git.saurik.com Git - android/aapt.git/blobdiff - Command.cpp
am 9c708358: am 37cedce1: Merge "Add an aapt option to allow string variations for...
[android/aapt.git] / Command.cpp
index b50a393adad5db44b9347951b283749721814ef7..eaff0f407f056982219159db75701a63651c8428 100644 (file)
@@ -856,6 +856,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 == "") {