Commit Graph

14 Commits

Author SHA1 Message Date
zhangyuan20 a79cd61c07 bluetooth: add dfx in android.
bug: v/84700

Rootcause: dfx should be added in android, or it will cause compilation problems.

Signed-off-by: zhangyuan20 <zhangyuan20@xiaomi.com>
2026-04-27 23:14:54 +08:00
openvela-robot 9d0c825cbb Merge commit
Change-Id: If26995eebd18a82ac4cd827e6801458e57a6ead3
2026-04-27 23:14:50 +08:00
zhangyuan20 ef7019efa0 Android-Vela: rename kernel_modules_headers.
Rootcause: android 15 shoud use apex.

Signed-off-by: zhangyuan20 <zhangyuan20@xiaomi.com>
2026-04-20 14:53:23 +08:00
zhangyuan20 e2d42363dc bluetooth: add dfx in android.
Rootcause: dfx should be added in android, or it will cause compilation problems.

Signed-off-by: zhangyuan20 <zhangyuan20@xiaomi.com>
2026-04-20 14:53:23 +08:00
chejinxian1 c2f1db305a L2CAP: Enable L2CAP configuration.
Signed-off-by: chejinxian1 <chejinxian1@xiaomi.com>
2026-04-20 14:52:47 +08:00
chejinxian1 8c6b14476a bluetooth: Remove unused source file and add AVRCP control source to library
Rootcause: Update the source file path used by the `libbt-framework-client` library.

Signed-off-by: chejinxian1 <chejinxian1@xiaomi.com>
Signed-off-by: miot-robot <miot-robot@xiaomi.com>
2026-04-20 14:52:40 +08:00
chejinxian1 3b35c54322 IPC: Update the include for RPMSG
Rootcause: Within the Android build system, the RPMSG service is inaccessible. Consequently, the corresponding library path has been added to Android.bp, and the include header file for the source file utilising RPMSG has been updated.

Signed-off-by: chejinxian1 <chejinxian1@xiaomi.com>
Signed-off-by: miot-robot <miot-robot@xiaomi.com>
2026-04-20 14:52:40 +08:00
zhangyuan20 d1074c3c89 Vela-Android:fix build error
Signed-off-by: zhangyuan20 <zhangyuan20@xiaomi.com>
2026-04-20 14:51:36 +08:00
Haishen Zhang 44f12d1c1d Vela-Android: Add support to multiple SPP client connections
1. Enable RPMsg Socket: CONFIG_NET_RPMSG/CONFIG_BLUETOOTH_SPP_RPMSG_NET
2. Disable RPMsg UART: CONFIG_RPMSG_UART ("/dev/ttyDROID")
3. For client connection, we shall use conn_id, instead of scn.
   (scn == 0, all the time.)

Signed-off-by: Haishen Zhang <zhanghaishen@xiaomi.com>
2026-04-20 14:51:20 +08:00
Haishen Zhang a0e4fc05f1 Android-Vela: Add support to RPMsg UART
1. Add support to RPMsg UART
2. Enable SPP over PRMsg UART
   Before, we need "mount -t rpmsgfs -o cpu=cp,fs=/dev/pts /dev/cp/pts".
   But, it's NOT supported any more for wrong POLL behaviors which might block the system.
3. Add Android LOGD to print debug logs
4. Android.bp(Need to add a Go file to check whether it's Android 12 or Android 14)

Signed-off-by: Haishen Zhang <zhanghaishen@xiaomi.com>
2026-04-20 14:51:16 +08:00
zhangyuan20 ef35762323 Vela-Android:Add BTIF wrapper for AVRCP-TG (01)
Signed-off-by: zhangyuan20 <zhangyuan20@xiaomi.com>
2026-04-20 14:51:13 +08:00
Haishen Zhang 16d487e829 Vela-Android: Add BTIF wrapper for ON/OFF/Inquiry/Pairing (2/5)
dependson:4078095 4115005

1. Update Android.bp
2. Redefine enum and macro that conflict with Android definition
3. Fix a bug about socket to report all UUID array from Bluelet to APP clients

Signed-off-by: Haishen Zhang <zhanghaishen@xiaomi.com>
2026-04-20 14:51:07 +08:00
Haishen Zhang 2b61b670a2 Vela-Android: porting bttool over socket(AF_INET) (1/2)
dependson:4036148

1. Enable Socket(AF_INET) first on Android
2. Fix the improper definition of Struct over Socekt between 64 bits and 32 bits system.
3. Modify the bttool to let it work similar to Vela

Signed-off-by: Haishen Zhang <zhanghaishen@xiaomi.com>
2026-04-20 14:51:01 +08:00
Haishen Zhang 6ed1e5e080 Vela-Android: Porting Vela Bluetooth Framework Socket Client to Android x86_64
1. Port Vela Bluetooth Framework Socket Client onto Android.
2. For Socket Server, Service, SAL, we didn't port them onto Android.
3. For bttool, the function is not ready yet.
4. With this libbt-framework-client.so, we can start working on BTIF wrapper over Vela BT Framework Socket Client API.
5. And, we can also start working on bttool over Vela BT Framework Socket Client API later.

Signed-off-by: Haishen Zhang <zhanghaishen@xiaomi.com>
2026-04-20 14:51:00 +08:00