Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b00894dc authored by Tri Vo's avatar Tri Vo Committed by android-build-merger
Browse files

Merge "Set /sys/power/wake_lock permissions on init."

am: e75c6c84

Change-Id: I300152717163bc5419015c03b5dc23a2beb62422
parents 90478358 e75c6c84
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -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

@@ -696,10 +701,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