[Bug修复指南]对于旧内核KernelSU不工作以及模块功能失效问题的部分解决方案 #956
Coconutat
started this conversation in
Show and tell
Replies: 4 comments 11 replies
-
对于Bug 2:
已合并修复commit :54ee400 |
Beta Was this translation helpful? Give feedback.
9 replies
-
When building with AOSP(crDroid in my case). Make sure CONFIG_OVERLAY_FS is set to “y” or CONFIG_KSU will be removed from actual .config. |
Beta Was this translation helpful? Give feedback.
1 reply
-
建议将Bug 1:SU工作但是模块不工作相关内容直接写入文档而不是仅保留在discussion内 |
Beta Was this translation helpful? Give feedback.
1 reply
-
赞 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
对于旧内核KernelSU不工作以及模块功能失效问题的部分解决方案
1.前言:
此指南献给还在用旧设备但没有自定义ROM的朋友。
针对的内核版本和安卓版本(更老的版本我没有设备,所以不一定只兼容下列):
内核版本:4.4,4.9。
安卓版本:Android 8(O),Android 9(P)。
必要前置阅读:手动集成KernelSU
提示1:如果KPROBES工作不正常,你应该放弃KPROBES,而不是死磕KPROBES。代码是死的,人是活的。
提示2:
对于手动集成,您应当把KPROBES关闭,不然会导致重启和崩溃之类的bug。
关闭的例子,在defconfig找到如下内容:
改为:
2.对部分Bug的修复:
Bug 1:SU工作但是模块不工作
解决方案:修改hook.c
代码位于:
修改的patch:security: selinux: allow init exec (kernelsu:ksud) under nosuid
Bug 2:低于安卓10的设备KernelSU显示工作但是SU授权无法正常使用且模块页面显示不支持Overlay_FS
此Bug已经在v0.6.9修复。
过时内容:
其它的bug有待继续收集...
Beta Was this translation helpful? Give feedback.
All reactions