commit | d92935f0f30bf6405b39141f324ff6797d63bfae | [log] [tgz] |
---|---|---|
author | Philip Junker <philipjunker@google.com> | Tue Apr 18 17:38:17 2023 +0200 |
committer | Philip Junker <philipjunker@google.com> | Thu Jun 01 15:40:22 2023 +0200 |
tree | 19d72d9c92b070fbaae8a9062b2c1c1cc7fab931 | |
parent | 39169f811534ff3a4341697b206125951ada6e34 [diff] |
Allow ACQUIRE_CAUSES_WAKEUP for apps targeting pre-U sdks Use PermissionChecker#checkPermissionForDataDelivery() instead of checking the permission and appop separately. Add PowerPropertiesWrapper to make PowerProperties testable. Bug: 281825732 Test: manually installed app with targetSdk T and verified that it can turn the screen on Test: atest PowerManagerServiceTest Change-Id: Ia5b090604e702896e3070f0fa1c913f06db7d251