rootdir: Drop chown fastcharge sysfs to system

Also fix errors of aidl
This commit is contained in:
roynatech2544 2022-10-08 00:04:29 +09:00
commit 4296d27bea
4 changed files with 3 additions and 13 deletions

View file

@ -58,12 +58,13 @@ constexpr const char *FM_FREQ_SEEK =
break;
case GetType::GET_TYPE_FM_SYSFS_IF:
*_aidl_return = access("/sys/devices/virtual/s610_radio/s610_radio/", F_OK);
break;
default:
break;
};
return ndk::ScopedAStatus::ok();
}
:ndk::ScopedAStatus FMSupport::setValue(SetType type, int value) {
::ndk::ScopedAStatus FMSupport::setValue(SetType type, int value) {
switch (type) {
case SetType::SET_TYPE_FM_FREQ:
FileIO::writeline(FM_FREQ_CTL, freq * 1000);