From 2fee0ed6eb99b211efa06f095a41268a2021214a Mon Sep 17 00:00:00 2001 From: Jeff Hamilton Date: Wed, 6 Jan 2010 15:46:38 -0600 Subject: Add the --rename-manifest-package option to aapt. It allows you to force override the manifest package listed in the AndroidManifest.xml when creating an APK file. Change-Id: I7eac7943c4e56610b65728ae54773a273634fd9d --- tools/aapt/XMLNode.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tools/aapt/XMLNode.cpp') diff --git a/tools/aapt/XMLNode.cpp b/tools/aapt/XMLNode.cpp index 036dde44f0e3..4c5928880d9e 100644 --- a/tools/aapt/XMLNode.cpp +++ b/tools/aapt/XMLNode.cpp @@ -555,6 +555,19 @@ const XMLNode::attribute_entry* XMLNode::getAttribute(const String16& ns, return NULL; } +XMLNode::attribute_entry* XMLNode::editAttribute(const String16& ns, + const String16& name) +{ + for (size_t i=0; ins == ns && ae->name == name) { + return ae; + } + } + + return NULL; +} + const String16& XMLNode::getCData() const { return mChars; -- cgit v1.2.3