fix(Save patched app): Patched APK file immediately removed and installation canceled

This commit is contained in:
kitadai31 2025-04-20 12:52:51 +09:00
parent 722f2b645f
commit c9c829576f

View file

@ -372,7 +372,6 @@ class ManagerAPI {
PatchedApplication app,
File outFile,
) async {
deleteLastPatchedApp();
final Directory appCache = await getApplicationSupportDirectory();
app.patchedFilePath =
outFile.copySync('${appCache.path}/lastPatchedApp.apk').path;
@ -703,7 +702,6 @@ class ManagerAPI {
if (lastPatchedApp != null) {
final File file = File(lastPatchedApp.patchedFilePath);
if (!file.existsSync()) {
deleteLastPatchedApp();
_prefs.remove('lastPatchedApp');
}
}