Merge "charger: Allow to rw /sys/power/[state,wakeup_count]" into qt-dev
This commit is contained in:
commit
83e52ce905
1 changed files with 5 additions and 3 deletions
|
|
@ -280,6 +280,11 @@ on init
|
|||
write /dev/cpu_variant:${ro.bionic.2nd_arch} ${ro.bionic.2nd_cpu_variant}
|
||||
chmod 0444 /dev/cpu_variant:${ro.bionic.2nd_arch}
|
||||
|
||||
# Allow system processes to read / write power state.
|
||||
chown system system /sys/power/state
|
||||
chown system system /sys/power/wakeup_count
|
||||
chmod 0660 /sys/power/state
|
||||
|
||||
# Start logd before any other services run to ensure we capture all of their logs.
|
||||
start logd
|
||||
|
||||
|
|
@ -671,11 +676,8 @@ on boot
|
|||
chown radio system /sys/android_power/acquire_partial_wake_lock
|
||||
chown radio system /sys/android_power/release_wake_lock
|
||||
chown system system /sys/power/autosleep
|
||||
chown system system /sys/power/state
|
||||
chown system system /sys/power/wakeup_count
|
||||
chown radio wakelock /sys/power/wake_lock
|
||||
chown radio wakelock /sys/power/wake_unlock
|
||||
chmod 0660 /sys/power/state
|
||||
chmod 0660 /sys/power/wake_lock
|
||||
chmod 0660 /sys/power/wake_unlock
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue