Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(android): set DexFile to read-only in Java.registerClass()
As of Android 14, apps with targetSdk >= 34 are not allowed to have writable permissions on dynamically loaded Dex files. https://developer.android.com/about/versions/14/behavior-changes-14#safer-dynamic-code-loading This removes writable permissions from the temporary DexFile created by Java.registerClass() after writing to it and before it gets loaded.
- Loading branch information