KernelSU
KernelSU copied to clipboard
Unable to pass debug flags to shell while flashing module
Describe the bug
When flashing a module through KernelSU Manager, set -x doesn't work. No debug lines are outputted in the log
To Reproduce Steps to reproduce the behavior:
- Add
set -xin module - Flash in KernelSU Manager
Expected behavior Saved log file to have debug lines
Screenshots If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):
- Device: WSA
Additional context Add any other context about the problem here.
Alternatively, can output to separate file:
exec 2>/sdcard/Download/$MODID-debug.log
set -x
Workaround for now
Does this work?
exec 2>&1
set -x
Does this work?
exec 2>&1 set -x
It does but not desired behavior, it displays the debug info in the manager. The behavior in magisk manager with just setting set -x is that regular output will output to manager and the debug info would output to the log that you could then save from manager.