mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2025-05-11 13:05:37 +02:00
perf: Reduce amount of shell commands
This commit is contained in:
parent
8a1ab478a3
commit
5b1c89a0c5
3 changed files with 33 additions and 39 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue