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

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

[PANDORA_DEV] Allow Bluetooth hidden from Pandora

Pandora need to call some hidden api from bluetooth
Tested after cherry-picking the aosp/2151894 CL

Test: atest pts-bot:HFP/AG/DIS/BV-01-I -v
Ignore-AOSP-First: framework-bluetooth.impl is only on internal for now
Bug: 237447510
Change-Id: Ie558fb21b56018297bcf24c40dae0825e81f26f3
parent bbcdb940
Loading
Loading
Loading
Loading
+21 −5
Original line number Diff line number Diff line
@@ -2,11 +2,20 @@ package {
    default_applicable_licenses: ["Android-Apache-2.0"],
}

android_test_helper_app {
    name: "PandoraServer",
java_library_static {
    name: "PandoraServerLib",

    srcs: ["src/**/*.kt"],

    platform_apis: true,
    certificate: "platform",

    sdk_version: "core_platform",

    libs: [
        // Access to hidden apis in Bluetooth:
        "framework-bluetooth.impl",
        "framework",
    ],

    static_libs: [
        "androidx.test.runner",
@@ -20,6 +29,15 @@ android_test_helper_app {
        "pandora-proto-java",
        "opencensus-java-contrib-grpc-metrics",
    ],
}

android_test_helper_app {
    name: "PandoraServer",
    certificate: "platform",

    static_libs: [
        "PandoraServerLib",
    ],

    dex_preopt: {
        enabled: false,
@@ -27,8 +45,6 @@ android_test_helper_app {
    optimize: {
        enabled: false,
    },

    test_suites: ["device-tests"],
}

android_test {
+1 −0
Original line number Diff line number Diff line
@@ -70,6 +70,7 @@ java_sdk_library {
        "//external/sl4a/Common",
        "//frameworks/opt/wear",
        "//packages/modules/Bluetooth/android/app/tests/unit",
        "//packages/modules/Bluetooth/android/pandora/server",
        "//packages/modules/Bluetooth/service",
        "//packages/modules/Connectivity/nearby/tests/multidevices/clients/test_support/fastpair_provider",
        "//packages/services/Car/car-builtin-lib",