commit | 98062dcd89da6913039da954924ca430b6914c52 | [log] [tgz] |
---|---|---|
author | Kalesh Singh <kaleshsingh@google.com> | Mon Feb 22 15:10:45 2021 -0500 |
committer | Kalesh Singh <kaleshsingh@google.com> | Mon Feb 22 17:24:51 2021 -0500 |
tree | 6279055adbd5e9fcb4be124b2a19568dedb3c800 | |
parent | 810bcca4d05eb1283cbac0567c673d2dae76e893 [diff] |
vold: Use Wakelock::tryGet() Acquiring a wakelock can fail if the suspend service is unavailable. Explicitly check that wakelock was acquired before performing operations that require the device to stay on. Bug: b/179229598 Test: Boot test on Pixel 4 device Change-Id: If30087223e44098801a31d1bfd239ac22e891abe