From a6287e33e1a49563207c80ede90fc83019c0e3b9 Mon Sep 17 00:00:00 2001 From: SagarMakhar Date: Thu, 13 Jan 2022 22:47:27 +0300 Subject: [PATCH] sm8250-common: init: Enable fastchg_fw_update and ui_soc_decimal on boot * `fastchg_fw_update` seems to be needed to initialize VOOC / Warp charging. * `ui_soc_decimal` isn't exactly needed, as it seems to be more for enabling the ability to calculate decimal percentages for remaining battery capacity on the lockscreen for Oxygen OS. Nevertheless, it doesn't seem to cause harm to enable this anyway. Change-Id: I03dd1abe9c2c7be0b7b7576721b6f6338f1afd46 --- init/init.oplus.rc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init/init.oplus.rc b/init/init.oplus.rc index 2fce350..d4c6730 100644 --- a/init/init.oplus.rc +++ b/init/init.oplus.rc @@ -5,6 +5,10 @@ # on fs + # Charger + write /proc/fastchg_fw_update 1 + write /proc/ui_soc_decimal 1 + # Update touchpanel firmware in case we ship newer firmware in /odm write /proc/touchpanel/tp_fw_update 0