diff options
author | Tri Vo <trong@google.com> | 2019-07-16 14:31:55 -0700 |
---|---|---|
committer | Michael Bestas <mkbestas@lineageos.org> | 2020-01-14 17:21:52 +0200 |
commit | 7d05926dc46b1379828c5b959ced7a24d15acd94 (patch) | |
tree | dcbcd9949d162854d60e95261fb95178e8dd9517 /rootdir | |
parent | 250a290dedabe55c72d790fca1ce311534b7bf18 (diff) | |
download | system_core-7d05926dc46b1379828c5b959ced7a24d15acd94.tar.gz system_core-7d05926dc46b1379828c5b959ced7a24d15acd94.tar.bz2 system_core-7d05926dc46b1379828c5b959ced7a24d15acd94.zip |
Set /sys/power/wake_lock permissions on init.
system_suspend need to be an early_hal as it's required before storage
encryption can get unlock on FDE devices.
/sys/power/wake_lock is a dependency of system_suspend (only in Q and
earlier). Permissions on this file need to be set early enough.
Bug: 136777986
Bug: 133175847
Test: boot blueline
Change-Id: I8a9d3374b327e451fb98d2279d1bac9477a9560d
Diffstat (limited to 'rootdir')
-rw-r--r-- | rootdir/init.rc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc index 9c239fa20..58a83e091 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -288,6 +288,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 @@ -689,10 +694,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 |