mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-23 12:35:33 -04:00
universal7885: Address SELinux denials
* Now boots with enforcing kernel
This commit is contained in:
parent
c7f80dea23
commit
7329c87196
17 changed files with 50 additions and 30 deletions
|
|
@ -16,14 +16,3 @@ Java_com_eurekateam_samsungextras_interfaces_SELinux_getSELinux(JNIEnv *env, jcl
|
|||
int ret = service->readSELinuxstats();
|
||||
return ret;
|
||||
}
|
||||
extern "C"
|
||||
JNIEXPORT void JNICALL
|
||||
Java_com_eurekateam_samsungextras_interfaces_SELinux_setSELinux(JNIEnv *env, jclass clazz,
|
||||
jint enable) {
|
||||
android::sp<ISELinux> service = ISELinux::getService();
|
||||
if (enable == 1){
|
||||
service->setSELinuxWritable(Enable::ENABLE);
|
||||
}else{
|
||||
service->setSELinuxWritable(Enable::DISABLE);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue