HuskyDG / magisk-files

1.89k stars 78 forks source link

[issue] no su binary #81

Closed Pro2stinger closed 5 months ago

Pro2stinger commented 5 months ago

Su is not in /system/bin. here's an example

~ $ type -a su
su is /data/data/com.termux/files/usr/bin/su
su is /debug_ramdisk/su
su is /apex/com.android.runtime/bin/su
su is /data/mkuser/usr/bin/su
~ $
Pro2stinger commented 5 months ago

magisk_log_2024-01-13T19.49.06.log R6592CA0F-kitsune (26404) (D)

DanGLES3 commented 5 months ago

That's intentional, it's stated in the changelogs

"Kitsune 26404+ has changed the mounting su location from /system/bin to /apex/com.android.runtime/bin. This is to reduce bind mount. For most apps (that don't change/hardcode PATH variable), this change should not break anything"

Pro2stinger commented 5 months ago

it did break some things such as termux. I just fixed this by adding /debug_ramdisk to path. there should be an option to mount su anywhere you want and allow multiple.

DanGLES3 commented 5 months ago

it did break some things such as termux. I just fixed this by adding /debug_ramdisk to path. there should be an option to mount su anywhere you want and allow multiple.

Actually Termux did release an update to its internal packages to fix that, you just had to run

pkg upgrade

HuskyDG commented 5 months ago

You definitely need to read full changelog before installing or updating any software, not just Magisk.