From af85d202b8bdf203aa7c6c581f59ff3934b2756f Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Wed, 24 Feb 2010 20:00:03 -0800 Subject: [PATCH] Scan for android namespace in manifest android:minSdkVersion wasn't being correctly scanned because the namespace was incorrect. This fixes that problem so packages aren't generated as UTF-8 when minSdkVersion is less than 7. Change-Id: I8f45d47ea886915da6a4770f6e111e6085d61bee --- Resource.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Resource.cpp b/Resource.cpp index 88c5441..f8c5c38 100644 --- a/Resource.cpp +++ b/Resource.cpp @@ -221,12 +221,12 @@ static status_t parsePackage(Bundle* bundle, const sp& assets, && code != ResXMLTree::BAD_DOCUMENT) { if (code == ResXMLTree::START_TAG) { if (strcmp16(block.getElementName(&len), uses_sdk16.string()) == 0) { - ssize_t minSdkIndex = block.indexOfAttribute("android", + ssize_t minSdkIndex = block.indexOfAttribute(RESOURCES_ANDROID_NAMESPACE, "minSdkVersion"); if (minSdkIndex >= 0) { String8 minSdkString = String8( block.getAttributeStringValue(minSdkIndex, &len)); - bundle->setMinSdkVersion(minSdkString.string()); + bundle->setMinSdkVersion(minSdkString.string()); } } } -- 2.45.2