mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-05 03:20:46 -05:00
Every script running in the context of Magisk is supposed to run in BusyBox ash with standalone mode. Since module actions and installs run in a PTY, they ran in /system/bin/sh instead: busybox script starts $SHELL, which su sets to /system/bin/sh, and ASH_STANDALONE was never set. Module installers recover by re-executing themselves in BusyBox, but action.sh has no such fallback. Run the PTY command in BusyBox ash with ASH_STANDALONE=1, which has to be set before ash starts. Also run the action from the module's directory name, quoted, rather than from the id in module.prop, which can differ from it. Assisted-by: Claude Opus 5.5