playback: disable bluetooth autoplay

Temporarily disable and clean up the bluetooth autoplay system for now
until I can get it working sensibly.
This commit is contained in:
Alexander Capehart
2022-11-14 20:46:12 -07:00
parent 1447069efd
commit 2b35fd07b6
9 changed files with 36 additions and 67 deletions
+12 -12
View File
@@ -8,10 +8,10 @@
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<!-- Bluetooth auto-connect functionality -->
<uses-permission android:name="android.permission.BLUETOOTH" android:maxSdkVersion="30" />
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" android:minSdkVersion="31" />
<uses-feature android:name="android.hardware.bluetooth" android:required="false"/>
<!-- Bluetooth auto-connect functionality (Disabled until permission workflow can be made) -->
<!-- <uses-permission android:name="android.permission.BLUETOOTH" android:maxSdkVersion="30" />-->
<!-- <uses-permission android:name="android.permission.BLUETOOTH_CONNECT" android:minSdkVersion="31" />-->
<!-- <uses-feature android:name="android.hardware.bluetooth" android:required="false"/>-->
<!-- Work around ExoPlayer requiring network permissions we do not use -->
<uses-permission
@@ -107,14 +107,14 @@
</intent-filter>
</receiver>
<!-- Auxio's auto-playback on BT connect receiver. -->
<receiver
android:name=".playback.system.BluetoothConnectReceiver"
android:exported="true">
<intent-filter>
<action android:name="android.bluetooth.a2dp.profile.action.CONNECTION_STATE_CHANGED" />
</intent-filter>
</receiver>
<!-- Auxio's reciever for bluetooth headset events -->
<!-- <receiver-->
<!-- android:name=".playback.system.BluetoothConnectReceiver"-->
<!-- android:exported="true">-->
<!-- <intent-filter>-->
<!-- <action android:name="android.bluetooth.a2dp.profile.action.CONNECTION_STATE_CHANGED" />-->
<!-- </intent-filter>-->
<!-- </receiver>-->
<!-- Auxio's one and only AppWidget. -->
<receiver