mirror of
https://github.com/revanced/ARSCLib.git
synced 2025-04-29 22:04: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);
|
||||
String alias = inputSource.getAlias();
|
||||
if(shouldIgnore(alias)){
|
||||
return null;
|
||||
}
|
||||
String replace = sanitize(alias, depth, fixedDepth);
|
||||
if(alias.equals(replace)){
|
||||
return null;
|
||||
@ -109,6 +112,9 @@ public class PathSanitizer {
|
||||
}
|
||||
return builder.toString();
|
||||
}
|
||||
private boolean shouldIgnore(String path){
|
||||
return path.startsWith("lib/") && path.endsWith(".so");
|
||||
}
|
||||
|
||||
public void setApkLogger(APKLogger apkLogger) {
|
||||
this.apkLogger = apkLogger;
|
||||
|
Loading…
x
Reference in New Issue
Block a user