fix: disable 9patch decoder

This commit is contained in:
Lucaskyy 2022-06-27 23:56:13 +02:00
parent f319ab8ee7
commit 42747d6f99
No known key found for this signature in database
GPG Key ID: 1530BFF96D1EEB89
2 changed files with 8 additions and 2 deletions

View File

@ -25,6 +25,7 @@ import brut.androlib.res.data.value.ResFileValue;
import brut.directory.DirUtil;
import brut.directory.Directory;
import brut.directory.DirectoryException;
import brut.util.OSDetection;
import java.io.*;
import java.util.logging.Level;
@ -88,7 +89,12 @@ public class ResFileDecoder {
}
try {
decode(inDir, inFileName, outDir, outFileName, "9patch");
// ReVanced - decode raw on Android
if (OSDetection.isAndroid()) {
decode(inDir, inFileName, outDir, outFileName, "9patch");
} else {
decode(inDir, inFileName, outDir, outFileName, "raw");
}
return;
} catch (CantFind9PatchChunkException ex) {
LOGGER.log(

View File

@ -45,7 +45,7 @@ buildscript {
apply from: 'gradle/functions.gradle'
version = '2.6.5'
version = '2.6.6'
def suffix = 'SNAPSHOT'
defaultTasks 'build', 'shadowJar', 'proguard'