From 5cc449d4fbfe8ad51b40e6f0823794f570cdd076 Mon Sep 17 00:00:00 2001 From: Benjamin Halko Date: Sat, 30 Nov 2024 13:52:46 -0800 Subject: [PATCH] fix: Use cache directory for the last patched app This should hopefully solve the issue where it can't write the patched app for some reason --- lib/services/manager_api.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/services/manager_api.dart b/lib/services/manager_api.dart index 511eb44f..d8cba617 100644 --- a/lib/services/manager_api.dart +++ b/lib/services/manager_api.dart @@ -367,7 +367,7 @@ class ManagerAPI { File outFile, ) async { deleteLastPatchedApp(); - final Directory appCache = await getApplicationSupportDirectory(); + final Directory appCache = await getApplicationCacheDirectory(); app.patchedFilePath = outFile.copySync('${appCache.path}/lastPatchedApp.apk').path; app.fileSize = outFile.lengthSync();