commit | 938e329b77b25e0f87b2782a866e2a312d18c3e8 | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Thu Apr 15 08:31:42 2021 -0600 |
committer | Jeff Sharkey <jsharkey@android.com> | Thu Apr 15 14:58:02 2021 -0600 |
tree | bdd3c355bc6fd2de5b1b7ca7248dc38ac0a15178 | |
parent | 1430546720742776de5dfcedf5267986aa07c1f6 [diff] |
Refine BluetoothLeAdvertiser permissions. Technically these APIs required both ADVERTISE and CONNECT, since internally it would attempt getting the device name as part of calculating packet lengths. These methods shouldn't require the CONNECT permission, so we add a getNameLengthForAdvertise() method internally to remove this dependency. Bug: 183626724 Test: ./build/soong/soong_ui.bash --make-mode Bluetooth RUN_ERROR_PRONE=true Change-Id: I245417bfc26d6d3a4f8be14077c7f1d271b5959e