mirror of
https://github.com/revanced/Apktool.git
synced 2024-11-06 20:57:02 +01:00
Fix removal of META-INF/services folder
- copy the META-INF/services folder to the destination APK folder so it does not get dropped
This commit is contained in:
parent
154da4c643
commit
fa99bdd19d
@ -568,7 +568,6 @@ public class Androlib {
|
||||
buildLibrary(appDir, "lib");
|
||||
buildLibrary(appDir, "libs");
|
||||
buildLibrary(appDir, "kotlin");
|
||||
buildLibrary(appDir, "META-INF/services");
|
||||
}
|
||||
|
||||
public void buildLibrary(File appDir, String folder) throws AndrolibException {
|
||||
@ -579,7 +578,7 @@ public class Androlib {
|
||||
}
|
||||
|
||||
File stored = new File(appDir, APK_DIRNAME + "/" + folder);
|
||||
if (apkOptions.forceBuildAll || isModified(working, stored) || folder.contains("services")) {
|
||||
if (apkOptions.forceBuildAll || isModified(working, stored)) {
|
||||
LOGGER.info("Copying libs... (/" + folder + ")");
|
||||
try {
|
||||
OS.rmdir(stored);
|
||||
|
Loading…
Reference in New Issue
Block a user