Repository navigation
KernelSU 正式模块钉值:可以下载、启用,启用处写明关机变慢和性能降低 - #228
Merged
Merged
Conversation
钉上 ModAVDKernelSU v3.3.1-a14-6.1 附件 kernelsu.ko 的大小 259976 和 SHA-256 309e048b…4557c6。download_available 因此为真:「电脑检查」的 KernelSU 一块和实例菜单的「启用 KernelSU(实验)…」都显示,下载按钮可点,fetch --kernelsu 按钉值下载并核对;导入不是钉值的 kernelsu.ko 时报与固定清单 / 固定值不符,命令行建议 --lkm-sha256,网页建议下载按钮或命令行。没钉值时隐藏入口的行为不变,测试照旧注入测试清单守着;新加的测试守着内置清单的钉值、真实清单下拒收别的模块、显式信任仍可导入、下载请求正式地址并按钉值拒收。 启用对话框和「电脑检查」共用的风险提示加一句已知问题:启用 KernelSU 的实例每次关机多等几秒、下次开机多做一遍磁盘检查,原因还在查,链接到 ModAVD/ModAVD#309;对话框打开时焦点放在「取消」,不落到这个链接上。ksu <i> install 成功后的普通输出和 ksu 的帮助也写这句(--json 不变);components 状态行在可下载时提示 fetch --kernelsu。README 的 KernelSU 一节改成可以直接下载,加「已知问题」两条(#309 关机卸载超时,#311 系统调用变慢)。假数据页面默认改成可下载。 Refs ModAVD/ModAVD#124
启用对话框和「电脑检查」共用的风险提示、ksu <i> install 成功后的普通输出和 ksu 的帮助,在关机变慢那句后面另起一句:启用后系统调用会变慢,这台实例的性能会比不启用时低一些,链接到 ModAVD/ModAVD#311(--json 不变)。README 的已知问题第二条补上量性能、跑分时用没启用 KernelSU 的实例;测试守着新加的这句。 Refs ModAVD/ModAVD#124 Refs ModAVD/ModAVD#311
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.
改了什么
internal/kernelsu/profile.go填上 ModAVDKernelSUv3.3.1-a14-6.1附件a14-api34-6.1_kernelsu-v3.3.1_kernelsu.ko的大小和 SHA-256(下载地址原来就指向它)。download_available为真:「电脑检查」里显示 KernelSU 一块,下载按钮可点;Windows 实例的「更多操作」里显示「启用 KernelSU(实验)…」。modavd components fetch --kernelsu不再报「尚未发布」,而是去下载,下载回来按钉的大小和 SHA-256 核对,对不上就拒收。kernelsu.ko:报「与固定清单 / 固定值不符」。命令行的建议是用--lkm-sha256显式信任自己编的;网页的建议是点下载按钮,或者到命令行带--lkm-sha256导入。modavd components的状态行在可下载时提示components fetch --kernelsu。modavd ksu <i> install成功后的普通输出、ksu的帮助里也写了这句。--json的结构和warnings不变。ksu <i> install的普通输出、ksu的帮助、README)加一句:启用 KernelSU 后系统调用会变慢,这台实例的性能会比不启用时低一些;README 写明量性能时用没启用 KernelSU 的实例。测试守着这句和它的链接。internal/ui/web/dev/mock.js)默认改成「可下载」,内核模块的大小改用钉的值。为什么这一版放出来
原计划是正式模块发布前不放出入口。ModAVD/ModAVD#309 查下来是 P1,但不挡发版:关机多等几秒、下次开机多一遍磁盘检查,验证时没有看到丢数据。所以这一版照常放出 KernelSU(实验),在启用的地方、命令行和 README 里如实写明这个问题,原因接着在 ModAVD/ModAVD#309 查。
钉的值和依据
259976字节,SHA-256309e048bc2aebcfa493c2b43274f4298c9105438c3be48d23be50b93aa4557c6。v3.3.1-a14-6.1已发布;按管理器里写死的下载地址取回来的文件,大小和 SHA-256 与钉的值一致。怎么验证的
gofmt -l .为空;go vet ./...在本机、GOOS=darwin、GOOS=linux下都过了。go test -count=1 -skip "TestProductionRootReadOnly|TestTrayLifetime":kernelsu、components、cli、ui、emu、i18n、report 这几个包都过了(含 TestCatalog)。新加的测试:--lkm-sha256显式信任以后能导入;components状态是「可下载」;fetch --kernelsu请求正式地址、按钉的大小下载,内容不对就拒收,KernelSU 也不会变成就绪。下载用桩,不联网;ksu <i> install的普通输出带已知问题,--json不带、warnings为空;status不重复这句。scripts/test_*.mjs全部 11 个文件都过了。test_kernelsu_ui.mjs加了两项:「电脑检查」的 KernelSU 一块里有已知问题和指向 KernelSU:加载内核模块后每次关机 /data 都卸不干净(卸载超时,下次开机回放日志并全盘检查) ModAVD#309 的链接;启用对话框的初始焦点是「取消」。scripts/repo_checks.py(基准 upstream/main)过了。没验证的
Refs ModAVD/ModAVD#124