mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2025-05-21 00:16:59 +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
|
File outFile
|
||||||
) async {
|
) async {
|
||||||
deleteLastPatchedApp();
|
deleteLastPatchedApp();
|
||||||
final Directory appCache = await getApplicationSupportDirectory();
|
app.patchedFilePath = outFile.path;
|
||||||
app.patchedFilePath =
|
|
||||||
outFile.copySync('${appCache.path}/lastPatchedApp.apk').path;
|
|
||||||
app.fileSize = outFile.lengthSync();
|
app.fileSize = outFile.lengthSync();
|
||||||
await _prefs.setString('lastPatchedApp', json.encode(app.toJson()));
|
await _prefs.setString('lastPatchedApp', json.encode(app.toJson()));
|
||||||
}
|
}
|
||||||
|
@ -175,7 +175,12 @@ class PatcherAPI {
|
|||||||
final File inApkFile = File('${workDir.path}/in.apk');
|
final File inApkFile = File('${workDir.path}/in.apk');
|
||||||
await File(apkFilePath).copy(inApkFile.path);
|
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 =
|
final Directory tmpDir =
|
||||||
Directory('${workDir.path}/revanced-temporary-files');
|
Directory('${workDir.path}/revanced-temporary-files');
|
||||||
|
Reference in New Issue
Block a user