yc9559 / uperf

Userspace performance controller for android
Apache License 2.0
3.22k stars 111 forks source link

SfAnalysis 在6ecc04a4-alpha上无法正常使用 #186

Open ghost opened 1 year ago

ghost commented 1 year ago

alpha新版本会导致部分模块失效,请问是否考虑适配

ljcbaby commented 1 year ago

同样情况

haitangyijiu806 commented 1 year ago

最新的magisk 26.0 SfAnalysis也不能正常使用。

xsm1997 commented 1 year ago

看了下log,貌似跟selinux相关。

新版magisk给mount加了nosuid的flag,导致需要新的selinux规则,才能生效。

解决方案: allow init surfaceflinger process2 nosuid_transition

加这一行到模块目录里的sepolicy.rule文件,即可不卡第一屏。在fdac22ba-delta上测试通过,不加卡第一屏,加了可以正常启动。

有意思的是,Magisk 26.1已经没有这个问题了,nosuid的flag也没了,不需要规则了。然而没看到相关说明,commits里面也没看到,不知道是刻意解决bug,还是不经意间引入的,期待大佬解答。