Repository navigation
KernelSU 跟进:正式模块发布前不显示入口,补风险提示,更新说明改短 - #224
Merged
Merged
Conversation
中文 67 字、英文 161 个字符,超过 tools/pubrel 的 60 / 120 上限;改成实验功能、按实例启用并导入模块、模块在客体内以 root 运行,去掉「受信的模块」的说法,行尾指向 issue。 Refs ModAVD/ModAVD#124
正式的 kernelsu.ko 还没钉值时下载不可用,实例菜单的「启用 KernelSU(实验)…」和「电脑检查」的 KernelSU 一块都走不通。现在只在 GET /api/components 的 kernelsu 是 ready 或 download_available 时显示(store.js ksuOffered),页面打开时就读一次组件状态;已经启用过 KernelSU 的实例照旧有「导入模块」「移除」。命令行不藏:fetch --kernelsu 在没钉值时说正式模块尚未发布、自己编的怎么导入;网页导入的 kernelsu.ko 被拒时,建议改成网页用户能照做的说法。假数据页面加了 ksu=none|ready|download。 Refs ModAVD/ModAVD#124
启用对话框和「电脑检查」的 KernelSU 一块都加一段提示:游戏和应用可能检测到 root,有的游戏会因此拒绝运行或处罚账号,导入的模块以 root 运行;开不了机时先关机,再在「更多操作」里移除 KernelSU,或运行 modavd ksu <编号> uninstall 恢复原版启动。卡片说明不再点名具体模块。README 那半句改成启用后原有的 root 痕迹还在、还会多出 KernelSU 管理器应用等痕迹。 Refs ModAVD/ModAVD#124
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
这个 PR 叠在 #221(按实例启用 KernelSU、导入模块)上,从它的头
d138802切出。#221 合并以后,这里只剩下面三个提交;在那之前,diff 里会连着 #221 的改动一起显示。改了什么
changelog.d/kernelsu-module-import.feat.md)(ModAVD/ModAVD#124),这一段不算长度。OfficialLKMSize/OfficialLKMSHA256要等 ModAVDKernelSU 发了 Release 才填,在那之前download_available一直是假,界面入口走不通。具体是:下载按钮是灰的,原因只写在悬停提示里;网页导入.ko一律被拒,给的建议却是命令行参数;而每台 Windows 实例的菜单里都有「启用 KernelSU(实验)…」。GET /api/components的kernelsu.ready或kernelsu.download_available为真时显示入口(store.js的ksuOffered())。管的是两处:实例菜单里的「启用 KernelSU(实验)…」,和「电脑检查」里的 KernelSU 一块。import-ksu --lkm-sha256导入过自己编的模块以后,界面入口照常出现。钉值填上以后,入口自动出现。components fetch --kernelsu在钉值为空时报「正式的 KernelSU 模块尚未发布,还不能下载」,并给出import-ksu … --lkm-sha256的完整命令。kernelsu.ko被拒时,建议按情况写:正式模块还没发布,就说网页还不能导入它,自己编的模块要用哪条命令导入;已经发布,就说可以点「下载 KernelSU 组件」获取。命令行导入的建议没改。ksu=none|ready|download参数。modavd ksu <编号> uninstall,恢复原版启动。实例关着时,uninstall 只删实例的 KernelSU ramdisk 和记录,不开机。internal/i18n/locales/en/里。怎么验证的
gofmt -l .:没有输出。go vet ./...:本机(Windows)、GOOS=darwin、GOOS=linux都通过。go test -count=1 -skip "TestProductionRootReadOnly|TestTrayLifetime" ./internal/kernelsu/... ./internal/components/... ./internal/cli/... ./internal/ui/... ./internal/i18n/...:全过。新加了几条测试:TestKernelSULKMAdvice:命令行和网页两种来源、正式模块发布前后,被拒的.ko给的建议各是什么;TestFetchKernelSURequiresMatchingDownloads:补上了钉值为空时报错的文字;TestRealDiagBackendKernelSUFromPage:网页导入会带上「来自网页」。界面测试
scripts/test_*.mjs逐个文件跑,11 个文件 89 项全过。新加的test_kernelsu_ui.mjs(8 项)测这几件事:把菜单和「电脑检查」换回
d138802的写法再跑,其中 3 项会失败。scripts/repo_checks.py(REPO_CHECK_BASE=d138802):通过。在假数据页面上用无头浏览器看了三种情况:
启用对话框也看了。
没验证的
modavd ksu <编号> uninstall退回,这条路是读代码确认的,没有实际做一遍。实例开着但卡在开机循环时,先关机这一步要靠管理器的关机或强制关机。.ko。Refs ModAVD/ModAVD#124