Repository navigation
开机后读客体时钟源改用 root:shell 用户读不到 - #173
Merged
Merged
Conversation
0.41.0 候选的发版回归里,每次开机都只记到「读不到客体时钟源(…Permission denied…)」:SELinux 不让 adb shell 用户读 /sys/devices/system/clocksource/clocksource0/。改成和读内核日志一样用 su 0;读失败时记录里的 available 不再留报错文字。 Refs ModAVD/ModAVD#110
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.
Refs ModAVD/ModAVD#110
#171 加的「开机后记下客体时钟源」在 0.41.0 候选包的发版回归里没起作用:5 次开机都只记到「读不到客体时钟源(…Permission denied…)」。Android 14 Google APIs 镜像上 SELinux 不让 adb shell 用户读
/sys/devices/system/clocksource/clocksource0/,以 root 读到的是tsc。su 0 sh -c '…',和后面读内核日志一样用 root。available不再留报错文字。su 0 sh -c;「Permission denied」的输出按读不到处理。go vet ./internal/emu/、go test ./internal/emu/ -run Clocksource通过。实机在这一版的发版回归里重测。