Tests to verify "Nearby devices" behavior.
The recently added "Nearby devices" runtime permission has some
really nuanced behavior depending on the target SDK of an app and
which permissions have been granted or revoked.
In particular, a modern app can see a "filtered" view of Bluetooth
devices when they hold the "Nearby devices" permission without the
need to also hold the "Location" permission, but only when they've
strongly declared the "neverForLocation" flag in their manifest.
Bug: 179808874
Test: atest BluetoothInstrumentationTests
Test: atest CtsPermissionTestCases:android.permission.cts.NearbyDevicesPermissionTest
Change-Id: I28e953f36cbe37a25ec7f2ab9020dbafad55ba9a
9 files changed