feat: root status in export patch log (#1407)

Co-authored-by: Ushie <ushiekane@gmail.com>
This commit is contained in:
Pun Butrach 2023-10-21 17:46:51 +07:00 committed by GitHub
parent 4a5510acb2
commit ad6b164d51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -139,7 +139,6 @@ class InstallerViewModel extends BaseViewModel {
}
Future<void> 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,6 +190,7 @@ 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}',