avicii: overlay: Enable smart charging

Signed-off-by: AmolAmrit <amol.amrit03@outlook.com>
This commit is contained in:
?UTF-8?q?Ph=E1=BA=A1m=20Ti=C3=AAn=20Sinh?=
2023-04-14 23:53:25 +05:30
committed by AmolAmrit
parent 464f7e5dad
commit b08262f3ce
2 changed files with 10 additions and 0 deletions

View File

@@ -29,6 +29,10 @@ on early-boot
write /sys/bus/msm_subsys/devices/subsys11/restart_level RELATED write /sys/bus/msm_subsys/devices/subsys11/restart_level RELATED
on boot on boot
# Battery
chown system system /sys/devices/virtual/oplus_chg/battery/mmi_charging_enable
# Display # Display
chown system system /dev/oplus_display chown system system /dev/oplus_display
chown system system /sys/kernel/oplus_display/dimlayer_bl_en chown system system /sys/kernel/oplus_display/dimlayer_bl_en

View File

@@ -170,4 +170,10 @@
<!-- If true, the display will be shifted around in ambient mode. --> <!-- If true, the display will be shifted around in ambient mode. -->
<bool name="config_enableBurnInProtection">true</bool> <bool name="config_enableBurnInProtection">true</bool>
<!-- Smart charging -->
<bool name="config_smartChargingAvailable">true</bool>
<string name="config_smartChargingSysfsNode" translatable="false">/sys/devices/virtual/oplus_chg/battery/mmi_charging_enable</string>
<string name="config_smartChargingSuspendValue" translatable="false">0</string>
<string name="config_smartChargingResumeValue" translatable="false">1</string>
</resources> </resources>