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

Commit aa0fe202 authored by William Escande's avatar William Escande
Browse files

Health based action: Enable first native flag

To set the flag, run the following command in a root shell:
```
$> adb shell setprop persist.device_config.aconfig_flags.bluetooth.com.\
android.bluetooth.flags.leaudio_enable_health_based_actions true
```

Bug: 301448525
Bug: 290845728
Test: atest bluetooth_le_audio_client_test | For specific test
Test: mmm packages/modules/Bluetooth | To check all target
Change-Id: Icaeb829455f3f9f148ab5e7d3aeed16d37a0e7b6
parent a47e091d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -142,6 +142,7 @@ cc_library_shared {
        "libnativehelper",
        "libstatssocket",
        "libvndksupport",
        "server_configurable_flags",
    ],
    sanitize: {
        scs: true,
+13 −0
Original line number Diff line number Diff line
@@ -27,3 +27,16 @@ java_aconfig_library {
    ],
    min_sdk_version: "Tiramisu",
}

cc_aconfig_library {
    name: "bluetooth_flags_c_lib",
    aconfig_declarations: "bluetooth_aconfig_flags",
    host_supported: true,
    visibility: [
        "//packages/modules/Bluetooth/system:__subpackages__",
    ],
    apex_available: [
        "com.android.btservices",
    ],
    min_sdk_version: "Tiramisu",
}
+7 −0
Original line number Diff line number Diff line
@@ -13,3 +13,10 @@ flag {
    description: "Allow volume control for connected devices"
    bug: "307408418"
}

flag {
    name: "leaudio_enable_health_based_actions"
    namespace: "bluetooth"
    description: "Le audio device and group health actions for fallback mechanism"
    bug: "290845728"
}
 No newline at end of file
+1 −0
Original line number Diff line number Diff line
@@ -46,6 +46,7 @@ cc_defaults {
        "libstatslog",
        "libstatssocket",
        "libz",
        "server_configurable_flags",
    ],
    static_libs: [
        "libFraunhoferAAC",
+4 −1
Original line number Diff line number Diff line
@@ -911,6 +911,7 @@ cc_test {
        "libcrypto",
        "libhidlbase",
        "liblog", // __android_log_print
        "server_configurable_flags",
    ],
    static_libs: [
        "libbluetooth-types",
@@ -936,7 +937,6 @@ cc_test {
    name: "bluetooth_le_audio_client_test",
    test_suites: ["device-tests"],
    defaults: [
        "bluetooth_gtest_x86_asan_workaround",
        "fluoride_bta_defaults",
        "mts_defaults",
    ],
@@ -986,11 +986,13 @@ cc_test {
    shared_libs: [
        "android.hardware.bluetooth.audio@2.0",
        "android.hardware.bluetooth.audio@2.1",
        "libbase",
        "libbinder_ndk",
        "libcrypto",
        "libfmq",
        "libhidlbase",
        "liblog",
        "server_configurable_flags",
    ],
    static_libs: [
        "crypto_toolbox_for_tests",
@@ -1003,6 +1005,7 @@ cc_test {
        "libbt_shim_ffi",
        "libchrome",
        "libevent",
        "libflagtest",
        "libflatbuffers-cpp",
        "libgmock",
        "liblc3",
Loading