Added in API level 60
public final class

SELinuxHelper

extends Object
java.lang.Object
   ↳ de.robv.android.xposed.SELinuxHelper

Class Overview

A helper to work with (or without) SELinux, abstracting much of its big complexity.

Summary

Public Methods
static BaseService getAppDataFileService()
Retrieve the service to be used when accessing files in /data/data/*.
static String getContext()
Gets the security context of the current process.
static boolean isSELinuxEnabled()
Determines whether SELinux is disabled or enabled.
static boolean isSELinuxEnforced()
Determines whether SELinux is permissive or enforcing.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static BaseService getAppDataFileService ()

Added in API level 60

Retrieve the service to be used when accessing files in /data/data/*.

IMPORTANT: If you call this from the Zygote process, don't re-use the result in different process!

Returns
  • An instance of the service.

public static String getContext ()

Added in API level 60

Gets the security context of the current process.

Returns
  • A String representing the security context of the current process.

public static boolean isSELinuxEnabled ()

Added in API level 60

Determines whether SELinux is disabled or enabled.

Returns
  • A boolean indicating whether SELinux is enabled.

public static boolean isSELinuxEnforced ()

Added in API level 60

Determines whether SELinux is permissive or enforcing.

Returns
  • A boolean indicating whether SELinux is enforcing.