altosdroid: Add BLUETOOTH_CONNECT permission, handle its lack
authorKeith Packard <keithp@keithp.com>
Tue, 11 Jan 2022 22:32:55 +0000 (14:32 -0800)
committerKeith Packard <keithp@keithp.com>
Tue, 11 Jan 2022 22:46:48 +0000 (14:46 -0800)
commitd24aba871ee9aa3671e15510ee4e2a0266c3d583
treeb181a43a0116e0d7cc4e31412089bc151e0dd47d
parent7f46240dfc57164f0c1b0c4c4ed9695bca63860d
altosdroid: Add BLUETOOTH_CONNECT permission, handle its lack

Android 12 switched how bluetooth permissions work, so now we need a
new one to talk to devices. Also deal with a lack of that by not
crashing when we can't get the name of a BT device.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosdroid/app/build.gradle.in
altosdroid/app/src/main/AndroidManifest.xml.in
altosdroid/app/src/main/java/org/altusmetrum/AltosDroid/AltosDroid.java
altosdroid/app/src/main/java/org/altusmetrum/AltosDroid/DeviceListActivity.java