From f05f2641829748b116dfb061eac0503820332113 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ryszard=20Wi=C5=9Bniewski?= Date: Sun, 1 May 2011 19:08:01 +0200 Subject: [PATCH] ResConfigFlags: added zero-padding of MCC qualifiers. MCC must be 3-digits long. Official documentation does not specify that, but aapt throws errors if you create e.g. values-mcc1 dir. --- .../src/main/java/brut/androlib/res/data/ResConfigFlags.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apktool-lib/src/main/java/brut/androlib/res/data/ResConfigFlags.java b/apktool-lib/src/main/java/brut/androlib/res/data/ResConfigFlags.java index 8bfe8edc..086a7391 100644 --- a/apktool-lib/src/main/java/brut/androlib/res/data/ResConfigFlags.java +++ b/apktool-lib/src/main/java/brut/androlib/res/data/ResConfigFlags.java @@ -125,7 +125,7 @@ public class ResConfigFlags { private String generateQualifiers() { StringBuilder ret = new StringBuilder(); if (mcc != 0) { - ret.append("-mcc").append(mcc); + ret.append("-mcc").append(String.format("%03d", mcc)); if (mnc != 0) { ret.append("-mnc").append(mnc); }