termux-am: Unset LD_PRELOAD

PR submitted at https://github.com/michalbednarski/TermuxAm/pull/1
This commit is contained in:
Fredrik Fornwall 2018-02-05 01:43:26 +01:00
parent b187d008ab
commit 0259449662
2 changed files with 10 additions and 0 deletions

View File

@ -2,6 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://github.com/michalbednarski/TermuxAm
TERMUX_PKG_DESCRIPTION="Android Oreo-compatible am command reimplementation"
TERMUX_PKG_MAINTAINER="Michal Bednarski @michalbednarski"
TERMUX_PKG_VERSION=0.1
TERMUX_PKG_REVISION=1
TERMUX_PKG_SHA256=ed5dcb526d2cabb12754e471f1284822e052550c3206421e1bb889684b97c7b8
TERMUX_PKG_SRCURL=https://github.com/michalbednarski/TermuxAm/archive/v$TERMUX_PKG_VERSION.zip
TERMUX_PKG_PLATFORM_INDEPENDENT=yes

View File

@ -0,0 +1,9 @@
diff -u -r ../TermuxAm-0.1/am-libexec-packaged ./am-libexec-packaged
--- ../TermuxAm-0.1/am-libexec-packaged 2018-02-03 16:43:05.000000000 +0100
+++ ./am-libexec-packaged 2018-02-05 01:11:01.744982848 +0100
@@ -1,4 +1,4 @@
#!/data/data/com.termux/files/usr/bin/bash
export CLASSPATH=/data/data/com.termux/files/usr/libexec/termux-am/am.apk
-unset LD_LIBRARY_PATH
+unset LD_LIBRARY_PATH LD_PRELOAD
exec /system/bin/app_process / com.example.termuxam.Am "$@"