init: add permission for charging_policy access
Bug: 251425963 Test: write charging_policy sysfs node successfully Change-Id: I523e27088819c479cd323333729f65aae2e33124 Signed-off-by: Jack Wu <wjack@google.com>
This commit is contained in:
parent
d6d0b7d2ca
commit
fb8fb609b0
1 changed files with 3 additions and 0 deletions
|
@ -277,6 +277,9 @@ on init
|
||||||
# Adaptive charge
|
# Adaptive charge
|
||||||
chown system system /sys/class/power_supply/battery/charge_deadline
|
chown system system /sys/class/power_supply/battery/charge_deadline
|
||||||
|
|
||||||
|
# Charging policy
|
||||||
|
chown system system /sys/class/power_supply/battery/charging_policy
|
||||||
|
|
||||||
# Battery Defender
|
# Battery Defender
|
||||||
chown system system /sys/devices/platform/google,battery/power_supply/battery/bd_trickle_cnt
|
chown system system /sys/devices/platform/google,battery/power_supply/battery/bd_trickle_cnt
|
||||||
chown system system /sys/devices/platform/google,battery/power_supply/battery/bd_trickle_dry_run
|
chown system system /sys/devices/platform/google,battery/power_supply/battery/bd_trickle_dry_run
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue