LCP: Alternative to BLUETOOTH_CONNECT
to get the device name
#493
Closed
mickael-menu
started this conversation in
General
Replies: 1 comment
-
Addressed in #508 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Until now, we requested the device name using the
BluetoothManager
. We need it to register an LCP license to an LSD server.However, since Android 12 we're required to request the
BLUETOOTH_CONNECT
permission to the user, to get the device name. This displays this scary pop-up to the user.I suggest instead to take an explicit device name from the app, when creating the
LcpService
. This way the app can handle theBLUETOOTH_CONNECT
part, or use another strategy to compute a device name.As a fallback, we can use something like that in the toolkit:
"${Build.MANUFACTURER} ${Build.MODEL}"
, e.g. Samsung SM-N900V.Beta Was this translation helpful? Give feedback.
All reactions