Magisk ng app crashed as exporting logs via export button
<!--
## READ BEFORE OPENING ISSUES
All bug reports require you to **USE DEBUG BUILDS**. Please include the version name and version code in the bug report.
If you experience a bootloop, attach a `dmesg` (kernel logs) when the device refuse to boot. This may very likely require a custom kernel on some devices as `last_kmsg` or `pstore ramoops` are usually not enabled by default. In addition, please also upload the result of `cat /proc/mounts` when your device is working correctly **WITHOUT MAGISK**.
If you experience issues during installation, in recovery, upload the recovery logs, or in Magisk, upload the install logs. Please also upload the `boot.img` or `recovery.img` that you are using for patching.
If you experience a crash of Magisk app, dump the full `logcat` **when the crash happens**.
If you experience other issues related to Magisk, upload `magisk.log`, and preferably also include a boot `logcat` (start dumping `logcat` when the device boots up)
**DO NOT** open issues regarding root detection.
**DO NOT** ask for instructions.
**DO NOT** report issues if you have any modules installed.
Without following the rules above, your issue will be closed without explanation.
-->
Device: Redmi Note 7 Pro (violet)
Android version: 10
Magisk version name: 14ea5cfb (30700) (D)
Magisk version code: 30700
**Description**
Magisk ng app crashed as exporting logs via the export (down arrow) button on Logs -> Magisk.
Magisk legacy app works fine, it will ask for storage permission first and then export logs normally. Magisk ng app will crash directly without asking for storage permission, but after Magisk legacy app getting the storage permission and installing ng app over the legacy app, it can export normally too.
**Reproduction Steps**
Open Magisk app -> click Logs on the button toolbar -> click Magisk tag -> click export (down arrow) button on the top right corner
<img width="1080" height="2340" alt="Image" src="https://github.com/user-attachments/assets/6d3f3503-8840-4ab3-8bff-c78072bf4a50" />
<img width="1080" height="2340" alt="Image" src="https://github.com/user-attachments/assets/be793180-c5a3-44b1-b245-75da74019794" />
**Logs**
1. Logcat as booting and after booting
[logcat_2026_05_12_08_03.txt](https://github.com/user-attachments/files/27615553/logcat_2026_05_12_08_03.txt)
[logcat_2026_05_12_08_03-1.txt](https://github.com/user-attachments/files/27615554/logcat_2026_05_12_08_03-1.txt)
2. Magisk log exported from legacy app
[magisk_log_2026-05-12T08.06.23.log](https://github.com/user-attachments/files/27615568/magisk_log_2026-05-12T08.06.23.log)
3. Magisk log exported from ng app (after granting storage permission in legacy app and install ng app over the legacy app)
[magisk_log_ng_2026-05-12T08.06.38.log](https://github.com/user-attachments/files/27615643/magisk_log_ng_2026-05-12T08.06.38.log)
1 条评论