termux-packages/packages/apktool/aapt-wrapper.patch
2021-12-16 21:13:02 +02:00

31 lines
610 B
Diff

--- a/aapt-wrapper/aapt-wrapper.c
+++ b/aapt-wrapper/aapt-wrapper.c
@@ -0,0 +1,12 @@
+
+#include <stdio.h>
+#include <unistd.h>
+#include <errno.h>
+
+int
+main(int argc, char **argv, char **envp)
+{
+ execve("@TERMUX_PREFIX@/bin/aapt", argv, envp);
+ perror("aapt-wrapper: execve");
+ return -1;
+}
--- a/aapt-wrapper/aapt2-wrapper.c
+++ b/aapt-wrapper/aapt2-wrapper.c
@@ -0,0 +1,12 @@
+
+#include <stdio.h>
+#include <unistd.h>
+#include <errno.h>
+
+int
+main(int argc, char **argv, char **envp)
+{
+ execve("@TERMUX_PREFIX@/bin/aapt2", argv, envp);
+ perror("aapt2-wrapper: execve");
+ return -1;
+}