RikkaApps / Sui

Modern super user interface implementation on Android.
GNU General Public License v3.0
2.39k stars 129 forks source link

Not allowing load writable dex in Android 14 #70

Open CyanChanges opened 8 months ago

CyanChanges commented 8 months ago

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)