Merge "Set /sys/power/wake_lock permissions on init." am: e75c6c841b am: b00894dc64

am: b95867eb30

Change-Id: Id2391be3c5f5f1cd735f09855e86faae2d3d8d93
This commit is contained in:
Tri Vo 2019-07-16 19:16:34 -07:00 committed by android-build-merger
commit f474068ae0
1 changed files with 5 additions and 4 deletions

View File

@ -295,6 +295,11 @@ on init
chown system system /sys/power/wakeup_count
chmod 0660 /sys/power/state
chown radio wakelock /sys/power/wake_lock
chown radio wakelock /sys/power/wake_unlock
chmod 0660 /sys/power/wake_lock
chmod 0660 /sys/power/wake_unlock
# Start logd before any other services run to ensure we capture all of their logs.
start logd
@ -698,10 +703,6 @@ 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 radio wakelock /sys/power/wake_lock
chown radio wakelock /sys/power/wake_unlock
chmod 0660 /sys/power/wake_lock
chmod 0660 /sys/power/wake_unlock
chown system system /sys/devices/system/cpu/cpufreq/interactive/timer_rate
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/timer_rate