Using termux api in proot loads infinitely
Background information:
I installed ubuntu via andronix (it uses proot). I would like to use the termux api in proot. I found github discussion, which told me to add binds to my starting script. I have now fixed all apparent errors (libraries not found, ...)
Now, using termux-clipboard-set in proot gives me no error, but it does not work. It waits infinitely.
When running
'strace -fv -o log3.txt termux-clipboard-set "test"'
this is what i get: https://pastebin.pl/view/4ec2a5b8
I dont know if this helps. I hope you can help me.
Thanks in advance
Untitled - Pastebin
Pastebin.pl is a website where you can store code/text online for a set period of time and share to anybody on earth
8 Replies
termux-api is not intended for use in a proot environment.
Proots have entirely separate packages from the base Termux environment.
There may be ways for the host and client environments to communicate but you can not invoke Termux binaries from the client.
As you can see on the first line it is trying to run:
Which does not exist in the proot environments file system.
I though adding the binds when starting proot would make this work
I don't believe there is a way to make Termux-API work in proot.
Although I might very well be wrong about that.
GitHub
How to call termux-open from within proot · Issue #23 · termux/proot
I want to display a picture in Android's default picture viewing app from inside proot. It works fine from within termux using termux-open, however from within proot ( I use the ubuntu distro) ...
here (https://github.com/termux/termux-api/issues/369) they are talking about exactly my problem but in chroot and they fix it by using a rooted device and changing the selinux policy
GitHub
no output and no exit · Issue #369 · termux/termux-api
Problem description When running a termux-api command, it does not give any output and doesnt exit, I have seen a solution using some menu called "protected apps", but no such menu exists...
Yeah, that's not gonna be an option here.
Seeing as Proot is explicitly rootless.
I removed the andronix install and installed with proot-distro. Termux api works in arch linux. It should be possible in andronix but it required to much config
We don't really do support for Andronix.
They might just be using like an outdated version or something.