mirror of
https://github.com/revanced/ARSCLib.git
synced 2025-04-30 06:14:25 +02:00
exclude native lib files during sanitize
This commit is contained in:
parent
98545e3699
commit
67ee76ded9
@ -75,6 +75,9 @@ public class PathSanitizer {
|
|||||||
}
|
}
|
||||||
mSanitizedPaths.add(name);
|
mSanitizedPaths.add(name);
|
||||||
String alias = inputSource.getAlias();
|
String alias = inputSource.getAlias();
|
||||||
|
if(shouldIgnore(alias)){
|
||||||
|
return null;
|
||||||
|
}
|
||||||
String replace = sanitize(alias, depth, fixedDepth);
|
String replace = sanitize(alias, depth, fixedDepth);
|
||||||
if(alias.equals(replace)){
|
if(alias.equals(replace)){
|
||||||
return null;
|
return null;
|
||||||
@ -109,6 +112,9 @@ public class PathSanitizer {
|
|||||||
}
|
}
|
||||||
return builder.toString();
|
return builder.toString();
|
||||||
}
|
}
|
||||||
|
private boolean shouldIgnore(String path){
|
||||||
|
return path.startsWith("lib/") && path.endsWith(".so");
|
||||||
|
}
|
||||||
|
|
||||||
public void setApkLogger(APKLogger apkLogger) {
|
public void setApkLogger(APKLogger apkLogger) {
|
||||||
this.apkLogger = apkLogger;
|
this.apkLogger = apkLogger;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user