Name Date Size #Lines LOC

..--

LEScan/H25-Apr-2025-1,7261,407

SPPClient/H25-Apr-2025-850620

docs/H25-Apr-2025-986740

.gitignoreH A D25-Apr-202562 55

BTstackDaemonRespawn.cH A D25-Apr-2025147 86

MakefileH A D25-Apr-20254.1 KiB137108

bluetoothdrv.hH A D25-Apr-2025366 166

bluetoothdrv_stub.cH A D25-Apr-2025431 2112

btstack_config.hH A D25-Apr-20251 KiB4427

deinstaller.shH A D25-Apr-2025904 3321

hci_transport_h4_mtk.cH A D25-Apr-20256.2 KiB17388

installer.shH A D25-Apr-20252.4 KiB7052

package.shH A D25-Apr-2025476 3022

readme.txtH A D25-Apr-2025915 3121

restart.shH A D25-Apr-2025184 85

readme.txt

1//
2// BTstack port for RugGear Anrdroid 4.x devices with MediaTek Chipsets
3//
4
5It replaces MediaTek's Bluetooth Stack but doesn't integrate with the OS. BTstack libbtstack is required to communicate with the BTstack Server. It supports the LE Central and SPP.
6
7Technical details:
8- the binary for the Mediatek Bluetooth Server is replaced by the BTstackDaemonRespawn binary
9- It links against MediaTeks's libbluetoothdrv.so that provides a standard HCI Transport implementation via POSIX API
10
11
12Compilation:
13It depends on the Android NDK. Please update NDK, ADB at the beginning of the Makefile
14$ make
15
16Install:
17$ ./installer.sh
18It will try to backup the original mtkbt Bluetooth server. Use at your own risk resp. double check the script first.
19
20Deinstall:
21$ ./deinstaller.sh
22This tries to put mtkbk back in place.
23
24Quick test:
25$ adb shell le_scan
26To start an LE discovery
27
28Getting the packet log:
29$ make hci_dump
30
31