androidlogcatpermission-deniedselinux

LogCat - E/SELinux: avc: denied { find }


LogCat shows me this message every second

Any ideas on how to repair this error?

2021-01-17 17:41:08.905 174-174/? E/SELinux: avc:  denied  { find } for pid=25449 uid=2000 name=car_service scontext=u:r:shell:s0 tcontext=u:object_r:default_android_service:s0 tclass=service_manager permissive=0
2021-01-17 17:41:09.903 174-174/? E/SELinux: avc:  denied  { find } for pid=25455 uid=2000 name=car_service scontext=u:r:shell:s0 tcontext=u:object_r:default_android_service:s0 tclass=service_manager permissive=0

Solution

  • This is a SELinux denial. You can ignore it as it won't affect your app. There isn't anything you can do about it (at a user level).

    If you are using a custom ROM, the maintainer needs to update their sepolicy.

    If you are the maintainer, there are detailed guides on how to understand the denials and write the appropriate the rules for them. One such guide is https://web.archive.org/web/20210116111344/https://msfjarvis.dev/posts/understanding-and-resolving-selinux-denials-on-android/.

    If you have any specific doubts in writing the correct rule for this, you can update the question.