mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-24 04:45:32 -04:00
rootdir: Drop chown fastcharge sysfs to system
Also fix errors of aidl
This commit is contained in:
parent
497fa53db9
commit
4296d27bea
4 changed files with 3 additions and 13 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue