sm8150-common: Enable OEM fast charge detection

ref: 6c9af65b5b

Change-Id: I1eb33ada5fb66617b78cb95ccf32c8885a1b9b0c
This commit is contained in:
timocapa 2023-03-07 01:02:06 +01:00 committed by TimoDo
parent 3fad6c3ad0
commit 97454f0614
2 changed files with 9 additions and 0 deletions

View File

@ -65,4 +65,10 @@
<!-- Whether to intercept inputs on screen off. -->
<bool name="config_enableKeyHandler">true</bool>
<!-- Path to fast charging status file to detect whether an oem fast charger is active -->
<string name="config_oemFastChargerStatusPath" translatable="false">/sys/class/power_supply/battery/fastchg_status</string>
<!-- Expected value from fast charging status file -->
<string name="config_oemFastChargerStatusValue" translatable="false">1</string>
</resources>

View File

@ -1 +1,4 @@
allow system_server { proc_sensor proc_ultrasound proc_touchpanel }:dir search;
# allow system server to read fast charge node
allow system_server vendor_sysfs_battery_supply:file { getattr open read };