Closed frhnfrq closed 4 years ago
What Android version are you running?
Android 9. OnePlus 6 (A6000)
Yeah, there are some problems like this with Android Pie.
Oh! Is there any way to fix it?
Not sure. If you have PC you can try to get LogCat using ADB ad upload it here.
I have the same problem with Android 8.0.0 and i can upload logcat if useful.
I have the same problem with Android 8.0.0 and i can upload logcat if useful.
Yep, it will be good. Looks like Android 8+ problem..
I have the same problem with Android 8.0.0 and i can upload logcat if useful.
Yep, it will be good. Looks like Android 8+ problem..
I've read all the logcat of termux PID while sending javac
command but i haven't found nothing useful.
There was just something about WindowManager
and OpenGLRenderer
.
Android Pie, Bad system call, too.
Getting the same android version 9
Same here. Galaxy A20, Android 9
Same problem ! Redmi 5A, Android 8.1
Last month I was able to use normally on Android 9, so I changed my ROM and now I get this error. The new ROM is Android Pie too.
@TheusKhan Have you changed from stock to custom, or...?
I changed from custom ROM to another custom ROM. My device is Redmi 4X, aka Santoni. Was working fine on POSP with 4.9 linux kernel. But now doesn't work on Havoc OS with 3.18 Linux kernel. Both are Android Pie AOSP ROMs rooted with Magisk 19.3.
Install tsu thenn as root it works
the same probleme here
Same problem on Android 9 3.18 Kernel
Lol, so many people facing this and still no solution. Marking as "won't fix" for now..
same problem
Same problem for me also, using android pie with lineage os 16
im still getting the same problem on android 10 @MasterDevX
Hey all before running java run proot -0
It will work
Hey all before running java run
proot -0
It will work
@kcubeterm nope, typing "java" in any case causes bad system call: it even won't display jar argument syntax as shown above.
See in android 9 it works
First ,when I run just java
It didn't run
But when I execute proot -0
here "0"is zero okkk
Then I execute keytool it's worked
For android 9 works, confirm. Thanks everyone!
It works with proot -0
it was as simple as that 😅
@kcubeterm Thanks a lot, running proot -0
before calling Java, fixed the issue! I think that a slight modification to the installation script can make this automatic @MasterDevX
Big thanks to the @kcubeterm for the solution, I think we can finally close this :+1:
I think that a slight modification to the installation script can make this automatic
Don't know if it is a good idea, cuz some users who don't want to be in a PRoot environment will be forced to use it.
Damn I got an error message with command : proot -0
Reports success from Android 10 on Samsung Galaxy S10e! Gotta install Minecraft Server now, as my VM can't handle it...
See in android 9 it works First ,when I run just
java
It didn't run But when I executeproot -0
here "0"is zero okkk Then I execute keytool it's worked
Thank you its works
If you run javac in termux using strace you'll see what's wrong.
According to this link: https://github.com/termux/termux-packages/issues/420
the error is because you compile against a libc that doesn't know about the restrictions on syscalls in newer Android versions.
In our case this is the syscall (strace):
set_robust_list(0x74b24e50e0, 24) = 501207683296 --- SIGSYS {si_signo=SIGSYS, si_code=SYS_SECCOMP, si_call_addr=0x74b249c790, si_syscall=__NR_set_robust_list, si_arch=AUDIT_ARCH_AARCH64} --- +++ killed by SIGSYS +++ Bad system call
We can't use java without proot -0 ?
Yes, exec tsu and java works.
Yes, exec tsu and java works.
Yes when we use tsu it will work but most of the users only have unrooted android including me
Damn I got an error message with command : proot -0
First install proot boss :-)
Write in termux termux-chroot
XDD incase anyone thinks -proot 0 is tiresome to type everytime , i suggest you to use sudo instead
like this : pkg install proot
If you are running SpringBoot, may be specify a tmp folder, java -Djava.io.tmpdir=/data/data/com.termux/files/home/tmpdir jar xxxxyourJava.jar
@DaiMengMei try under termux-chroot
Not work
install proot launch with fake root
I think that a slight modification to the installation script can make this automatic
Don't know if it is a good idea, cuz some users who don't want to be in a PRoot environment will be forced to use it.
How to remove proot
I think that a slight modification to the installation script can make this automatic
Don't know if it is a good idea, cuz some users who don't want to be in a PRoot environment will be forced to use it.
How to remove proot
WDYM "remove"? Like... Uninstall the package? Just like any other package - pkg remove proot
or pkg uninstall proot
(I actually don't remember which one was it).
Hi, Getting this. Can you help?