mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-05 02:22:55 +01:00
Fixes edge case where mnc = 1, with no mcc field. Fixes #1072
This commit is contained in:
parent
a4b5c926f4
commit
5f5f50f6fd
@ -178,6 +178,10 @@ public class ResConfigFlags {
|
||||
} else {
|
||||
ret.append("-mnc00");
|
||||
}
|
||||
} else {
|
||||
if (mnc != 0) {
|
||||
ret.append("-mnc").append(mnc);
|
||||
}
|
||||
}
|
||||
ret.append(getLocaleString());
|
||||
|
||||
|
@ -187,6 +187,11 @@ public class BuildAndDecodeTest {
|
||||
compareValuesFiles("values-mcc001-mnc01/strings.xml");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void shortMncHtcTest() throws BrutException {
|
||||
compareValuesFiles("values-mnc1/strings.xml");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void anyDpiTest() throws BrutException, IOException {
|
||||
compareValuesFiles("values-watch/strings.xml");
|
||||
|
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="test1">test1</string>
|
||||
</resources>
|
Loading…
Reference in New Issue
Block a user