summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jeff Hamilton <jham@google.com> 2010-02-12 11:47:23 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2010-02-12 11:47:23 -0800
commit965e37ec88609c36a3c5461ece459a96abb6f7ca (patch)
tree48e352b8280b3efba72a83d0537be439e7178ec2
parentd72b3137262222b9644077d0f20c295cf75893bc (diff)
parente2c17f9174144a6eca3fdbed8d5d1370f318f549 (diff)
Merge "Dump original-package entries."
-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 5d345e6d246b..ee074155bb13 100644
--- a/tools/aapt/Command.cpp
+++ b/tools/aapt/Command.cpp
@@ -741,6 +741,15 @@ int doDump(Bundle* bundle)
error.string());
goto bail;
}
+ } else if (tag == "original-package") {
+ String8 name = getAttribute(tree, NAME_ATTR, &error);
+ if (name != "" && error == "") {
+ printf("original-package:'%s'\n", name.string());
+ } else {
+ fprintf(stderr, "ERROR getting 'android:name' attribute: %s\n",
+ error.string());
+ goto bail;
+ }
}
} else if (depth == 3 && withinApplication) {
withinActivity = false;