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

View file

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