commit | 8ca4e81df7f1ef59245ddc6246d41ab039a8ab91 | [log] [tgz] |
---|---|---|
author | Darryl L Johnson <[email protected]> | Fri Oct 30 14:49:34 2020 -0700 |
committer | Darryl L Johnson <[email protected]> | Wed Nov 04 13:23:10 2020 -0800 |
tree | a68eb0b2c00ec00a1583e518f0f855d52bd27d37 | |
parent | e33b28101af276fcb647bc5a57f6e98aa0049dd2 [diff] |
Fix DeviceStateManagerServiceTests and add to presubmit. 1. The addition of the CONTROL_DEVICE_STATE permission broke the test as the permission was not granted to the test APK. 2. Publishing of the binder service was previously wrapped with a SecurityException catch which failed gracefully in the test. This prevents registering the binder service in the test. Test: atest DeviceStateManagerServiceTests Bug: 159401801 Change-Id: Ifc24ba370a30a86121ca1fa531b8a396f7513b97