commit | 2255e8ed7785ce2570e2908536ee3d9d1a5a2ebc | [log] [tgz] |
---|---|---|
author | Kalesh Singh <kaleshsingh@google.com> | Wed Dec 14 11:24:56 2022 -0800 |
committer | Kalesh Singh <kaleshsingh@google.com> | Wed Dec 14 11:25:01 2022 -0800 |
tree | ed9814730bebba89801d023386ebba3f28679e6a | |
parent | f6fe4fc9fa0e326d656abdc094646687517f6e8c [diff] |
init: Take wakelock on zygote restart If the framework is restarting (and cannot yet aquire wakelocks to block suspend). Take a kernel wakelock to allow the system to make sufficient progress before autosuspend can be triggered. The wakelock is later disable when the framework has and invokeds enableAutosuspend() on the suspend service. Bug: 255898234 Test: adb shell "echo mem > /sys/power/state && killall system_server" Change-Id: Id8cff6564ef05d8c22a8264c51dd313263cb6a9d