Browse Source

termux-am: Unset LD_PRELOAD

PR submitted at https://github.com/michalbednarski/TermuxAm/pull/1
android-5
Fredrik Fornwall 7 years ago
parent
commit
4c837acda3
  1. 1
      packages/termux-am/build.sh
  2. 9
      packages/termux-am/unset-LD_PRELOAD.patch

1
packages/termux-am/build.sh

@ -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

9
packages/termux-am/unset-LD_PRELOAD.patch

@ -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 "$@"
Loading…
Cancel
Save