Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
android: Set DexFile to read-only in Java.registerClass() (#318)
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. Co-authored-by: Georgi Boiko <[email protected]>
- Loading branch information