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

Projucer: Strongly assert that bluetooth will not be used for fine location access

This commit is contained in:
reuk 2023-01-17 18:43:17 +00:00
parent a9a95fe69f
commit 73bd3f865d
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11

View file

@ -1740,9 +1740,14 @@ private:
if (permission == "android.permission.READ_EXTERNAL_STORAGE") if (permission == "android.permission.READ_EXTERNAL_STORAGE")
usesPermission->setAttribute ("android:maxSdkVersion", "32"); usesPermission->setAttribute ("android:maxSdkVersion", "32");
if (permission == "android.permission.BLUETOOTH_SCAN")
usesPermission->setAttribute ("android:usesPermissionFlags", "neverForLocation");
// These permissions are obsoleted by new more fine-grained permissions in API level 31 // These permissions are obsoleted by new more fine-grained permissions in API level 31
if (permission == "android.permission.BLUETOOTH" if (permission == "android.permission.BLUETOOTH"
|| permission == "android.permission.BLUETOOTH_ADMIN") || permission == "android.permission.BLUETOOTH_ADMIN"
|| permission == "android.permission.ACCESS_FINE_LOCATION"
|| permission == "android.permission.ACCESS_COARSE_LOCATION")
{ {
usesPermission->setAttribute ("android:maxSdkVersion", "30"); usesPermission->setAttribute ("android:maxSdkVersion", "30");
} }