[DISCUSSION] mcc and mnc qualifiers #3682
Replies: 3 comments 1 reply
-
There is not - I'm guessing before AOSP source was out - this was the interpretation of how it functions. I might go back and look at the Froyo release to confirm that, but otherwise I don't think there is any Apktool specific reason. |
Beta Was this translation helpful? Give feedback.
-
I dug a bit deeper. This table gives these examples:
Regarding mcc field: Which seems to imply that stored value of MNC_ZERO is -mnc0/-mnc00/-mnc000, while stored value of 0 means any/undefined mnc. Wikipedia says that MCC is always 3-digit, while MNC can be 2-digit (European standard) or 3-digit (North American standard), and an example says "MNC of 001 is not the same as MNC of 01". Here's a partial output of
I'm very confused. Eventually went with something that looks the best... (mnc doesn't appear without mcc before it, prints mnc as 2-digit or more)
So looks like this
|
Beta Was this translation helpful? Give feedback.
-
Did you stumble onto some issue that led you to this? I'm just weary of changing something I haven't touched in a decade. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Just curious, is there any reason for this strange formatting of mcc and mnc qualifiers?
https://github.com/iBotPeaches/Apktool/blob/master/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/data/ResConfigFlags.java#L179-L201
I mean, looking at the AOSP source code, there's a plain %d formatting for any value other than 0, no leading zeros.
https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/content/res/Configuration.java#2512
https://android.googlesource.com/platform/frameworks/base/+/master/libs/androidfw/ResourceTypes.cpp#3370
Beta Was this translation helpful? Give feedback.
All reactions