Closed cattokomo closed 10 months ago
Looks like you are not binding /system, /data and /apex in alpine, so I guess those paths are unavailable?
Looks like you are not binding /system, /data and /apex in alpine, so I guess those paths are unavailable?
It's available.
😼 # urnaree@localhost : ~
0% ls / | grep -E "apex|data|system"
apex
data
system
Please be aware that parsing ls
inside a script is inherently flawed and does not work for some weird, but valid, filename edge cases.
Generally it is preferable to use find
or to loop over a directory directly, e.g.
for file in ./*; do
: "$file" # stuff
done
For more detailed explanations and examples see: https://mywiki.wooledge.org/ParsingLs
Most likely the issue present in this "Zsh script to patch Termux commands inside Proot".
@UrNightmaree Why do you need to patch something inside proot? Are environment variables not getting configured, so you need to setup them manually?
Bad DEX2OATBOOTCLASSPATH
or BOOTCLASSPATH
is a typical reason why some classes are missing.
Are environment variables not getting configured, so you need to setup them manually?
Technically, I'm not setting it up manually. Instead I copy the content of <rootfs>/etc/profile.d/termux-proot.sh
due to the file isn't sourced by Zsh.
I would suggest to look values of these variables in Termux and update them.
I replaced BOOTCLASSPATH
and DEX2OATBOOTCLASSPATH
variables, and it works fine now.
Problem description
Every Termux:API commands (including non-packaged into
termux-api
, liketermux-open
) returns an output:Even if the all required environmnet variables to have most Termux:API commands to work. (Sourcing
/etc/profile.d/termux-proot.sh
if rootfs installed usingproot-distro
)Steps to reproduce
exec pd login alpine --user urnaree
am
. Example:termux-toast hello
Expected behavior
Successfully run the command.
Additional information
0.50.1+b732327
0.57-0
Zsh script to patch Termux commands inside Proot: