Set sdkVersions and neverForLocation bluetooth permission assertions


Since Android-12 / API-level 31 the ACCESS_FINE_LOCATION is no longer
mandatory for Bluetooth usage. Removing it will avoid unnecessary
location permission query (user prompt).

In addition, for the Bluetooth to work without ACCESS_FINE_LOCATION on
these newer API-levels, we must also assert in the manifest that
we don't use bluetooth scanning to derive a location. This is an
attribute for the BLUETOOTH_SCAN permission.

There are less common use cases to derive the location too. In these
cases the user must override the BLUETOOTH_SCAN permission so that it
no longer asserts neverForLocation, and also request the
ACCESS_FINE_LOCATION permission separately (QLocationPermission).

This change also relates to QBluetoothPermission change in QtCore,
which no longer shall request the ACCESS_FINE_LOCATION permission.

Task-number: QTBUG-117358
Task-number: QTBUG-112164
Change-Id: If6ebc17dff1c4799bf35ff037f70d97d91be5dfe
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
commitada8ffd7c8445f215bea509befd82895c54e386c
parentd38ec4a265c44e140f5aca4fff2a2ed9c801ecd4
authorJuha Vuolle <juha.vuolle@qt.io>
committerJuha Vuolle <juha.vuolle@qt.io>
commit timeThu, 29 Aug 2024 14:55:44 +0300