Their is no externally available api... But look into libselinux src
android.c. in there is a static function that computes it. You could extern
this....and if needed write a jni binding.
On Nov 8, 2013 9:55 AM, "Gabriele Scotti" <[email protected]> wrote:
> Hi SEAndroid,
>
> I want to know if there is a way to get the security context of an
> installed apk
> before starting the application, my goal is to use this function defined
> in the SELinux.java file
> SELinux.checkSELinuxAccess("domainA","domainB","binder","call")
> I can retrieve the security context of domainA through the function
> getPidContext()
> because the application is already started, but I can't use the same one
> to retrieve the domainB context.
>
> Thank you for the reply
>