mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-22 12:05:32 -04:00
universal7885: parts: Refactor battery fragment
* Show live data of battery Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
This commit is contained in:
parent
419f6646a3
commit
c813e0984a
22 changed files with 135 additions and 393 deletions
|
|
@ -41,7 +41,7 @@ Return<void> FlashBrightness::setFlashlightEnable(parts::V1_0::Number enable) {
|
|||
|
||||
Return<void> FlashBrightness::setFlashlightWritable(parts::V1_0::Value value) {
|
||||
std::ofstream file;
|
||||
std::string writevalue = std::to_string((int) value);
|
||||
std::string writevalue = std::to_string((int)value);
|
||||
file.open("/sys/class/camera/flash/torch_brightness_lvl");
|
||||
file << writevalue;
|
||||
file.close();
|
||||
|
|
|
|||
Loading…
Reference in a new issue