PluginManager: uncomment setReadOnly for Android 14 (#823)

This commit is contained in:
Luna712 2023-12-18 10:49:08 -07:00 committed by GitHub
parent 484c21cc1c
commit db91552f39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -477,13 +477,13 @@ object PluginManager {
Log.i(TAG, "Loading plugin: $data")
return try {
/* in case of android 14 then
// in case of android 14 then
try {
File(filePath).setReadOnly()
} catch (t : Throwable) {
} catch (t: Throwable) {
Log.e(TAG, "Failed to set dex as readonly")
logError(t)
}*/
}
val loader = PathClassLoader(filePath, context.classLoader)
var manifest: Plugin.Manifest