mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-20 16:57:34 +01:00
Merge branch 'thuxnder-performance'
This commit is contained in:
commit
bd566f2670
@ -619,8 +619,8 @@ final public class AndrolibResources {
|
||||
private ResPackage[] getResPackagesFromApk(ExtFile apkFile,ResTable resTable, boolean keepBroken)
|
||||
throws AndrolibException {
|
||||
try {
|
||||
return ARSCDecoder.decode(apkFile.getDirectory().getFileInput("resources.arsc"),false,
|
||||
keepBroken, resTable).getPackages();
|
||||
BufferedInputStream bfi = new BufferedInputStream(apkFile.getDirectory().getFileInput("resources.arsc"));
|
||||
return ARSCDecoder.decode(bfi, false, keepBroken, resTable).getPackages();
|
||||
} catch (DirectoryException ex) {
|
||||
throw new AndrolibException("Could not load resources.arsc from file: " + apkFile, ex);
|
||||
}
|
||||
|
@ -22,13 +22,15 @@ import java.awt.event.KeyEvent;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
/**
|
||||
* @author Ryszard Wiśniewski <brut.alll@gmail.com>
|
||||
*/
|
||||
public final class ResXmlEncoders {
|
||||
|
||||
public static String escapeXmlChars(String str) {
|
||||
return str.replace("&", "&").replace("<", "<");
|
||||
return StringUtils.replace(StringUtils.replace(str, "&", "&"), "<", "<");
|
||||
}
|
||||
|
||||
public static String encodeAsResXmlAttr(String str) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user