perf: Reduce amount of shell commands

This commit is contained in:
oSumAtrIX 2023-12-23 19:02:09 +01:00
parent 8a1ab478a3
commit 5b1c89a0c5
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4
3 changed files with 33 additions and 39 deletions

View file

@ -229,7 +229,7 @@ class PatcherAPI {
} else if (packageVersion == null) {
installErrorDialog(1.2);
} else if (packageVersion == patchedApp.version) {
return await _rootAPI.installApp(
return await _rootAPI.install(
patchedApp.packageName,
patchedApp.apkFilePath,
outFile!.path,
@ -241,7 +241,7 @@ class PatcherAPI {
}
} else {
if (await _rootAPI.hasRootPermissions()) {
await _rootAPI.unmount(patchedApp.packageName);
await _rootAPI.uninstall(patchedApp.packageName);
}
if (context.mounted) {
return await installApk(