diff options
author | Jeff Sharkey <jsharkey@android.com> | 2021-04-15 08:31:42 -0600 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2021-04-15 14:58:02 -0600 |
commit | 36582c19d128599272825eea29793dc475f6c9fd (patch) | |
tree | 7f63e1d5c373e82a31cdce2b7709cb57ee33d4ae /framework/java/android/bluetooth/BluetoothSocket.java | |
parent | 02ebd8c09694b85776df068a6036796ae51dbd18 (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
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothSocket.java')
0 files changed, 0 insertions, 0 deletions