commit | f7c7f996193a35113c2d7b7bf27a3bbf90d2f469 | [log] [tgz] |
---|---|---|
author | Philip Junker <philipjunker@google.com> | Thu Mar 10 12:01:20 2022 +0000 |
committer | Philip Junker <philipjunker@google.com> | Wed Mar 23 09:43:55 2022 +0000 |
tree | b2878002fa8ec3f59169b67a7f48050b3fe83c0a | |
parent | b2eae2267386400421c63933182cebaee54998f4 [diff] |
Restrict device wakeup via PowerManager.ACQUIRE_CAUSES_WAKEUP. The default value of OP_TURN_SCREEN_ON is still MODE_ALLOWED, which means the user needs to actively disallow the special app access for an app to lose the functionality of turning the screen on via wakelock. Only wake the power group linked to the wake lock if valid power group id is provided. Bug: 216114297 Bug: 219568783 Test: manual Change-Id: Ib6df6e6c4f71adbb9bc8fd3db80708e4af0c40cc