bluetooth: enable A2DP sink
* A2DP source and sink can coexist on Android 15. https://android-review.googlesource.com/q/topic:%22bt_a2dp_src_sink_coexist%22 * Fixes https://github.com/raspberry-vanilla/android_local_manifest/issues/188.
This commit is contained in:
10
overlay/BluetoothRpiOverlay/Android.bp
Normal file
10
overlay/BluetoothRpiOverlay/Android.bp
Normal file
@@ -0,0 +1,10 @@
|
||||
// Copyright (C) 2021-2022 KonstaKANG
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
runtime_resource_overlay {
|
||||
name: "BluetoothRpiOverlay",
|
||||
resource_dirs: ["res"],
|
||||
sdk_version: "current",
|
||||
proprietary: true
|
||||
}
|
19
overlay/BluetoothRpiOverlay/AndroidManifest.xml
Normal file
19
overlay/BluetoothRpiOverlay/AndroidManifest.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
** Copyright (C) 2021-2022 KonstaKANG
|
||||
**
|
||||
** SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
-->
|
||||
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.android.bluetooth.resources.rpi"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0">
|
||||
<application android:hasCode="false" />
|
||||
<overlay
|
||||
android:targetPackage="com.android.bluetooth"
|
||||
android:isStatic="true"
|
||||
android:priority="0" />
|
||||
</manifest>
|
24
overlay/BluetoothRpiOverlay/res/values/config.xml
Normal file
24
overlay/BluetoothRpiOverlay/res/values/config.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2009-2012 Broadcom Corporation
|
||||
Copyright (C) 2021-2022 KonstaKANG
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
|
||||
<!-- If true, device requests audio focus and start avrcp updates on source start or play -->
|
||||
<bool name="a2dp_sink_automatically_request_audio_focus">true</bool>
|
||||
|
||||
</resources>
|
Reference in New Issue
Block a user