Jason A. Donenfeld
479b8f9828
termux-tools: use proper su search order
This mirrors the search order in the standard Android PATH, so that the
right tool is used consistently. This makes it easier for something like
Kernel Assisted Superuser to co-exist with Magisk.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years ago
Fredrik Fornwall
edbb4081d3
Use system top
Remove top both from busybox (which is broken on Android 8+), and
procps (which has issues on Android 8+) and use a system wrapper
in termux-tools instead.
6 years ago
Leonid Plyushch
0883785cad
termux-tools: export SHELL variable on login ( #2632 )
7 years ago
Fredrik Fornwall
9d5852dcad
termux-tools: Bump version to 0.55 after su warning in pkg
7 years ago
Oliver Schmidhauser
ea368bb55d
unset LD_PRELOAD in su because magist 16.4 is 32 bit only
7 years ago
its-pointless
1ec6c042a8
termux-tools: Work around for when termux-exec is broken
7 years ago
Fredrik Fornwall
b0e16f0ed0
termux-tools: Depend on termux-am ( fixes #2101 )
7 years ago
Michał Bednarski
0b470897d1
termux-am: Add package
7 years ago
Fredrik Fornwall
6b54ba3b69
termux-tools: Unset LD_PRELOAD when calling system
Some 64-bit systems seems to have 32-bit binaries in /system/bin,
so unset LD_PRELOAD before calling them. See #551 .
7 years ago
Fredrik Fornwall
52ec48e06f
termux-tools: Avoid pm list in termux-info ( #1426 )
7 years ago
Fredrik Fornwall
c4600d33bc
termux-tools: Unset LD_PRELOAD in dalvikvm
See https://github.com/termux/termux-packages/issues/1736
7 years ago
Oliver Schmidhauser
fc0718410c
packages->pkg in help text ( #1599 )
* packages->pkg in help text
* Fix pkg at a second placec
7 years ago
Fredrik Fornwall
2cac774bfb
termux-tools: Make bin/login handle arguments
As we now use bin/login even from e.g. sshd we need to handle
arguments by forwarding it to the login shell and not displaying
a motd in that case. Fixes #1529 .
7 years ago
Fredrik Fornwall
8c4313e32e
termux-exec: Add package
7 years ago
Fredrik Fornwall
3be253d7bd
termux-tools: Replace help with wiki in motd
7 years ago
Fredrik Fornwall
9a1841f308
termux-tools: Remove 'packages' symlink
7 years ago
Fredrik Fornwall
93f9dea39f
Use 'pkg' as shorter form of 'packages'
Fixes https://github.com/termux/termux-app/issues/321 .
8 years ago
Fredrik Fornwall
8ad37c2b08
termux-tools: xdg-open should be a symlink
8 years ago
Oliver Schmidhauser
389d8cdb06
Add termux-info tool ( #422 )
* Add termux-info tool
* Add more information to termux-info
* Resolve conflicts. Add comment and fix Typo.
* remove empty lines in output
8 years ago
Fredrik Fornwall
b60e08202f
termux-tools: Bump version to 0.41
8 years ago
Fredrik Fornwall
9d99cc6543
termux-tools: Allow shorter forms in packages
8 years ago
Fredrik Fornwall
bd78c57fd7
termux-tools: Handle --help in termux-open
Fixes #801 .
8 years ago
Fredrik Fornwall
30a5b5a7ad
termux-tools: Bump version to 0.38
8 years ago
Fredrik Fornwall
e54c330868
termux-tools: Setup xdg-open->termux-open symlink
8 years ago
Fredrik Fornwall
83e3b942b5
termux-tools: Bump version to bring 'packages'
8 years ago
Fredrik Fornwall
d6df138bb1
termux-tools: Add a 'packages' utility
8 years ago
Fredrik Fornwall
4d7154eff8
termux-tools: Add etc/motd to be shown on login
8 years ago
Fredrik Fornwall
89956f70a1
termux-tools: Search in /system/bin for su
Fixes #723 .
8 years ago
Fredrik Fornwall
4c29f84f59
termux-tools: Fix quoting in su ( fixes #244 )
8 years ago
Fredrik Fornwall
c9379a3ed8
termux-tools: Unset LD_LIBRARY_PATH in wrappers
Previously the wrappers assumed that if
/system/bin/linker64
that LD_LIBRARY_PATH should be set to /system/lib64. This seems
to not always be the case (see #192 ) and hopefully the system
binaries should work without LD_LIBRARY_PATH being set, so we
just unset it before calling the system binary.
8 years ago
Fredrik Fornwall
5ef5713d2d
termux-tools: Fix typo in termux-setup-storage
8 years ago
Fredrik Fornwall
7acdc6acea
termux-tools: Bump version
8 years ago
Fredrik Fornwall
eafc139a78
termux-tools: Add termux-wake-{lock,unlock}
8 years ago
Fredrik Fornwall
57efacaf26
termux-tools: Add /magisk/.core/bin/su path to su
Fixes #168 .
8 years ago
Fredrik Fornwall
0ee447355b
termux-tools: Try a more functional su wrapper
8 years ago
Fredrik Fornwall
6501186f2b
Fix dalvikvm wrapper
- Just unset LD_LIBRARY_PATH in the dalvikvm wrapper.
- Let the dalvikvm wrapper setup $ANDROID_DATA.
- Avoid using a custom dalvikvm wrapper in dx.
9 years ago
Fredrik Fornwall
0ae97c5e98
termux-tools: Quote $@ when sending from wrappers
Fixes https://github.com/termux/termux-api/issues/18
9 years ago
Fredrik Fornwall
31dd323c81
termux-tools: More robust check for 64-bit runtime
Previously the wrapper scripts for binaries in /system/bin used
/system/bin/getprop to determine if /system/lib or /system/lib64
should be used for the LD_LIBRARY_PATH.
We now switch to checking for /system/bin/linker64 which should be
more robust and faster. Fixes #214 .
9 years ago
Fredrik Fornwall
8353c56c0b
Modify setup in wrappers for /system/bin/ commands
On several devices several tools in /system/bin/ requires
LD_LIBRARY_PATH to contain /system/lib(64). Check for the bit-ness
with `getprop ro.product.cpu.abilist64` and setup the environment
accordingly.
Closes #193 .
Closes #206 .
9 years ago
Oliver Schmidhauser
f21a7e1f74
Add ip command to termux-tools
9 years ago
Fredrik Fornwall
f88c28f160
Move ping6 from inetutils to instead use system
The ping6 binary needs setuid, so use the working system version
instead of installing a broken version for non-root users.
Closes https://github.com/termux/termux-app/issues/74
9 years ago
Fredrik Fornwall
a5421dbdf6
termux-tools: Search in more places for su
9 years ago
Fredrik Fornwall
391aa3d473
termux-tools: Update su script, add getprop
9 years ago
Fredrik Fornwall
43ca47ce46
termux-tools: New 0.20 version with a su script
9 years ago
Fredrik Fornwall
145d0fe3d6
termux-tools: Fix the am and pm wrapper
9 years ago
Fredrik Fornwall
dcad05c5aa
termux-tools: Add dalvikvm wrapper
9 years ago
Fredrik Fornwall
8b352090bf
termux-tools: Add ping and logcat wrappers
9 years ago
Fredrik Fornwall
346477db98
termux-fix-shebang: Only modify first line
9 years ago
Fredrik Fornwall
159214fa63
termux-tools: df wrapper resetting LD_LIBRARY_PATH
9 years ago
Fredrik Fornwall
561edf1bac
termux-tools: Add termux-setup-storage
9 years ago