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

@ -49,15 +49,7 @@ static inline const char *BatterySysToPath(BatterySys type) {
::ndk::ScopedAStatus BatteryStats::setBatteryWritable(BatterySys stats,
bool value) {
bool FastCharge = false;
if (FastCharge)
seteuid(ANDROID_SYSTEM_UID);
FileIO::writeline(BatterySysToPath(stats), value ? 1 : 0);
if (FastCharge)
seteuid(ANDROID_ROOT_UID);
return ::ndk::ScopedAStatus::ok();
}