summaryrefslogtreecommitdiff
path: root/tools/aapt/AaptAssets.cpp
diff options
context:
space:
mode:
author Mattias Petersson <mattias.petersson@sonyericsson.com> 2011-10-07 09:33:52 +0200
committer Johan Redestig <johan.redestig@sonymobile.com> 2013-07-26 18:42:34 +0000
commit1d766b53217f9e45472a01e84d2f1b02af36dec7 (patch)
tree5408fa90569c4d35467ab508f7f58fd41eb832cb /tools/aapt/AaptAssets.cpp
parentd547bcec5634f99195a2b12522b6977f61c40d55 (diff)
Add support for MNC=00
This adds support for operators with MNC (Mobile Network Code) zero to add customized resources. For example, it makes it possible to add a folder called "/res/values-mnc00/" in an application. This will cause resources in that folder to be used when MNC is zero. (There is a total of 14 countries that have an operator with MNC zero.) Without this fix, the resource framework gets confused, because MNC 0 is normally used when the MNC is undefined (not set). Bug: 7170488 Change-Id: Icfd39fd0c739216e89446252ea0e7ceba6f002c6
Diffstat (limited to 'tools/aapt/AaptAssets.cpp')
-rw-r--r--tools/aapt/AaptAssets.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/aapt/AaptAssets.cpp b/tools/aapt/AaptAssets.cpp
index 2149190b10be..3797b49cc32d 100644
--- a/tools/aapt/AaptAssets.cpp
+++ b/tools/aapt/AaptAssets.cpp
@@ -934,6 +934,9 @@ bool AaptGroupEntry::getMncName(const char* name,
if (out) {
out->mnc = atoi(val);
+ if (out->mnc == 0) {
+ out->mnc = ACONFIGURATION_MNC_ZERO;
+ }
}
return true;