Skip to content Skip to sidebar Skip to footer

Android SELinux Errors In Logcat

I keep getting these strange errors in my logcat. Not only do I have no idea what they mean, but no idea what is causing them. They appear when my app first starts. > E/SELinu

Solution 1:

I had the same problem with Titanium Appcelerator and I realized I had 2 debug sessions running. So, in eclipse I had to close them by clicking the "Remove Launch button" at the bottom and start a new one fresh. Also make sure the app is closed on your device before you launch.


Solution 2:

These messages are likely from the selinux Zygote modifications and are harmless.

When the Zygote forks and specializes to run your apk it transitions all applications into various SELinux domains before giving your application control. The version error is about a missing version file and will not result in any fatal errors. The load message isn't really an error but informational. IIRC the last message never existed and likely added by an OEM or was removed at some point.

The libselinux code that contains this functionality is here:

https://android.googlesource.com/platform/external/libselinux/+/master/src/android.c

A book called Exploring SE for Android covers these internals in great detail (authored by me). https://www.packtpub.com/networking-and-servers/exploring-se-android


Post a Comment for "Android SELinux Errors In Logcat"