diff --git a/packages/apktool/AndrolibResources.java.patch b/packages/apktool/AndrolibResources.java.patch new file mode 100644 index 000000000..84873b22d --- /dev/null +++ b/packages/apktool/AndrolibResources.java.patch @@ -0,0 +1,11 @@ +--- a/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/AndrolibResources.java ++++ b/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/AndrolibResources.java +@@ -611,7 +611,7 @@ + throws AndrolibException { + + String aaptPath = apkOptions.aaptPath; +- boolean customAapt = !aaptPath.isEmpty(); ++ boolean customAapt = true; + List cmd = new ArrayList<>(); + + try { diff --git a/packages/apktool/build.sh b/packages/apktool/build.sh index c62295254..f45ced334 100644 --- a/packages/apktool/build.sh +++ b/packages/apktool/build.sh @@ -17,6 +17,7 @@ termux_step_pre_configure() { $CC $CFLAGS $CPPFLAGS aapt-wrapper/${exe_name}-wrapper.c \ -o ${exe_path} $LDFLAGS $STRIP --strip-unneeded ${exe_path} + $TERMUX_ELF_CLEANER ${exe_path} cp -a ${exe_path} ${exe_path}_64 done }