Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 09dfc699 authored by Kihong Seong's avatar Kihong Seong
Browse files

Enable bluetooth profiles and update Android.bp

This CL enables A2DP Sink and Avrcp Controller for all targets, and
updates androidx.legacy_legacy-support-v4 dependency to
androidx.media_media

This change makes the following tests run:
- AvrcpControllerStateMachineTest
- AvrcpControllerServiceTest

Bug: 237467631
Test: atest AvrcpControllerStateMachineTest
Change-Id: I408d01901802d87464a7ae8a1a941a82fbb8a54f
Merged-In: I408d01901802d87464a7ae8a1a941a82fbb8a54f
(cherry picked from commit 6c377f51)
parent c33fdf19
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -108,7 +108,7 @@ android_app {
    static_libs: [
        "android.hardware.radio-V1.0-java",
        "androidx.core_core",
        "androidx.legacy_legacy-support-v4",
        "androidx.media_media",
        "androidx.lifecycle_lifecycle-livedata",
        "androidx.room_room-runtime",
        "androidx.annotation_annotation",
+1 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ java_defaults {
    ],

    static_libs: [
        "androidx.media_media",
        "androidx.test.ext.truth",
        "androidx.test.rules",
        "mockito-target",
+9 −0
Original line number Diff line number Diff line
@@ -30,6 +30,10 @@
        <option name="run-command" value="setprop bluetooth.profile.hfp.hf.enabled true" />
        <option name="run-command" value="setprop bluetooth.profile.pbap.client.enabled true" />
        <option name="run-command" value="setprop bluetooth.profile.map.client.enabled true" />
        <option name="run-command"
                value="setprop bluetooth.profile.avrcp.controller.enabled true" />
        <option name="run-command" value="setprop bluetooth.profile.a2dp.sink.enabled true" />
        <option name="run-command" value="setprop bluetooth.profile.sap.server.enabled true" />
        <option name="teardown-command" value="cmd bluetooth_manager enable" />
        <option name="teardown-command" value="settings put global ble_scan_always_enabled 1" />
        <option name="teardown-command" value="setprop bluetooth.profile.hfp.hf.enabled false" />
@@ -37,6 +41,11 @@
                value="setprop bluetooth.profile.pbap.client.enabled false" />
        <option name="teardown-command"
                value="setprop bluetooth.profile.map.client.enabled false" />
        <option name="teardown-command"
                value="setprop bluetooth.profile.avrcp.controller.enabled false" />
        <option name="teardown-command" value="setprop bluetooth.profile.a2dp.sink.enabled false" />
        <option name="teardown-command"
                value="setprop bluetooth.profile.sap.server.enabled false" />
    </target_preparer>
    <target_preparer class="com.android.tradefed.targetprep.FolderSaver">
        <option name="device-path" value="/data/vendor/ssrdump" />
+10 −0
Original line number Diff line number Diff line
@@ -30,12 +30,22 @@
        <option name="run-command" value="setprop bluetooth.profile.hfp.hf.enabled true" />
        <option name="run-command" value="setprop bluetooth.profile.pbap.client.enabled true" />
        <option name="run-command" value="setprop bluetooth.profile.map.client.enabled true" />
        <option name="run-command"
                value="setprop bluetooth.profile.avrcp.controller.enabled true" />
        <option name="run-command" value="setprop bluetooth.profile.a2dp.sink.enabled true" />
        <option name="run-command" value="setprop bluetooth.profile.sap.server.enabled true" />
        <option name="teardown-command" value="cmd bluetooth_manager enable" />
        <option name="teardown-command" value="settings put global ble_scan_always_enabled 1" />
        <option name="teardown-command"
                value="setprop bluetooth.profile.pbap.client.enabled false" />
        <option name="teardown-command"
                value="setprop bluetooth.profile.map.client.enabled false" />
        <option name="teardown-command" value="setprop bluetooth.profile.hfp.hf.enabled false" />
        <option name="teardown-command"
                value="setprop bluetooth.profile.avrcp.controller.enabled false" />
        <option name="teardown-command" value="setprop bluetooth.profile.a2dp.sink.enabled false" />
        <option name="teardown-command"
                value="setprop bluetooth.profile.sap.server.enabled false" />
    </target_preparer>
    <target_preparer class="com.android.tradefed.targetprep.FolderSaver">
        <option name="device-path" value="/data/vendor/ssrdump" />