Loading android/app/Android.mk +1 −1 Original line number Diff line number Diff line Loading @@ -28,7 +28,7 @@ LOCAL_STATIC_ANDROID_LIBRARIES := \ android-support-v4 LOCAL_PROTOC_OPTIMIZE_TYPE := micro LOCAL_REQUIRED_MODULES := bluetooth.default LOCAL_REQUIRED_MODULES := libbluetooth LOCAL_PROGUARD_ENABLED := disabled Loading android/app/jni/Android.bp +1 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ cc_library_shared { "com_android_bluetooth_gatt.cpp", "com_android_bluetooth_sdp.cpp", ], header_libs: ["bluetooth.default_headers"], header_libs: ["libbluetooth_headers"], include_dirs: [ "libnativehelper/include/nativehelper", "system/bt/types", Loading android/app/jni/com_android_bluetooth_btservice_AdapterService.cpp +3 −7 Original line number Diff line number Diff line Loading @@ -587,11 +587,7 @@ static bt_os_callouts_t sBluetoothOsCallouts = { acquire_wake_lock_callout, release_wake_lock_callout, }; #if defined(__LP64__) #define BLUETOOTH_LIBRARY_NAME "/system/lib64/hw/bluetooth.default.so" #else #define BLUETOOTH_LIBRARY_NAME "/system/lib/hw/bluetooth.default.so" #endif #define BLUETOOTH_LIBRARY_NAME "libbluetooth.so" int hal_util_load_bt_library(const bt_interface_t** interface) { const char* sym = BLUETOOTH_INTERFACE_STRING; Loading @@ -602,8 +598,8 @@ int hal_util_load_bt_library(const bt_interface_t** interface) { void* handle = dlopen(path, RTLD_NOW); if (!handle) { const char* err_str = dlerror(); LOG(ERROR) << __func__ << ": failed to load Bluetooth library " << path << ", error=" << (err_str ? err_str : "error unknown"); LOG(ERROR) << __func__ << ": failed to load Bluetooth library, error=" << (err_str ? err_str : "error unknown"); goto error; } Loading Loading
android/app/Android.mk +1 −1 Original line number Diff line number Diff line Loading @@ -28,7 +28,7 @@ LOCAL_STATIC_ANDROID_LIBRARIES := \ android-support-v4 LOCAL_PROTOC_OPTIMIZE_TYPE := micro LOCAL_REQUIRED_MODULES := bluetooth.default LOCAL_REQUIRED_MODULES := libbluetooth LOCAL_PROGUARD_ENABLED := disabled Loading
android/app/jni/Android.bp +1 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ cc_library_shared { "com_android_bluetooth_gatt.cpp", "com_android_bluetooth_sdp.cpp", ], header_libs: ["bluetooth.default_headers"], header_libs: ["libbluetooth_headers"], include_dirs: [ "libnativehelper/include/nativehelper", "system/bt/types", Loading
android/app/jni/com_android_bluetooth_btservice_AdapterService.cpp +3 −7 Original line number Diff line number Diff line Loading @@ -587,11 +587,7 @@ static bt_os_callouts_t sBluetoothOsCallouts = { acquire_wake_lock_callout, release_wake_lock_callout, }; #if defined(__LP64__) #define BLUETOOTH_LIBRARY_NAME "/system/lib64/hw/bluetooth.default.so" #else #define BLUETOOTH_LIBRARY_NAME "/system/lib/hw/bluetooth.default.so" #endif #define BLUETOOTH_LIBRARY_NAME "libbluetooth.so" int hal_util_load_bt_library(const bt_interface_t** interface) { const char* sym = BLUETOOTH_INTERFACE_STRING; Loading @@ -602,8 +598,8 @@ int hal_util_load_bt_library(const bt_interface_t** interface) { void* handle = dlopen(path, RTLD_NOW); if (!handle) { const char* err_str = dlerror(); LOG(ERROR) << __func__ << ": failed to load Bluetooth library " << path << ", error=" << (err_str ? err_str : "error unknown"); LOG(ERROR) << __func__ << ": failed to load Bluetooth library, error=" << (err_str ? err_str : "error unknown"); goto error; } Loading