1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Android: Add missing runtime permission for Bluetooth Midi on API >= 31

This commit is contained in:
attila 2022-12-22 14:21:58 +01:00 committed by Tom Poole
parent 83ba03a7de
commit 8fa90784a1
2 changed files with 3 additions and 2 deletions

View file

@ -1145,7 +1145,7 @@ private:
"If enabled, this will set the android.permission.BLUETOOTH_ADVERTISE, android.permission.BLUETOOTH and android.permission.BLUETOOTH_ADMIN flags in the manifest.");
props.add (new ChoicePropertyComponent (androidBluetoothConnectNeeded, "Bluetooth Connect Required"),
"If enabled, this will set the android.permission.BLUETOOTH_CONNECT, android.permission.BLUETOOTH and android.permission.BLUETOOTH_ADMIN flags in the manifest.");
"If enabled, this will set the android.permission.BLUETOOTH_CONNECT, android.permission.BLUETOOTH and android.permission.BLUETOOTH_ADMIN flags in the manifest. This is required for Bluetooth MIDI on Android.");
props.add (new ChoicePropertyComponent (androidReadMediaAudioPermission, "Read Audio From External Storage"),
"If enabled, this will set the android.permission.READ_MEDIA_AUDIO and android.permission.READ_EXTERNAL_STORAGE flags in the manifest.");

View file

@ -39,7 +39,8 @@ static StringArray jucePermissionToAndroidPermissions (RuntimePermissions::Permi
if (getAndroidSDKVersion() < 31)
return { "android.permission.ACCESS_FINE_LOCATION" };
return { "android.permission.BLUETOOTH_SCAN" };
return { "android.permission.BLUETOOTH_SCAN",
"android.permission.BLUETOOTH_CONNECT" };
}
case RuntimePermissions::writeExternalStorage: return { "android.permission.WRITE_EXTERNAL_STORAGE" };