mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-04-30 05:54:26 +02:00
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
This commit is contained in:
parent
a5c3aa3744
commit
5cc449d4fb
@ -367,7 +367,7 @@ class ManagerAPI {
|
|||||||
File outFile,
|
File outFile,
|
||||||
) async {
|
) async {
|
||||||
deleteLastPatchedApp();
|
deleteLastPatchedApp();
|
||||||
final Directory appCache = await getApplicationSupportDirectory();
|
final Directory appCache = await getApplicationCacheDirectory();
|
||||||
app.patchedFilePath =
|
app.patchedFilePath =
|
||||||
outFile.copySync('${appCache.path}/lastPatchedApp.apk').path;
|
outFile.copySync('${appCache.path}/lastPatchedApp.apk').path;
|
||||||
app.fileSize = outFile.lengthSync();
|
app.fileSize = outFile.lengthSync();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user