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