julianwi / javainstaller

an android application to install a full java runtime on a phone.
GNU General Public License v3.0
37 stars 9 forks source link

Doesnt install gnu libc, zlib, libff and others. #9

Open emretutsak opened 8 years ago

emretutsak commented 8 years ago

İt gives an error "unfortunately java installer has stopped" for android 6.0

julianwi commented 8 years ago

I think this is a problem with the new android runtime art in android 5+. Would be nice if you could test the following on your device. Go to settings and change the option "run install.sh in" to Terminal Emulator. Change "run jar file in" to Terminal Emulator. Then go to package list open a package which failed before. Select "change path" and replace julianwi.javainstaller by jackpal.androidterm . Please tell me if the install works with these configs.

emretutsak commented 8 years ago

All done. They are all installed. But now it can't run a jar file: "... avainstaller/java -jar /sdcard/Download/Opera+Mini+7.jar < /data/data/jackpal.androidterm/javafiles/jamvm: error while loading shared libraries: /data/data/jackpal.androidterm/javafiles/jamvm: cannot enable executable stack as shared object requires: Permission denied ..."

(Sorry for bad english)

julianwi commented 8 years ago

The SElinux policy on your device denies something important. I don't know exactly what it is. If your device is rootet, you can type in terminal emulator: "setenforce 0" and every thing will work. If your device is not rootet, you can type in terminal emulator: "dmesg | grep avc" after you tried to run a jar file and we will see what the exact error message looks like.

emretutsak commented 8 years ago

Phone is not rooted.

Now shows this:

dmesg: klogctl: Permission denied

julianwi commented 8 years ago

Looks like this is also blocked. One thing to say: android 6 is really crap. Everything which makes fun is blocked. I wouldn't recommend anyone to use it without custom rom or root. I think I can't help you anymore.

emretutsak commented 8 years ago

:) OK. Thanks a lot.