]> git.saurik.com Git - android/aapt.git/commitdiff
Implement #2964234: Add support for <uses-package> element to aapt
authorDianne Hackborn <hackbod@google.com>
Fri, 3 Sep 2010 00:14:41 +0000 (17:14 -0700)
committerDianne Hackborn <hackbod@google.com>
Fri, 3 Sep 2010 00:14:41 +0000 (17:14 -0700)
Change-Id: Ifb381f387cab7e5a99006691e330d0e3d9d0f250

Command.cpp

index b0f086bf6bc2df6eea9d5f81ac21bef633641028..f71ebb98344f289a7801ddc1058269c4f76cb2a2 100644 (file)
@@ -853,6 +853,15 @@ int doDump(Bundle* bundle)
                                     error.string());
                             goto bail;
                         }
                                     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 == "") {
                     } else if (tag == "original-package") {
                         String8 name = getAttribute(tree, NAME_ATTR, &error);
                         if (name != "" && error == "") {