mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-06-13 04:57:37 +02:00
fix: Empty “tmp-XXXXXX” directory keeps growing in cacheDir (#2194)
This commit is contained in:
@ -109,14 +109,13 @@ class MainActivity : FlutterActivity() {
|
||||
|
||||
"getPatches" -> {
|
||||
val patchBundleFilePath = call.argument<String>("patchBundleFilePath")!!
|
||||
val cacheDirPath = call.argument<String>("cacheDirPath")!!
|
||||
|
||||
try {
|
||||
val patchBundleFile = File(patchBundleFilePath)
|
||||
patchBundleFile.setWritable(false)
|
||||
patches = PatchBundleLoader.Dex(
|
||||
patchBundleFile,
|
||||
optimizedDexDirectory = File(cacheDirPath)
|
||||
optimizedDexDirectory = codeCacheDir
|
||||
)
|
||||
} catch (ex: Exception) {
|
||||
return@setMethodCallHandler result.notImplemented()
|
||||
|
Reference in New Issue
Block a user