mirror of
https://github.com/revanced/Apktool.git
synced 2024-10-31 16:54:35 +01:00
fix: disable 9patch decoder
This commit is contained in:
parent
f319ab8ee7
commit
42747d6f99
@ -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(
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user