mirror of
https://github.com/revanced/ARSCLib.git
synced 2025-04-30 22:34:24 +02:00
Make unique package directory name for decoded res xml files
This commit is contained in:
parent
eeeb061925
commit
038aa89d79
@ -74,7 +74,7 @@ import java.util.*;
|
||||
EntryBlock entryBlock=resFile.pickOne();
|
||||
PackageBlock packageBlock=entryBlock.getPackageBlock();
|
||||
|
||||
File pkgDir=new File(outDir, packageBlock.getName());
|
||||
File pkgDir=new File(outDir, getPackageDirName(packageBlock));
|
||||
File resDir=new File(pkgDir, ApkUtil.RES_DIR_NAME);
|
||||
String path=resFile.buildPath();
|
||||
path=path.replace('/', File.separatorChar);
|
||||
@ -97,7 +97,7 @@ import java.util.*;
|
||||
ResXmlBlock resXmlBlock=new ResXmlBlock();
|
||||
resXmlBlock.readBytes(resFile.getInputSource().openStream());
|
||||
|
||||
File pkgDir=new File(outDir, packageBlock.getName());
|
||||
File pkgDir=new File(outDir, getPackageDirName(packageBlock));
|
||||
File resDir=new File(pkgDir, ApkUtil.RES_DIR_NAME);
|
||||
String path=resFile.buildPath();
|
||||
path=path.replace('/', File.separatorChar);
|
||||
@ -207,6 +207,9 @@ import java.util.*;
|
||||
}
|
||||
return element;
|
||||
}
|
||||
private String getPackageDirName(PackageBlock packageBlock){
|
||||
return packageBlock.getIndex()+"-"+packageBlock.getName();
|
||||
}
|
||||
|
||||
private void logMessage(String msg) {
|
||||
APKLogger apkLogger=apkModule.getApkLogger();
|
||||
|
Loading…
x
Reference in New Issue
Block a user