RxBleDevice#getName
with no BLUETOOTH_CONNECT
permission
#799
Labels
RxBleDevice#getName
with no BLUETOOTH_CONNECT
permission
#799
Is your feature request related to a problem? Please describe.
Calling
RxBleDevice#getName
with noBLUETOOTH_CONNECT
permission causes aSecurityException
.Describe the solution you'd like
In case
BLUETOOTH_CONNECT
permission is not grantedRxBleDevice#getName
would log a warning and returnnull
. Add a javadoc comment thatBLUETOOTH_CONNECT
is needed on API >=31 for this function to return result.Describe alternatives you've considered
Add a javadoc comment that
BLUETOOTH_CONNECT
is needed on API >=31 to call this function.Additional context
Related to #798
The text was updated successfully, but these errors were encountered: