Reputation: 7510
I'm developing a SU-aware app for Android, and found that SELinux context configuration and policies on some devices are slightly different than others.
Is there any public or hidden API of Android SDK to query SELinux context of a specified file, like what "ls -Z" provides in shell?
Upvotes: 3
Views: 2872
Reputation: 1586
Look at this.
https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/os/SELinux.java
And maybe You know how to set SELinux scontext for Android Application from store. I want change utrusted_app for my custom domain.
Upvotes: 4