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>