I am trying to use Android 7.1 with an updated kernel (4.16) on a Dell Venue Pro 7140. The tablet has an Intel .... The appropriate driver for the hardware is loaded, but I can not enable Bluetooth though the UI.
I can program, and want to try to fix the problem myself, but I don't know which submodule to begin exploring to fix the issue. Based on slides here[1], I believe there are 4 places to possibly check. Am I moving in the right direction, or should I look for files elsewhere?:
external/bluetooth/bluedroid
pacakges/app/Bluetooth/jni
hardware/<vendor> - not sure what the Androidx86 equivalent of this is
external/bluedroid/main
I believe these are the relevant lines from logcat the indicate the problem.
04-19 20:38:51.157 5648 5675 I bt_hci_h4: hal_open
04-19 20:38:51.157 5648 5675 I bt_vendor: bt_vendor_op op 3
04-19 20:38:51.157 5648 5675 I bt_vendor: bt_vendor_open
04-19 20:38:51.157 5648 5675 I bt_vendor: bt_vendor_open returning 72
04-19 20:38:51.157 5648 5675 I bt_vendor: bt_vendor_op op 3 retval 1
04-19 20:38:51.157 5648 5675 I bt_vendor: bt_vendor_op op 1
04-19 20:38:51.157 5648 5675 I bt_vendor: bt_vendor_fw_cfg
04-19 20:38:51.157 5648 5675 I bt_vendor: bt_vendor_wait_hcidev
04-19 20:38:51.157 5648 5675 E bt_vendor: socket bind error Operation not permitted
04-19 20:38:51.157 5648 5675 E bt_vendor: Hardware Config Error
...
04-19 20:38:51.158 5648 5676 I bt_core_module: module_init Initialized module "bte_logmsg_module"
04-19 20:38:51.159 5648 5677 W bt_osi_thread: run_thread: thread id 5677, thread name module_wrapper started
04-19 20:38:51.159 5648 5677 I bt_core_module: module_start_up Starting module "controller_module"
04-19 20:38:51.159 5648 5675 E bt_hci_h4: In transmit_data, error writing to the uart serial port: File descriptor in bad state
04-19 20:38:59.158 5648 5669 E bt_hci : command_timed_out hci layer timeout waiting for response to a command. opcode: 0xc03
04-19 20:38:59.158 5648 5669 E %s restarting the bluetooth process.: command_timed_out
04-19 20:38:59.158 5648 5669 I bt_vendor: ssr_cleanup
04-19 20:38:59.159 5648 5669 E bt_hci : hci_cmd_timeout: SOC Status is reset[1]
https://www.slideshare.net/nanik/android-bluetooth-stack