From: Dianne Hackborn Date: Fri, 3 Sep 2010 00:36:37 +0000 (-0700) Subject: am 192b56d4: Merge "Implement #2964234: Add support for element to... X-Git-Url: https://git.saurik.com/android/aapt.git/commitdiff_plain/73c5a637048936eb560e5677b7b814b1baad14bd?hp=0317e70f19be4f19126432fc76b3ad4be99fdd95 am 192b56d4: Merge "Implement #2964234: Add support for element to aapt" into gingerbread Merge commit '192b56d42a4f6e5e6c736b0f22dd5bd201b02c9d' into gingerbread-plus-aosp * commit '192b56d42a4f6e5e6c736b0f22dd5bd201b02c9d': Implement #2964234: Add support for element to aapt --- diff --git a/Command.cpp b/Command.cpp index b0f086b..f71ebb9 100644 --- a/Command.cpp +++ b/Command.cpp @@ -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 == "") {