diff --git a/app/src/main/java/com/topjohnwu/magisk/tasks/FlashZip.kt b/app/src/main/java/com/topjohnwu/magisk/tasks/FlashZip.kt index 0a42d1783..fedf30e87 100644 --- a/app/src/main/java/com/topjohnwu/magisk/tasks/FlashZip.kt +++ b/app/src/main/java/com/topjohnwu/magisk/tasks/FlashZip.kt @@ -21,7 +21,10 @@ abstract class FlashZip( ) { private val app: App by inject() - private val tmpFile: File = File(app.cacheDir, "install.zip") + private val installFolder = File(app.cacheDir, "flash").apply { + if (!exists()) mkdirs() + } + private val tmpFile: File = File(installFolder, "install.zip") @Throws(IOException::class) private fun unzipAndCheck(): Boolean {