Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not allowing load writable dex in Android 14 #70

Open
CyanChanges opened this issue Oct 9, 2023 · 0 comments
Open

Not allowing load writable dex in Android 14 #70

CyanChanges opened this issue Oct 9, 2023 · 0 comments

Comments

@CyanChanges
Copy link

CyanChanges commented Oct 9, 2023

In Android 14, Load a writable dex will throw a SecurityException. (Document Here)

09 23:19:48.620 20596 20596 E rish    : Attempt to load writable dex file: /data/data/com.termux/files/home/./rish.dex
10-09 23:19:48.620 20596 20596 W rish    : Ljava/lang/ClassLoader$SystemClassLoader; failed initialization: java.lang.SecurityException: Writable dex file '/data/data/com.termux/files/home/./rish.dex' is not allowed.

And you will only get Aborted when running it.

$ ./rish
Aborted

How to fix it:

$ chmod -w ./rish.dex
$ ./rish
Works fine...

Here is the full [log].

(九键用不惯懒得切输入法打中文.png)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant