我曾经能够在我的 Nexus 6 上运行 systrace,但最近它停止工作(可能是在最近的每月更新之一之后):systrace 挂起,试图从我的设备上下载跟踪。
在adb logcat
,我看到一堆像
05-26 14:57:08.567 4933 4933 W <my.app.package>: type=1400 audit(0.0:23388710): avc: denied { getattr } for comm=66627379737472616365206E6F7469 path="/sys/kernel/debug/tracing/trace" dev="debugfs" ino=4158 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:debugfs:s0 tclass=file permissive=0
我知道 systrace 使用debugfs
,这似乎是 SELinux 权限问题(请参阅https://source.android.com/security/selinux/validate.html)。有没有人让这个再次工作?