X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/287883aced44b316c64f3581444caeaf139e7661..491d9ef01e52e62a426bc963fc9c79e9703459ee:/Command.cpp diff --git a/Command.cpp b/Command.cpp index 3a30c0a..ee07415 100644 --- a/Command.cpp +++ b/Command.cpp @@ -412,6 +412,7 @@ int doDump(Bundle* bundle) } tree.restart(); printXMLBlock(&tree); + tree.uninit(); delete asset; asset = NULL; } @@ -740,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;