mirror of
https://github.com/revanced/Apktool.git
synced 2025-05-01 14:44:26 +02:00
fix: don't normalize sectional, entire string after cleaned
This commit is contained in:
parent
07afbdb52b
commit
6b9fb5bb51
@ -54,8 +54,8 @@ public class ZipUtils {
|
|||||||
throws BrutException, IOException {
|
throws BrutException, IOException {
|
||||||
for (final File file : folder.listFiles()) {
|
for (final File file : folder.listFiles()) {
|
||||||
if (file.isFile()) {
|
if (file.isFile()) {
|
||||||
final String normalizedPath = BrutIO.normalizePath(file.getPath().substring(prefixLength));
|
final String cleanedPath = BrutIO.sanitizeUnknownFile(folder, file.getPath().substring(prefixLength));
|
||||||
final ZipEntry zipEntry = new ZipEntry(BrutIO.sanitizeUnknownFile(folder, normalizedPath));
|
final ZipEntry zipEntry = new ZipEntry(BrutIO.normalizePath(cleanedPath));
|
||||||
|
|
||||||
// aapt binary by default takes in parameters via -0 arsc to list extensions that shouldn't be
|
// aapt binary by default takes in parameters via -0 arsc to list extensions that shouldn't be
|
||||||
// compressed. We will replicate that behavior
|
// compressed. We will replicate that behavior
|
||||||
|
Loading…
x
Reference in New Issue
Block a user