fix: root installation (still wip)

This commit is contained in:
Alberto Ponces
2022-08-14 21:32:03 +01:00
parent 034731a35f
commit 8fd942a808
3 changed files with 30 additions and 14 deletions

View File

@ -115,7 +115,16 @@ class InstallerViewModel extends BaseViewModel {
PatchedApplication? selectedApp =
locator<AppSelectorViewModel>().selectedApp;
if (selectedApp != null) {
await locator<PatcherAPI>().installPatchedFile(selectedApp);
addLog(selectedApp.isRooted
? 'Installing patched file using root method...'
: 'Installing patched file using nonroot method...');
bool isSucess =
await locator<PatcherAPI>().installPatchedFile(selectedApp);
if (isSucess) {
addLog('Done');
} else {
addLog('An error occurred! Aborting...');
}
}
}