code: public static boolean isSelinuxFlagInEnabled() {
          try {
              Class<?> c = Class.forName("android.os.SystemProperties");
              Method get = c.getMethod("get", String.class);
              String selinux = (String) get.invoke(c, "ro.build.selinux");
              return "1".equals(selinux);
          } catch (Exception ignored) {
  
          }
          return false;
      }
docs: In Development - an idea of ours was to check the if selinux is enforcing - this could be disabled for some rooting apps
  Checking for selinux mode
  
  @return true if selinux enabled