mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-04 19:10:47 -05:00
The module zip's display name and path were pasted into the root shell command that runs the installer, inside single quotes. The display name comes from the content provider, which belongs to another app for external install requests. A name with an apostrophe broke the install, and a crafted name could run arbitrary commands as root. Print the header line directly to the terminal instead of with echo, without control characters, and quote the paths with a new shellQuoted() helper, which also replaces the manual escaping in runSuCommand. Assisted-by: Claude Opus 5.5