I used to be able to run systrace on my Nexus 6, but recently it stopped working (probably after one of the recent monthly updates): systrace hangs trying to download the trace off my device.
In adb logcat
, I see a bunch of lines like
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
I know systrace uses debugfs
, and this appears to be a SELinux permission issue (see https://source.android.com/security/selinux/validate.html). Has anyone got this working again?