Compare commits

...

6 Commits

Author SHA1 Message Date
c62650bee9 renamed files dir 2025-05-09 15:44:38 -07:00
2de57952a0 Update patcher_api.dart 2025-05-09 10:38:55 -07:00
63f23652a8 Update patcher_api.dart 2025-05-09 09:58:37 -07:00
9687caf342 Merge remote-tracking branch 'origin/dev' into fix/last-app-dir 2025-05-09 09:53:59 -07:00
5387fabcee Use permanent path 2024-11-30 14:20:06 -08:00
5cc449d4fb 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
2024-11-30 13:52:46 -08:00
2 changed files with 7 additions and 4 deletions

View File

@ -379,9 +379,7 @@ class ManagerAPI {
File outFile
) async {
deleteLastPatchedApp();
final Directory appCache = await getApplicationSupportDirectory();
app.patchedFilePath =
outFile.copySync('${appCache.path}/lastPatchedApp.apk').path;
app.patchedFilePath = outFile.path;
app.fileSize = outFile.lengthSync();
await _prefs.setString('lastPatchedApp', json.encode(app.toJson()));
}

View File

@ -175,7 +175,12 @@ class PatcherAPI {
final File inApkFile = File('${workDir.path}/in.apk');
await File(apkFilePath).copy(inApkFile.path);
outFile = File('${workDir.path}/out.apk');
if (_managerAPI.isLastPatchedAppEnabled()) {
final Directory filesDir = await getApplicationSupportDirectory();
outFile = File('${filesDir.path}/out.apk');
} else {
outFile = File('${workDir.path}/out.apk');
}
final Directory tmpDir =
Directory('${workDir.path}/revanced-temporary-files');