summaryrefslogtreecommitdiffstats
path: root/tools/aapt
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2010-09-02 17:36:37 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-09-02 17:36:37 -0700
commit31103928ed5b9091bcd7de74c8a49675d10c87e7 (patch)
tree5facbd26a80aa629c9487c265b205205de0a2aa8 /tools/aapt
parent8d5250c601504da7a7fde3a3fd7b1c51335becdf (diff)
parent192b56d42a4f6e5e6c736b0f22dd5bd201b02c9d (diff)
downloadframeworks_base-31103928ed5b9091bcd7de74c8a49675d10c87e7.zip
frameworks_base-31103928ed5b9091bcd7de74c8a49675d10c87e7.tar.gz
frameworks_base-31103928ed5b9091bcd7de74c8a49675d10c87e7.tar.bz2
am 192b56d4: Merge "Implement #2964234: Add support for <uses-package> element to aapt" into gingerbread
Merge commit '192b56d42a4f6e5e6c736b0f22dd5bd201b02c9d' into gingerbread-plus-aosp * commit '192b56d42a4f6e5e6c736b0f22dd5bd201b02c9d': Implement #2964234: Add support for <uses-package> element to aapt
Diffstat (limited to 'tools/aapt')
-rw-r--r--tools/aapt/Command.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/aapt/Command.cpp b/tools/aapt/Command.cpp
index b0f086b..f71ebb9 100644
--- a/tools/aapt/Command.cpp
+++ b/tools/aapt/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 == "") {