commit | 97f66fd20ca69d72d03db5f3f11a6db78dca0357 | [log] [tgz] |
---|---|---|
author | Anh Pham <anhph@google.com> | Mon Feb 08 13:38:46 2021 +0100 |
committer | Anh Pham <anhph@google.com> | Tue Feb 16 09:25:21 2021 +0100 |
tree | b9bca2fbd94deb76ce04e77dbd15750b35b0ac98 | |
parent | f437e35728510b8e2f99bb12d90ce6458c6933c2 [diff] |
Throw SecurityException regarding sampling rates. When apps target SDK >= S, run in debug mode, request a sampling rate greater than 200 Hz and do not have the HIGH_SAMPLING_RATE_SENSORS permission, the SystemSensorManager throws a SecurityException when the apps try to establish a (direct or event) connection. Test: atest CtsSensorTestCases CtsSensorRatePermissionTestCases Bug: 136069189 Change-Id: I33893c93949f0f055ce5ded1a5ed9d188de709ed