mondrian: bluetooth: Add LHDC support
Patch required: https://github.com/flakeforever/device_xiaomi_mondrian-lhdc-patch.git Include files required: https://github.com/flakeforever/android_external_liblhdc.git * Import LHDC libraries from OS2.0.3.0.VMNMIXM Please extract LHDC libraries from your device in stock ROM.
This commit is contained in:
@@ -74,6 +74,9 @@ BOARD_AVB_VBMETA_SYSTEM_ALGORITHM := SHA256_RSA2048
|
||||
BOARD_AVB_VBMETA_SYSTEM_ROLLBACK_INDEX := $(PLATFORM_SECURITY_PATCH_TIMESTAMP)
|
||||
BOARD_AVB_VBMETA_SYSTEM_ROLLBACK_INDEX_LOCATION := 2
|
||||
|
||||
# Bluetooth
|
||||
$(call soong_config_set, btservices, use_lhdc, true)
|
||||
|
||||
# Bootloader
|
||||
TARGET_BOOTLOADER_BOARD_NAME := taro
|
||||
TARGET_NO_BOOTLOADER := true
|
||||
|
||||
109
liblhdc/Android.bp
Normal file
109
liblhdc/Android.bp
Normal file
@@ -0,0 +1,109 @@
|
||||
|
||||
cc_prebuilt_library_shared {
|
||||
name: "liblhdc",
|
||||
|
||||
arch: {
|
||||
arm: {
|
||||
srcs: ["libs/armeabi-v7a/liblhdc.so",],
|
||||
},
|
||||
arm64: {
|
||||
srcs: ["libs/arm64-v8a/liblhdc.so",],
|
||||
},
|
||||
},
|
||||
|
||||
apex_available: [
|
||||
"//apex_available:platform",
|
||||
"com.android.btservices",
|
||||
],
|
||||
|
||||
strip: {
|
||||
none:true,
|
||||
},
|
||||
|
||||
shared_libs: [
|
||||
"liblog",
|
||||
"libstdc++",
|
||||
],
|
||||
}
|
||||
|
||||
|
||||
cc_prebuilt_library_shared {
|
||||
name: "liblhdcv5",
|
||||
|
||||
arch: {
|
||||
arm: {
|
||||
srcs: ["libs/armeabi-v7a/liblhdcv5.so",],
|
||||
},
|
||||
arm64: {
|
||||
srcs: ["libs/arm64-v8a/liblhdcv5.so",],
|
||||
},
|
||||
},
|
||||
|
||||
apex_available: [
|
||||
"//apex_available:platform",
|
||||
"com.android.btservices",
|
||||
],
|
||||
|
||||
strip: {
|
||||
none:true,
|
||||
},
|
||||
|
||||
shared_libs: [
|
||||
"liblog",
|
||||
"libstdc++",
|
||||
],
|
||||
}
|
||||
|
||||
cc_prebuilt_library_shared {
|
||||
name: "liblhdcBT_enc",
|
||||
// vendor_available: true,
|
||||
// vndk: {
|
||||
// enabled: true,
|
||||
// },
|
||||
arch: {
|
||||
arm: {
|
||||
srcs: ["libs/armeabi-v7a/liblhdcBT_enc.so",],
|
||||
},
|
||||
arm64: {
|
||||
srcs: ["libs/arm64-v8a/liblhdcBT_enc.so",],
|
||||
},
|
||||
},
|
||||
|
||||
shared_libs: [
|
||||
"libcutils",
|
||||
"liblog",
|
||||
"liblhdc",
|
||||
],
|
||||
|
||||
apex_available: [
|
||||
"//apex_available:platform",
|
||||
"com.android.btservices",
|
||||
],
|
||||
}
|
||||
|
||||
cc_prebuilt_library_shared {
|
||||
name: "liblhdcv5BT_enc",
|
||||
// vendor_available: true,
|
||||
// vndk: {
|
||||
// enabled: true,
|
||||
// },
|
||||
arch: {
|
||||
arm: {
|
||||
srcs: ["libs/armeabi-v7a/liblhdcv5BT_enc.so",],
|
||||
},
|
||||
arm64: {
|
||||
srcs: ["libs/arm64-v8a/liblhdcv5BT_enc.so",],
|
||||
},
|
||||
},
|
||||
|
||||
shared_libs: [
|
||||
"libcutils",
|
||||
"liblog",
|
||||
"liblhdcv5",
|
||||
],
|
||||
|
||||
apex_available: [
|
||||
"//apex_available:platform",
|
||||
"com.android.btservices",
|
||||
],
|
||||
}
|
||||
BIN
liblhdc/libs/arm64-v8a/liblhdc.so
Executable file
BIN
liblhdc/libs/arm64-v8a/liblhdc.so
Executable file
Binary file not shown.
BIN
liblhdc/libs/arm64-v8a/liblhdcBT_enc.so
Normal file
BIN
liblhdc/libs/arm64-v8a/liblhdcBT_enc.so
Normal file
Binary file not shown.
BIN
liblhdc/libs/arm64-v8a/liblhdcv5.so
Executable file
BIN
liblhdc/libs/arm64-v8a/liblhdcv5.so
Executable file
Binary file not shown.
BIN
liblhdc/libs/arm64-v8a/liblhdcv5BT_enc.so
Normal file
BIN
liblhdc/libs/arm64-v8a/liblhdcv5BT_enc.so
Normal file
Binary file not shown.
BIN
liblhdc/libs/armeabi-v7a/liblhdc.so
Normal file
BIN
liblhdc/libs/armeabi-v7a/liblhdc.so
Normal file
Binary file not shown.
BIN
liblhdc/libs/armeabi-v7a/liblhdcBT_enc.so
Normal file
BIN
liblhdc/libs/armeabi-v7a/liblhdcBT_enc.so
Normal file
Binary file not shown.
BIN
liblhdc/libs/armeabi-v7a/liblhdcv5.so
Normal file
BIN
liblhdc/libs/armeabi-v7a/liblhdcv5.so
Normal file
Binary file not shown.
BIN
liblhdc/libs/armeabi-v7a/liblhdcv5BT_enc.so
Normal file
BIN
liblhdc/libs/armeabi-v7a/liblhdcv5BT_enc.so
Normal file
Binary file not shown.
Reference in New Issue
Block a user