Check if location checks can be skipped with bluetooth scan


Since Android-12 (API-level 31) the location isn't a mandatory
requirement, and the code should allow proceeding also when
location services are switched off.

Location and the related permission  isn't needed if
the API-level is 31+, and the BLUETOOTH_SCAN asserts
'neverForLocation'.

[ChangeLog][Important Behavior Changes][QtBluetoothDeviceDiscoveryAgent]
Android implementation now allows starting scan even if Location is
switched off and location permissions aren't granted. This requires
that API level is 31+ and that BLUETOOTH_SCAN asserts
'neverForLocation'.

Task-number: QTBUG-117358
Task-number: QTBUG-112164
Change-Id: Iac7a99fdf5d3144d6ad06d93aa394b2df71d37b0
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
commitdca2eb939c1208e7a05fcf65277ffca3b8dab946
parentada8ffd7c8445f215bea509befd82895c54e386c
authorJuha Vuolle <juha.vuolle@qt.io>
committerJuha Vuolle <juha.vuolle@qt.io>
commit timeThu, 29 Aug 2024 14:55:47 +0300