You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Calling RxBleDevice#getName with no BLUETOOTH_CONNECT permission causes a SecurityException.
Describe the solution you'd like
In case BLUETOOTH_CONNECT permission is not granted RxBleDevice#getName would log a warning and return null. Add a javadoc comment that BLUETOOTH_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
java.lang.SecurityException: Need android.permission.BLUETOOTH_CONNECT permission for AttributionSource { uid = 10481, packageName = com.polidea.rxandroidble.sample, attributionTag = null, token = android.os.BinderProxy@5955a3e, next = null }: AdapterService getRemoteName
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: