MasterDevX / Termux-Java

Install Java (Open-JDK-8) in Termux without root!
381 stars 82 forks source link

[Android O / P] Bad system call #3

Closed frhnfrq closed 4 years ago

frhnfrq commented 5 years ago

Hi, Getting this. Can you help? Screenshot_20190606-142010

MasterDevX commented 5 years ago

What Android version are you running?

frhnfrq commented 5 years ago

Android 9. OnePlus 6 (A6000)

MasterDevX commented 5 years ago

Yeah, there are some problems like this with Android Pie.

frhnfrq commented 5 years ago

Oh! Is there any way to fix it?

MasterDevX commented 5 years ago

Not sure. If you have PC you can try to get LogCat using ADB ad upload it here.

ghost commented 5 years ago

I have the same problem with Android 8.0.0 and i can upload logcat if useful.

MasterDevX commented 5 years ago

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

ghost commented 5 years ago

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.

reekystive commented 5 years ago

Android Pie, Bad system call, too.

Mantisimo commented 5 years ago

Getting the same android version 9

GoogleSites commented 5 years ago

Same here. Galaxy A20, Android 9

SudhitChauhan commented 5 years ago

Same problem ! Redmi 5A, Android 8.1

TheMatheusDev commented 5 years ago

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.

MasterDevX commented 5 years ago

@TheusKhan Have you changed from stock to custom, or...?

TheMatheusDev commented 5 years ago

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.

phil2sat commented 5 years ago

Install tsu thenn as root it works

Flamexxx commented 5 years ago

the same probleme here

sudoalx commented 5 years ago

Same problem on Android 9 3.18 Kernel

MasterDevX commented 5 years ago

Lol, so many people facing this and still no solution. Marking as "won't fix" for now..

Dzuchun commented 5 years ago

same problem

emilie-chen commented 5 years ago

Same problem for me also, using android pie with lineage os 16

rickasheye commented 4 years ago

im still getting the same problem on android 10 @MasterDevX

kcubeterm commented 4 years ago

Hey all before running java run proot -0 It will work

Dzuchun commented 4 years ago

Hey all before running java run proot -0 It will work

@kcubeterm nope, typing "java" in any case causes bad system call: 20191101_064232 it even won't display jar argument syntax as shown above.

kcubeterm commented 4 years ago

See in android 9 it works Screenshot_2019-11-01-11-42-37-866_com termux 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

Dzuchun commented 4 years ago

For android 9 works, confirm. Thanks everyone!

sudoalx commented 4 years ago

It works with proot -0 it was as simple as that 😅

ghost commented 4 years ago

@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

MasterDevX commented 4 years ago

Big thanks to the @kcubeterm for the solution, I think we can finally close this :+1:

MasterDevX commented 4 years ago

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.

Frankystar777 commented 4 years ago

Damn I got an error message with command : proot -0

GuzioMG commented 4 years ago

Reports success from Android 10 on Samsung Galaxy S10e! Gotta install Minecraft Server now, as my VM can't handle it...

aldin99 commented 4 years ago

See in android 9 it works Screenshot_2019-11-01-11-42-37-866_com termux 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

Thank you its works

bucketsort commented 4 years ago

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

TITANHACKY commented 4 years ago

We can't use java without proot -0 ?

VergeDX commented 4 years ago

Yes, exec tsu and java works.

TITANHACKY commented 4 years ago

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

ghost commented 3 years ago

Damn I got an error message with command : proot -0

First install proot boss :-)

ghost commented 3 years ago

Write in termux termux-chroot

Enforc3rr commented 3 years ago

XDD incase anyone thinks -proot 0 is tiresome to type everytime , i suggest you to use sudo instead

suhui8 commented 3 years ago

like this : pkg install proot 1 2

suhui8 commented 3 years ago

3

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

kcubeterm commented 3 years ago

@DaiMengMei try under termux-chroot

ilixindri commented 3 years ago

Screenshot_20210510-010247_Termux Not work Screenshot_20210510-010504_Termux

ghost commented 3 years ago

install proot launch with fake root

pavan3b8 commented 2 years ago

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

GuzioMG commented 2 years ago

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).