mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-23 20:45:31 -04:00
universal7885: Address various selinux denials
Also fix some mistakes
This commit is contained in:
parent
f717debf14
commit
1a96e0b036
10 changed files with 24 additions and 10 deletions
|
|
@ -65,13 +65,12 @@ class HealthImpl : public Health {
|
|||
file.open(sysfs);
|
||||
Result result = Result::SUCCESS;
|
||||
if (file.is_open()){
|
||||
std::string value;
|
||||
getline(file, value);
|
||||
getline(file, ret);
|
||||
file.close();
|
||||
} else {
|
||||
result = Result::NOT_FOUND;
|
||||
}
|
||||
ALOGI ("%s: sysfs : %s, returns : %s", __func__, sysfs, ret.c_str());
|
||||
ALOGI ("%s: sysfs : %s, returns : %s", __func__, sysfs.c_str(), ret.c_str());
|
||||
struct callBack cb = { result, ret };
|
||||
return cb;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue