Permalink
Browse files

add support for 4 digit mcc/mnc

  • Loading branch information...
iBotPeaches committed Oct 6, 2015
1 parent 5cded81 commit d3c5cc64d686a95e40cd87682cef346a5b9eb352
Showing with 2 additions and 2 deletions.
  1. +2 −2 tools/aapt/AaptConfig.cpp
@@ -295,7 +295,7 @@ bool parseMcc(const char* name, ResTable_config* out) {
c++;
}
if (*c != 0) return false;
- if (c-val != 3) return false;
+ if (c-val != 3 && c-val != 4) return false;
int d = atoi(val);
if (d != 0) {
@@ -325,7 +325,7 @@ bool parseMnc(const char* name, ResTable_config* out) {
c++;
}
if (*c != 0) return false;
- if (c-val == 0 || c-val > 3) return false;
+ if (c-val == 0 || c-val > 4) return false;
if (out) {
out->mnc = atoi(val);

0 comments on commit d3c5cc6

Please sign in to comment.