From ad6b164d513e3bf16e1c148a88d960eff31dc214 Mon Sep 17 00:00:00 2001 From: Pun Butrach Date: Sat, 21 Oct 2023 17:46:51 +0700 Subject: [PATCH] feat: root status in export patch log (#1407) Co-authored-by: Ushie --- lib/ui/views/installer/installer_viewmodel.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/ui/views/installer/installer_viewmodel.dart b/lib/ui/views/installer/installer_viewmodel.dart index 082dd74c09..295e4b660f 100644 --- a/lib/ui/views/installer/installer_viewmodel.dart +++ b/lib/ui/views/installer/installer_viewmodel.dart @@ -139,7 +139,6 @@ class InstallerViewModel extends BaseViewModel { } Future runPatcher() async { - try { await _patcherAPI.runPatcher( _app.packageName, @@ -159,7 +158,7 @@ class InstallerViewModel extends BaseViewModel { // Necessary to reset the state of patches so that they // can be reloaded again. - _managerAPI.patches.clear(); + _managerAPI.patches.clear(); await _patcherAPI.loadPatches(); try { @@ -191,19 +190,20 @@ class InstallerViewModel extends BaseViewModel { 'Model: ${info['model']}', 'Android version: ${info['androidVersion']}', 'Supported architectures: ${info['supportedArch'].join(", ")}', - + 'Root permissions: ${isRooted ? 'Yes' : 'No'}', + '\n- Patch Info', 'App: ${_app.packageName} v${_app.version}', 'Patches version: ${_managerAPI.patchesVersion}', 'Patches: ${_patches.map((p) => p.name + (p.options.isEmpty ? '' : ' [${p.options.map((o) => '${o.title}: ${o.value}').join(", ")}]')).toList().join(", ")}', - + '\n- Settings', 'Allow changing patch selection: ${_managerAPI.isPatchesChangeEnabled()}', 'Version compatibility check: ${_managerAPI.isVersionCompatibilityCheckEnabled()}', 'Show universal patches: ${_managerAPI.areUniversalPatchesEnabled()}', 'Patches source: ${_managerAPI.getPatchesRepo()}', 'Integration source: ${_managerAPI.getIntegrationsRepo()}', - + '\n- Logs', logs, '```',