Add android.permission.BLUETOOTH permission (#5053)

Keep the permission even on Android 12 and above, as some ROMs are buggy
and are unable to pair with A2DP devices
This commit is contained in:
José Rebelo
2025-07-18 11:59:59 +01:00
parent ce334fad33
commit 2aa35e2c67
+5 -3
View File
@@ -7,9 +7,11 @@
<uses-permission android:name="android.permission.INTERNET" />
-->
<!-- Used for Bluetooth access -->
<!-- Request legacy Bluetooth permissions on older devices. -->
<uses-permission android:name="android.permission.BLUETOOTH"
android:maxSdkVersion="30"/>
<!--
Request legacy Bluetooth permissions on older devices.
#5053 - keep the permission even on Android 12 and above
-->
<uses-permission android:name="android.permission.BLUETOOTH" tools:remove="android:maxSdkVersion"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"
android:maxSdkVersion="30"/>
<!-- Needed to looks for Bluetooth devices. -->