sm7250-common: overlay: enable oem fast charge

Signed-off-by: chandra <chandra.chaganti@hotmail.com>
This commit is contained in:
Chandra Chaganti
2020-04-18 06:32:47 +02:00
committed by KakatkarAkshay
parent cbdaae6070
commit 424e901ea2
2 changed files with 6 additions and 1 deletions

View File

@@ -68,4 +68,7 @@
<!-- Shows the required view for in-display fingerprint --> <!-- Shows the required view for in-display fingerprint -->
<bool name="config_supportsInDisplayFingerprint">true</bool> <bool name="config_supportsInDisplayFingerprint">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>
</resources> </resources>

2
sepolicy/vendor/system_server.te vendored Normal file
View File

@@ -0,0 +1,2 @@
# Allow system_server to read Fast Charging status
allow system_server vendor_sysfs_battery_supply:file { getattr open read };