Merge pull request #15 from miuirussia/master

Fixed MIUI/Meizu EMail.apk decompilation
This commit is contained in:
Connor Tumbleson 2012-08-21 10:16:12 -07:00
commit b780170ee3

View File

@ -18,6 +18,8 @@ package brut.androlib.res.data;
import brut.androlib.AndrolibException; import brut.androlib.AndrolibException;
import brut.androlib.err.UndefinedResObject; import brut.androlib.err.UndefinedResObject;
import org.apache.commons.lang3.StringUtils;
import java.util.*; import java.util.*;
/** /**
@ -93,7 +95,7 @@ public class ResResSpec {
} }
public String getName() { public String getName() {
return mName; return StringUtils.replace(mName, "\"", "q");
} }
public ResPackage getPackage() { public ResPackage getPackage() {
@ -113,8 +115,7 @@ public class ResResSpec {
throws AndrolibException { throws AndrolibException {
ResConfigFlags flags = res.getConfig().getFlags(); ResConfigFlags flags = res.getConfig().getFlags();
if (mResources.put(flags, res) != null && ! overwrite) { if (mResources.put(flags, res) != null && ! overwrite) {
throw new AndrolibException(String.format( throw new AndrolibException(String.format("Multiple resources: spec=%s, config=%s", this, flags));
"Multiple resources: spec=%s, config=%s", this, flags));
} }
} }