diff --git a/lib/services/patcher_api.dart b/lib/services/patcher_api.dart index 6c872820..8479f343 100644 --- a/lib/services/patcher_api.dart +++ b/lib/services/patcher_api.dart @@ -199,10 +199,9 @@ class PatcherAPI { String prefix = appName.toLowerCase().replaceAll(' ', '-'); String newName = '$prefix-revanced_v$version.apk'; int lastSeparator = _outFile!.path.lastIndexOf('/'); - File share = _outFile!.renameSync( - _outFile!.path.substring(0, lastSeparator + 1) + newName, - ); - ShareExtend.share(share.path, 'file'); + String newPath = _outFile!.path.substring(0, lastSeparator + 1) + newName; + File shareFile = _outFile!.copySync(newPath); + ShareExtend.share(shareFile.path, 'file'); } }