bluetooth: rename aidl hal for rpi

This commit is contained in:
Konsta
2024-11-22 16:22:10 +02:00
parent 01569e8eec
commit 21a6d545b2
8 changed files with 29 additions and 75 deletions

View File

@@ -1,13 +1,23 @@
package { // Copyright (C) 2020 The Android Open Source Project
default_applicable_licenses: ["Android-Apache-2.0"], // Copyright (C) 2024 KonstaKANG
} //
// SPDX-License-Identifier: Apache-2.0
cc_defaults { cc_binary {
name: "android.hardware.bluetooth-service-build-defaults", name: "android.hardware.bluetooth-service.rpi",
relative_install_path: "hw",
init_rc: ["bluetooth-service-rpi.rc"],
vintf_fragments: ["bluetooth-service-rpi.xml"],
vendor: true,
cflags: [ cflags: [
"-Wall", "-Wall",
"-Wextra", "-Wextra",
], ],
srcs: [
"BluetoothHci.cpp",
"net_bluetooth_mgmt.cpp",
"service.cpp",
],
shared_libs: [ shared_libs: [
"android.hardware.bluetooth-V1-ndk", "android.hardware.bluetooth-V1-ndk",
"libbase", "libbase",
@@ -22,64 +32,3 @@ cc_defaults {
"android.hardware.bluetooth.hci", "android.hardware.bluetooth.hci",
], ],
} }
cc_library_static {
name: "libbluetoothhcihalimpl",
vendor_available: true,
host_supported: true,
defaults: ["android.hardware.bluetooth-service-build-defaults"],
srcs: [
"BluetoothHci.cpp",
"net_bluetooth_mgmt.cpp",
],
}
cc_binary {
name: "android.hardware.bluetooth-service.default",
relative_install_path: "hw",
init_rc: ["bluetooth-service-default.rc"],
vintf_fragments: [":manifest_android.hardware.bluetooth-service.default.xml"],
vendor: true,
defaults: ["android.hardware.bluetooth-service-build-defaults"],
srcs: [
"service.cpp",
],
shared_libs: [
"android.hardware.bluetooth-V1-ndk",
"libbase",
"libbinder_ndk",
"libhidlbase",
"libutils",
"liblog",
],
static_libs: [
"libbluetoothhcihalimpl",
],
}
cc_fuzz {
name: "android.hardware.bluetooth-service.default_fuzzer",
host_supported: true,
defaults: ["service_fuzzer_defaults"],
srcs: [
"test/fuzzer.cpp",
],
static_libs: [
"android.hardware.bluetooth.async",
"android.hardware.bluetooth.hci",
"android.hardware.bluetooth-V1-ndk",
"libbluetoothhcihalimpl",
"liblog",
],
fuzz_config: {
componentid: 27441,
cc: [
"mylesgw@google.com",
],
},
}
filegroup {
name: "manifest_android.hardware.bluetooth-service.default.xml",
srcs: ["bluetooth-service-default.xml"],
}

View File

@@ -1,5 +1,6 @@
/* /*
* Copyright 2022 The Android Open Source Project * Copyright (C) 2022 The Android Open Source Project
* Copyright (C) 2024 KonstaKANG
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -14,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
#define LOG_TAG "android.hardware.bluetooth.service.default" #define LOG_TAG "android.hardware.bluetooth.service.rpi"
#include "BluetoothHci.h" #include "BluetoothHci.h"

View File

@@ -1,5 +1,6 @@
/* /*
* Copyright 2022 The Android Open Source Project * Copyright (C) 2022 The Android Open Source Project
* Copyright (C) 2024 KonstaKANG
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,4 +1,4 @@
service vendor.bluetooth-default /vendor/bin/hw/android.hardware.bluetooth-service.default service vendor.bluetooth-default /vendor/bin/hw/android.hardware.bluetooth-service.rpi
class hal class hal
capabilities BLOCK_SUSPEND NET_ADMIN SYS_NICE capabilities BLOCK_SUSPEND NET_ADMIN SYS_NICE
user bluetooth user bluetooth

View File

@@ -1,5 +1,6 @@
/* /*
* Copyright 2022 The Android Open Source Project * Copyright (C) 2022 The Android Open Source Project
* Copyright (C) 2024 KonstaKANG
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -14,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
#define LOG_TAG "android.hardware.bluetooth.service.default" #define LOG_TAG "android.hardware.bluetooth.service.rpi"
#include "net_bluetooth_mgmt.h" #include "net_bluetooth_mgmt.h"

View File

@@ -1,5 +1,6 @@
/* /*
* Copyright 2022 The Android Open Source Project * Copyright (C) 2022 The Android Open Source Project
* Copyright (C) 2024 KonstaKANG
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,6 @@
/* /*
* Copyright 2022 The Android Open Source Project * Copyright (C) 2022 The Android Open Source Project
* Copyright (C) 2024 KonstaKANG
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -14,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
#define LOG_TAG "aidl.android.hardware.bluetooth.service.default" #define LOG_TAG "aidl.android.hardware.bluetooth.service.rpi"
#include <aidl/android/hardware/bluetooth/IBluetoothHci.h> #include <aidl/android/hardware/bluetooth/IBluetoothHci.h>
#include <android/binder_manager.h> #include <android/binder_manager.h>