Merge "Set /sys/power/wake_lock permissions on init."
This commit is contained in:
commit
e75c6c841b
1 changed files with 5 additions and 4 deletions
|
|
@ -295,6 +295,11 @@ on init
|
||||||
chown system system /sys/power/wakeup_count
|
chown system system /sys/power/wakeup_count
|
||||||
chmod 0660 /sys/power/state
|
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 before any other services run to ensure we capture all of their logs.
|
||||||
start logd
|
start logd
|
||||||
|
|
||||||
|
|
@ -689,10 +694,6 @@ on boot
|
||||||
chown radio system /sys/android_power/acquire_partial_wake_lock
|
chown radio system /sys/android_power/acquire_partial_wake_lock
|
||||||
chown radio system /sys/android_power/release_wake_lock
|
chown radio system /sys/android_power/release_wake_lock
|
||||||
chown system system /sys/power/autosleep
|
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
|
chown system system /sys/devices/system/cpu/cpufreq/interactive/timer_rate
|
||||||
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/timer_rate
|
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/timer_rate
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue