mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2025-05-20 16:06:39 +08:00
Compare commits
6 Commits
v1.25.0-de
...
fix/last-a
Author | SHA1 | Date | |
---|---|---|---|
c62650bee9 | |||
2de57952a0 | |||
63f23652a8 | |||
9687caf342 | |||
5387fabcee | |||
5cc449d4fb |
@ -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()));
|
||||
}
|
||||
|
@ -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');
|
||||
|
Reference in New Issue
Block a user