mirror of
https://github.com/revanced/Apktool.git
synced 2025-02-01 14:47:56 +01:00
switch to "startsWith" to stop AndroResGuard tricks
This commit is contained in:
parent
da9fb5115e
commit
c7f4dfe1db
@ -58,15 +58,15 @@ public class ResFileDecoder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (typeName.equals("raw")) {
|
if (typeName.startsWith("raw")) {
|
||||||
decode(inDir, inFileName, outDir, outFileName, "raw");
|
decode(inDir, inFileName, outDir, outFileName, "raw");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (typeName.equals("font") && !".xml".equals(ext)) {
|
if (typeName.startsWith("font") && !".xml".equals(ext)) {
|
||||||
decode(inDir, inFileName, outDir, outFileName, "raw");
|
decode(inDir, inFileName, outDir, outFileName, "raw");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (typeName.equals("drawable") || typeName.equals("mipmap")) {
|
if (typeName.startsWith("drawable") || typeName.startsWith("mipmap")) {
|
||||||
if (inFileName.toLowerCase().endsWith(".9" + ext)) {
|
if (inFileName.toLowerCase().endsWith(".9" + ext)) {
|
||||||
outFileName = outResName + ".9" + ext;
|
outFileName = outResName + ".9" + ext;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user