Sui
Sui copied to clipboard
Not allowing load writable dex in Android 14
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)