fix: Add MODIFY_AUDIO_SETTINGS to allow bluetooth sco

This commit is contained in:
Myzel394 2023-10-22 13:28:18 +02:00
parent 689d830c77
commit 7b2df0ae0d
No known key found for this signature in database
GPG Key ID: 79CC92F37B3E1A2B

View File

@ -6,6 +6,10 @@
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<!-- Required for Bluetooth microphones -->
<uses-permission
android:name="android.permission.MODIFY_AUDIO_SETTINGS"
android:maxSdkVersion="30" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MICROPHONE" />
@ -39,7 +43,9 @@
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</receiver>
<service android:name=".services.AudioRecorderService" android:foregroundServiceType="microphone" />
<service
android:name=".services.AudioRecorderService"
android:foregroundServiceType="microphone" />
<!-- Change locale for Android <= 12 -->
<service