-
Notifications
You must be signed in to change notification settings - Fork 12.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom kernel erroneously hides magisk su file #6914
Comments
maybe related:
Anyway, try and send log without zygisk enabled. |
26101 without zygisk log |
你知道怎么用 adb 吗?如果知道的话,可以试试在管理器显示“无法获取”的时候进入 |
不能, |
有点奇怪,magisk -v 是正常的,然后执行 magisk -V 的时候 shell 死掉了? |
As yujinchen08 say, /system/bin/sh: su: inaccessible or not found |
What are the outputs of BTW, you should be able to access root in adb by |
[magisk.log](https://github.com/topjohnwu/Magisk/files/11274517/magisk.log) [magisk.log.bak.log](https://github.com/topjohnwu/Magisk/files/11274519/magisk.log.bak.log) |
Please grant su access to shell (you can reboot to restore root access, dont launch magisk app and type |
|
不好意思,我可能搞错了,即便管理器显示当前超级用户有效,但是所有su授权实际都已失效,也不能通过adb shell /system/bin/su取得授权,/bin/magisk su可以得到授权 |
show output of |
This comment was marked as outdated.
This comment was marked as outdated.
我只能在重启后几秒内通过adb shell su获得root权限,即便没有打开manager,当我再试一次的时候,su就已经不见了 |
看起来是被人删了 |
26000也是一样的问题,25200没问题。 |
This comment was marked as spam.
This comment was marked as spam.
另一个用户遭遇此问题,小米平板4,魔趣11。 |
I also have this issue with 26.1. su is present immediately after boot, but disappears some time after. The time seems to be somewhat random - sometimes it has been only a few seconds, sometimes it has lasted minutes before su disappears. Downgrading to 25.2 has fixed the issue for me. Platform is Motorola G7 Plus (lake) running lineageOS 20. |
I'm also having this problem, however I found a way to circumvent this. |
worker tmpfs is read only, any modification can only be done by the root process authorized by the user |
i found a workaround for it, and may submit a pr to fix this issue. tho we hv no idea about the root cause. are all reports from customize kernels? |
@aviraxp says it may be caused by commit LineageOS/android_kernel_motorola_msm8998@0e52c8c. And looks like all reported kernels have picked this commit. please try to revert it first. |
https://review.lineageos.org/c/LineageOS/android_kernel_motorola_msm8998/+/355841 Also reported in LineageOS discord. |
I have a kernel with kernelSU and on android i had magisk 24 after i update magisk to 26.1 the device stuck in a bootloop |
@adajoh99 Can you still confirm that it works in 25.2? Just double checking before I downgrade |
@yujincheng08, @vvb2060, @canyie or @aviraxp, would |
I don't think so. |
Same thing here. Magisk v.25.2 (stable) from Jul 21, 2022 and Magisk Canary 2717feac (25209) from Mar 2, 2023 were still fine. Getting this error since Magisk v.26.0 all the way up to the very latest Canary from Actions. Occurring in LineageOS 18.1 (A.11) and 12 (A.13) on my Nokia 6.1. All fine again after downgrading to Magisk v.25.209. No such issues on my Samsung with stock ROM which is rooted via Magisk v.27 just fine. (On my Nokia, I need to stay on a lower version of LOS for now due to a LSPosed module incompatibility. Also as expected it's not SELinux related because with both, Magisk v.25.2x and 26.0, I've looked at LineageOS Gerrirt: Revert "kernel: Only expose su when daemon is running" (355841). I admit I wouldn't know how to apply that patch from Motorola LOS to my Nokia LOS ROM, or even if that would've any chance to be successful.. I guess it would mean recompiling the ROM's kernel (?) I see you've marked this issue here as "
Apart from that, is there anything I can do to facilitate solving this issue, like providing logs from both, my phone's ROM booted w/ Magisk v.25.209, then with v.26.0? |
@aviraxp @vvb2060 it's those lines in Magisk/native/src/core/bootstages.cpp, isn't it? #82 xmount("worker", path, "tmpfs", 0, "mode=755"); Can you please point me to the commit from 25209 to 25210 where |
Hello, anyone found a workaround for this? |
Developer edit
Some custom kernels allow only writable su file, they hide su file from read-only partitions. Magisk 26 protected su as read-only, so the su file was lost.
we won't fix this.
more info: #6914 (comment)
Device:zuk z2plus
Android version:lineage OS 19.1(12L)
Magisk version name:d0c93842
Magisk version code:26101
Superuser lost after manager hibernate and wake,I must reboot make su back,but a few minutes later, Installed went N/A again.
magisk_log_2023-04-19T17.34.29.log
bugreport-lineage_z2_plus-SQ3A.220705.004-2023-04-19-18-17-18.zip
magisk_patched-26100_h2GFp.zip
It seems same as #6880
I test this build from @canyie #6880 (comment)
but after force stop magisk manager,installed went N/A too.
The text was updated successfully, but these errors were encountered: