Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: root status in export patch log #1407

Merged
merged 4 commits into from
Oct 21, 2023
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions lib/ui/views/installer/installer_viewmodel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ class InstallerViewModel extends BaseViewModel {
}

Future<void> runPatcher() async {

try {
await _patcherAPI.runPatcher(
_app.packageName,
Expand All @@ -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 {
Expand Down Expand Up @@ -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'}',
validcube marked this conversation as resolved.
Show resolved Hide resolved
validcube marked this conversation as resolved.
Show resolved Hide resolved

'\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(", ")}',
validcube marked this conversation as resolved.
Show resolved Hide resolved

'\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()}',
validcube marked this conversation as resolved.
Show resolved Hide resolved

'\n- Logs',
logs,
'```',
Expand Down