android_device_samsung_a20/universal7885-common/apps/SamsungParts/jni/SELinuxBridge.cpp
roynatech2544 098179eabb
universal7885: run clang-format based on system-clang-format
* On every *.cpp *.h files

Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:02:50 +09:00

17 lines
573 B
C++

#include <hardware/hardware.h>
#include <hidl/HidlSupport.h>
#include <hidl/LegacySupport.h>
#include <hidl/Status.h>
#include <vendor/eureka/security/selinux/1.0/ISELinux.h>
#include "jni.h"
using android::sp;
using vendor::eureka::security::selinux::V1_0::Enable;
using vendor::eureka::security::selinux::V1_0::ISELinux;
extern "C" JNIEXPORT jint JNICALL
Java_com_eurekateam_samsungextras_interfaces_SELinux_getSELinux(JNIEnv* env, jclass clazz) {
android::sp<ISELinux> service = ISELinux::getService();
int ret = service->readSELinuxstats();
return ret;
}